Skip to content

Instantly share code, notes, and snippets.

import io, logging, secrets, socket, sqlite3, struct, time, traceback
# TODO replace with something faster
from CryptICE import IceKey
logging.basicConfig(
format="%(asctime)s %(levelname)-8s %(message)s",
filename="trackerserver.log",
encoding="utf-8",
level=logging.DEBUG)
hashtable size: 4 entries, specified at offset 0x20 in the header
full table size: hashtable size + number of entries in manifest, specified at 0x0c in the header
lookup section:
00: 04 00 00 00 points to 04 in full table
01: 06 00 00 00 points to 06 in full table
02: 0A 00 00 00 etc
03: 0C 00 00 00
entry index sections:
import hashlib, io, socket, struct, threading, time, hmac, random
from Crypto.Cipher import AES
from user import *
from secondblob import *
def steamtime_to_unixtime(steamtime_bin):
steamtime, = struct.unpack("<Q", steamtime_bin)
unixtime = steamtime // 1000000 - 62135596800
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]
@ymgve
ymgve / recover.py
Last active January 8, 2022 18:02
import hashlib, itertools, json, socket, ssl, sys
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", "turn", "myself", "give", "nothing", "really", "off", "before",
import hashlib, sys
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 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":
;
; +-------------------------------------------------------------------------+
; | This file has been generated by The Interactive Disassembler (IDA) |
; | Copyright (c) 2015 Hex-Rays, <support@hex-rays.com> |
; | License info: 48-B611-7234-BB |
; | Doskey Lee, Kingsoft Internet Security Software |
; +-------------------------------------------------------------------------+
;
import struct, sys, cStringIO, os
from edoslib import *
def decodebits(s):
cs = cStringIO.StringIO(s)
res = ""
while True:
t = "01"