This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
wordsearch.py
85 lines (75 loc) 路 3.91 KB
/
wordsearch.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import random, codecs, binascii, bip32utils
from mnemonic import Mnemonic
from rich.console import Console
console = Console()
console.clear()
console.print(" [yellow]---------------Made by Mizogg.co.uk-----------------------[/yellow]")
console.print("[yellow] Starting search... Loading btc.txt[/yellow]")
console.print("[yellow] Mnemonic Bitcoin Generator...[/yellow]")
console.print(" [yellow]----------------------------------------------------[/yellow]")
console.print('[purple] Loading Bitcoin List . .. . .. . . . [/purple]')
filename ='puzzle.txt'
with open(filename) as f:
line_count = 0
for line in f:
line != "\n"
line_count += 1
with open(filename) as file:
add = file.read().split()
add = set(add)
console.print('[purple] Total Bitcoin Addresses Loaded and Checking : [/purple]',str (line_count))
console.print("[purple]Starting search... Please Wait [/purple]")
console.print("==========================================================")
divs = int(input(" 馃搵How Many Derivation Paths m/44'/0'/0'/0/0/ to m/44'/0'/0'/0/999 鉁嶏笍 -> "))
def data_wallet():
for child in range(0,divs):
bip32_root_key_obj = bip32utils.BIP32Key.fromEntropy(seed)
bip32_child_key_obj = bip32_root_key_obj.ChildKey(
44 + bip32utils.BIP32_HARDEN
).ChildKey(
0 + bip32utils.BIP32_HARDEN
).ChildKey(
0 + bip32utils.BIP32_HARDEN
).ChildKey(0).ChildKey(child)
data.append({
'bip32_root_key': bip32_root_key_obj.ExtendedKey(),
'bip32_extended_private_key': bip32_child_key_obj.ExtendedKey(),
'path': f"m/44'/0'/0'/0/{child}",
'address': bip32_child_key_obj.Address(),
'publickey': binascii.hexlify(bip32_child_key_obj.PublicKey()).decode(),
'privatekey': bip32_child_key_obj.WalletImportFormat(),
})
count = 0
total = 0
data = []
wordlenght = ['128','256']
while True:
data = []
count += 1
total += divs
randomwords= random.choice(wordlenght)
mnemo = Mnemonic("english")
mnemonic_words = mnemo.generate(strength=int(randomwords)) # 128 12words / 256 24words / randomwords
#mnemonic_words = 'assist air special hunt slogan daughter spy reunion winter boost alpha among steak space father situate ahead floor door prison aware demand cross shine' # 17MdcGxXXFWuRPBpd4NDr2vWTCwmAtJrHK
seed = mnemo.to_seed(mnemonic_words, passphrase="")
data_wallet()
for target_wallet in data:
address = target_wallet['address']
if address in add:
print('\nMatch Found')
console.print('[green]\nmnemonic_words : [/green]', mnemonic_words)
console.print('[purple]Derivation Path : [/purple]', target_wallet['path'], '[green] : Bitcoin Address : [/green]', target_wallet['address'])
console.print('[green]Privatekey WIF : [/green]', target_wallet['privatekey'])
with open("winner.txt", "a") as f:
f.write(f"""\nMnemonic_words: {mnemonic_words}
Derivation Path: {target_wallet['path']}
Privatekey WIF: {target_wallet['privatekey']}
Public Address Bitcoin: {target_wallet['address']}
=====Made by mizogg.co.uk Donations 3P7PZLbwSt2bqUMsHF9xDsaNKhafiGuWDB =====""")
else:
console.print('[red] [' + str(count) + '] ------------------------[/red]')
console.print('[red]馃攣 Total Checked 馃憞[' + str(total) + '] [/red]')
console.print('[red]\nmnemonic_words : [/red]', mnemonic_words)
for bad_wallet in data:
console.print('[purple]Derivation Path : [/purple]', bad_wallet['path'], '[red] : Bitcoin Address : [/red]', bad_wallet['address'])
console.print('[red]Privatekey WIF : [/red]', bad_wallet['privatekey'])