-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.py
151 lines (118 loc) · 4.77 KB
/
gui.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
import hashlib
import base58
import binascii
import requests
import tkinter
import customtkinter
import socket
import time
import os
import subprocess
import multiprocessing
#import pyopencl as cl
import numpy as np
from multiprocessing import Process
from pypresence import Presence
from ecdsa import SigningKey, SECP256k1
window_title = 'Militarized Wallet Cracker'
webhook_url = 'Your_Webhook_URL' # <-- Change this
file_path = 'real.txt'
version = 0.3
def DRPC():
client_id = "1199083933955018863"
RPC = Presence(client_id)
RPC.connect()
RPC.update(state="Mining Bitcoin with MWC!" ,
start = int(time.time()),
large_text="Developed by 4G0NYY",
large_image="mew" ,
small_image="small2",
small_text="hardtruth",
buttons=[{"label": "GitHub", "url": "https://github.com/4G0NYY/MWC-Public"}, {"label": "Discord", "url": "https://discord.gg/ZhtcnQsbZz"}])
def send_webhook_message(data):
response = requests.post(webhook_url, json=data)
if response.status_code == 204:
print('Webhook message sent successfully.')
else:
print('Failed to send webhook message.')
def import_pubkeys(file_path):
try:
with open(file_path, 'rb') as file:
contents = file.read()
return contents.decode('utf-8', errors='ignore')
except FileNotFoundError:
print(f"File '{file_path}' not found.")
# will have to put an error message in here
except Exception as e:
print(f"An error occurred: {e}")
return None
btc = import_pubkeys(file_path)
def stop():
exit()
def startMiner():
workers = workerint.get()
with multiprocessing.Pool(processes=workers) as pool:
# Map the Miner function to each process
freeze_support()
pool.map(Miner)
def Miner():
count = 1
interval = 3600
next_report_time = time.time() + interval
start = int('000000000000000000000000000000000000000000000002c000000020449e9c', 16)
end = int('000000000000000000000000000000000000000000000003ffffffffffffffff', 16)
for i in range(start, end + 1):
puzzleaddr = btc
private_key_hex = binascii.hexlify(os.urandom(32)).decode('utf-8')
key_bytes = binascii.unhexlify(private_key_hex)
sk = SigningKey.from_string(key_bytes, curve=SECP256k1)
vk = sk.get_verifying_key()
public_key_bytes = b'\x02' + vk.pubkey.point.x().to_bytes(32, 'big') if vk.pubkey.point.y() % 2 == 0 else b'\x03' + vk.pubkey.point.x().to_bytes(32, 'big')
sha256_hash = hashlib.sha256(public_key_bytes).digest()
ripemd160_hash = hashlib.new('ripemd160', sha256_hash).digest()
extended_ripemd160_hash = b'\x00' + ripemd160_hash
sha256_hash = hashlib.sha256(extended_ripemd160_hash).digest()
sha256_hash = hashlib.sha256(sha256_hash).digest()
checksum = sha256_hash[:4]
binary_address = extended_ripemd160_hash + checksum
address = base58.b58encode(binary_address).decode('utf-8')
if address == puzzleaddr:
print(f"WE RICH!! Address: {address}, Hex Key: {private_key_hex}")
with open('hits.txt', 'a') as file:
file.write("Address: {address} Hex-Key: {private_key_hex}")
data1 = {
'content': f"WE RICH AF BOYYYY!!\n Address: {address}\n Hex-Key: {private_key_hex}\n"
}
send_webhook_message(data1)
break
else:
print(f"[{count}] Address: {address} | Hex Key: {private_key_hex}")
count += 1
current_time = time.time()
if current_time >= next_report_time:
ip_address = socket.gethostbyname(socket.gethostname())
data = {
'content': f"Scanned keys: {count}\nStart Key: {hex(start)}\nEnd Key: {hex(end)}\nIP Address: {ip_address}"
}
send_webhook_message(data)
next_report_time = current_time + interval
customtkinter.set_appearance_mode("System")
customtkinter.set_default_color_theme("blue")
app = customtkinter.CTk()
app.geometry("720x480")
app.title("Militarized Wallet Cracker")
title = customtkinter.CTkLabel(app, text="Welcome to the Militarized Wallet Cracker!")
title.pack(padx=4, pady=10)
discord = customtkinter.CTkLabel(app, text="Join my Discord for Help: https://discord.gg/gpt4k7jBbv")
discord.pack(padx=4, pady=4)
drcpvar = tkinter.StringVar()
dunno = customtkinter.CTkEntry(app, width=40, height=40, textvariable=drcpvar)
dunno.pack()
workerint = tkinter.IntVar()
dunno2 = customtkinter.CTkEntry(app, width=40, height=40, textvariable=workerint)
dunno2.pack()
idfkanymore = customtkinter.CTkButton(app, text="Start Mining", command=startMiner)
idfkanymore.pack()
idfkanymore2 = customtkinter.CTkButton(app, text="Stop Mining", command=stop)
idfkanymore2.pack()
app.mainloop()