-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
88 lines (61 loc) · 2.33 KB
/
main.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
86
87
88
import codecs
import eth_address
import bigquery
def fetch_transactions(address):
result = bigquery.make(address)
print("Transactions")
for row in result:
print(row)
def gen_eth_address(key):
address = eth_address.gen(key[2:])
print("Ethereum Address")
print(address)
# fetch_transactions(address)
def gen_private_keys(start, end):
padding = 66
for i in range(start, end + 1):
key = f"{i:#0{padding}x}"
gen_eth_address(key)
def gen_group_A():
start = 0x0000000000000000000000000000000000000000000000000000000000000001
end = 0x00000000000000000000000000000000000000000000000000000000FFFFFFFF
gen_private_keys(start, end)
def gen_group_B():
start = 0x0000000000000000000000000000000000000000000000000000000100000000
end = 0x000000000000000000000000000000000000000000000000FFFFFFFF00000000
gen_private_keys(start, end)
def gen_group_C():
start = 0x0000000000000000000000000000000000000000000000010000000000000000
end = 0x0000000000000000000000000000000000000000FFFFFFFF0000000000000000
gen_private_keys(start, end)
def gen_group_D():
start = 0x0000000000000000000000000000000000000001000000000000000000000000
end = 0x00000000000000000000000000000000FFFFFFFF000000000000000000000000
gen_private_keys(start, end)
def gen_group_E():
start = 0x0000000000000000000000000000000100000000000000000000000000000000
end = 0x000000000000000000000000FFFFFFFF00000000000000000000000000000000
gen_private_keys(start, end)
def gen_group_F():
start = 0x0000000000000000000000010000000000000000000000000000000000000000
end = 0x0000000000000000FFFFFFFF0000000000000000000000000000000000000000
gen_private_keys(start, end)
def gen_group_G():
start = 0x0000000000000001000000000000000000000000000000000000000000000000
end = 0x00000000FFFFFFFF000000000000000000000000000000000000000000000000
gen_private_keys(start, end)
def gen_group_H():
start = 0x0000000100000000000000000000000000000000000000000000000000000000
end = 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000
gen_private_keys(start, end)
def gen_weak_keys():
gen_group_A()
gen_group_B()
gen_group_C()
gen_group_D()
gen_group_E()
gen_group_F()
gen_group_G()
gen_group_H()
if __name__ == "__main__":
gen_weak_keys()