This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _author_ = "qd" | |
from Crypto.Cipher import AES | |
from hashlib import md5 | |
import os | |
import json | |
import SocketServer | |
import threading | |
host = 'crypto.nyanwith.me' | |
port = 9999 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a309cf189cdee501959940feba153461eef5201e00639caac3bbdf4c2f8295703975dd2786c6b8a1ad03ae204ac0693e5886dca64f1d717b6840985f10caca728f5725e60fa7b69f1f968d447b2d6199ae3ce0be378cc33155a2d94c8c22438 2ec106245f4b07a2a99f6949750ff48e97cbe8434ec0038e0e2bcce7cc7d9f0305a5a5358637e5d31158fecf2ab6306be80e9eabc219673d974db197ccbf97afec3d27165ff7a5d3af573d6e973b6c8f124e50f8bf2e111595c07560f40097b4 5f0f2fbe27cff7785ecb9e834b9201c086ab6a2a211e3a2807bce8db68bf452369e5610f463225f41a9f254f46ee6816f53d7e6496a84eab08fded7f9bba2aadad25cf6e9b95c6a5a4f355d9b580ba496fa824fcc1a082f364625b1a871117ba 6844981dbfd05b1912e7f20adcb108d2ad134ed313bc3d24cc18a0a41525b258ab0412d928a7a9529299154d62d1e92822f1081e645512f609d9bed0f8c2f2de56f1fb0cbfe49e7dffd4989d08fd07f627b7bb4c4388b632d0ff327adcf2cd2d 2ecc34bccbb70ace772e9563eeb01fb50e8321e672dacaf1e79376882e7a6ea3c9088504f35922ea3d3f571b5cac64f9dd6c2dd66c27fb02295b97e0013425c9fd898ac609d4941e99dc51fc6a5e3c11dffcdeb905d64bcfc97915e1fab69cf0 76edfba1dacef5a8a95fceb46be785a4f6c31eda3f2aef3bb63d2107c547 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from random import * | |
import SocketServer | |
import threading | |
from Crypto.Cipher import DES | |
from Crypto import Random | |
from hashlib import sha256 | |
import os | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import os | |
import string | |
FLAG="FLAG_SAMPLE" | |
def random_str(N): | |
return ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(N)) | |
def gen_data_kv(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import time | |
import threading | |
import SocketServer | |
import random | |
import hashlib | |
from Crypto.Cipher import AES | |
from Crypto.Util.number import * | |
from secret import key, seed | |
host, port = '0.0.0.0', 3333 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import enchant | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
from SocketServer import ThreadingMixIn | |
import threading | |
import urlparse | |
import os | |
import re | |
from Crypto.Cipher import DES3 | |
html="""<html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import struct | |
import os | |
import hashlib | |
import binascii | |
tbl = [ | |
[0xd, 0x12, 0x19, 0x15, 0x9c, 0x5, 0x1, 0xab, 0x5e, 0x6f, 0x9, 0x45, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e = 0x10001 | |
n = 55089599753625499150129246679078411260946554356961748980861372828434789664694269460953507615455541204658984798121874916511031276020889949113155608279765385693784204971246654484161179832345357692487854383961212865469152326807704510472371156179457167612793412416133943976901478047318514990960333355366785001217 | |
q = 7422236843002619998657542152935407597465626963556444983366482781089760759017266051147512413638949173306397011800331344424158682304439958652982994939276427 | |
c = 33062272351573218250384115704487361063970465004033740168733959927707721053321054975845636421337650298670338055101957913137486876401007806540788449215177115739842456860057795240129932234489439409388612936981938930876353938688227847808194010536300529961489751250254640618262254364661940751727869020817391566773 | |
p = n/q | |
phi = (p-1)*(q-1) | |
def egcd(a, b): | |
if a == 0: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! usr/bin/env python3 | |
import string | |
import sys | |
import numpy as np | |
import math | |
from numpy import matrix | |
from numpy import linalg | |
# from flag import FLAG | |
# assert len(FLAG) == 28 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sss = """.rodata:08048880 db 43h ; C | |
.rodata:08048881 db 0 | |
.rodata:08048882 db 0 | |
.rodata:08048883 db 0 | |
.rodata:08048884 db 70h ; p | |
.rodata:08048885 db 0 | |
.rodata:08048886 db 0 | |
.rodata:08048887 db 0 | |
.rodata:08048888 db 0DEh | |
.rodata:08048889 db 0 |
OlderNewer