This file contains 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 __future__ import print_function | |
import argparse, sys, atexit, hashlib, base64, itertools, struct | |
from os import path | |
from btcrecover.addressset import AddressSet, varint | |
def add(self, address): | |
pos = self._find(address) |
This file contains 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 base64 import * | |
import sys, struct, zlib | |
print >> sys.stderr, 'btcrecover extract> ', | |
key_crc_data = b64decode(raw_input()) | |
key_data = key_crc_data[:-4] | |
assert key_data[:3] == 'bc:' |
This file contains 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 Crypto.Cipher.AES import new as new_aes, MODE_CBC | |
import zlib, re, hashlib, base64, random | |
# The decypted and decompressed wallet should start with one of these two: | |
EXPECTED_BYTES_1 = b'{\n "' | |
EXPECTED_BYTES_2 = b'{\r\n "' | |
EXPECTED_BYTES_LEN = max(len(EXPECTED_BYTES_1), len(EXPECTED_BYTES_2)) |