Skip to content

Instantly share code, notes, and snippets.

import socket, struct, os, binascii, base64
import telnetlib
from pow import *
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
data = sc.recv(1)
if len(data) == 0:
import requests, time, os
ss = "X"
for index in xrange(len(ss), 200):
s = ""
for i in xrange(8):
data = open("template.asm", "rb").read()
data = data.replace("{bitmask}", str(1 << i))
import struct, sys
mn_v2_words = [
"like", "just", "love", "know", "never", "want", "time", "out", "there",
"make", "look", "eye", "down", "only", "think", "heart", "back", "then",
"into", "about", "more", "away", "still", "them", "take", "thing", "even",
"through", "long", "always", "world", "too", "friend", "tell", "try",
"hand", "thought", "over", "here", "other", "need", "smile", "again",
"much", "cry", "been", "night", "ever", "little", "said", "end", "some",
"those", "around", "mind", "people", "girl", "leave", "dream", "left",
import hashlib, json, os, sys
# requires packages requests and pycryptodome
# run with
# python blockchaincom_decrypt.py [GUID] password
import requests
from Crypto.Cipher import AES
guid = sys.argv[1]
import socket, struct, os, binascii, base64
import telnetlib
def readline(sc, show = True):
res = ""
while len(res) == 0 or res[-1] != "\n":
data = sc.recv(1)
if len(data) == 0:
print repr(res)
raise Exception("Server disconnected")
import hashlib
b58ab = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
def b58csum(s):
return hashlib.sha256(hashlib.sha256(s).digest()).digest()[0:4]
def b58decode(s, checksum=True):
idx = 0
while s[idx] == "1":
import struct, sys
p = ("\x30\x42", "\x42\x30")
pnewdata = "\x56\x42"
penddata = "\x56\x30"
def add_kernel_byte(c):
s = pnewdata
c = ord(c)
A02 AMSTRAD 464/6128 | 3 INCH DISK 150
A35 ATARI ST | 3.5 INCH DISK 268
A36 AMIGA | 3.5 INCH DISK 245
A37 PC COMPATIBLE | 3.5 INCH DISK 218
A42 AMSTRAD 464/6128 | CASSETTE / K7 414
A43 SPECTRUM 48K/128K/+ | CASSETTE / K7 425
A44 COMMODORE 64/128 | CASSETTE / K7 373
A48 MSX | CASSETTE / K7 11
A54 COMMODORE 64/128 | 5.25 INCH DISK 94
A57 PC COMPATIBLE | 5.25 INCH DISK 216
import struct
bits = (0.062500000001818989403545856475830078125, 0.0156250000004547473508864641189575195312, 0.0039062500001136868377216160297393798828, 0.0009765625000284217094304040074348449707, 0.0002441406250071054273576010018587112427, 0.0000610351562517763568394002504646778107, 0.0000152587890629440892098500626161694527, 0.0000038146972657360223024625156540423632, 0.0000009536743164340055756156289135105908, 0.0000002384185791085013939039072283776477, 0.0000000596046447771253484759768070944119, 0.000000014901161194281337118994201773603, 0.0000000037252902985703342797485504434007)
s = ""
for target in (0.671565706376017, 0.682612358126820, 0.682552023325146, 0.667647300753773, 0.682310803327740, 0.670638734940470, 0.729427094105661, 0.683334092143953, 0.729182238224924, 0.682352954987467, 0.745769257191599, 0.666743217501820, 0.682352764997662, 0.670634204987467, 0.733381925616444, 0.667648012284220, 0.749690691474855, 0.682356773410023, 0.670817057136476):
target -= (0.6666666666612316235641 -
import struct, hashlib
from Crypto.Cipher import AES
class RNG(object):
def __init__(self, seed):
self.seed = (seed ^ 0x5DEECE66DL) & ((1L << 48) - 1)
def nextint(self):
self.seed = (self.seed * 0x5DEECE66DL + 0xBL) & ((1L << 48) - 1)