-
Notifications
You must be signed in to change notification settings - Fork 25
/
AtomXBitcoin_TRIAL.py
142 lines (120 loc) · 4.26 KB
/
AtomXBitcoin_TRIAL.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
# Programmer Mmdrza
# Atom X Bitcoin (CPU SAVER MOD) ~ Trial Version.
# Website : https://Mmdrza.Com
# Github : Github.com/PyMmdrza
# Telegram Channel : t.me/mPython3
# Telegram ID : t.me/PyMmdrza
# ------------------------------------------------
import random
from lxml import html
from rich.console import Console
import sys
from os import system
import time
import hashlib
import binascii
import multiprocessing
from multiprocessing import Process, Queue
from multiprocessing.pool import ThreadPool
import threading
import base58
import ecdsa
import requests
import os
import subprocess
import base58
import ecdsa
import requests
console = Console()
def generate_private_key():
return binascii.hexlify(os.urandom(32)).decode('utf-8')
def private_key_to_WIF(private_key):
var80 = "80" + str(private_key)
var = hashlib.sha256(binascii.unhexlify(hashlib.sha256(binascii.unhexlify(var80)).hexdigest())).hexdigest()
return str(base58.b58encode(binascii.unhexlify(str(var80) + str(var[0:8]))), 'utf-8')
def private_key_to_public_key(private_key):
sign = ecdsa.SigningKey.from_string(binascii.unhexlify(private_key), curve=ecdsa.SECP256k1)
return ('04' + binascii.hexlify(sign.verifying_key.to_string()).decode('utf-8'))
def public_key_to_address(public_key):
alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
count = 0
val = 0
var = hashlib.new('ripemd160')
var.update(hashlib.sha256(binascii.unhexlify(public_key.encode())).digest())
doublehash = hashlib.sha256(
hashlib.sha256(binascii.unhexlify(('00' + var.hexdigest()).encode())).digest()).hexdigest()
address = '00' + var.hexdigest() + doublehash[0:8]
for char in address:
if (char != '0'):
break
count += 1
count = count // 2
n = int(address, 16)
output = []
while (n > 0):
n, remainder = divmod(n, 58)
output.append(alphabet[remainder])
while (val < count):
output.append(alphabet[0])
val += 1
return ''.join(output[::-1])
def data_export(queue):
zi = 0
wi = 0
while True:
zi += 1
sys.stdout.write(f"\x1b]2;Total:{zi} Found:{wi}\x07")
private_key = generate_private_key()
public_key = private_key_to_public_key(private_key)
address = public_key_to_address(public_key)
data = (private_key, address, wi, zi)
queue.put(data, block=False)
def worker(queue):
while True:
if not queue.empty():
data = queue.get(block=True)
process(data)
def process(data):
private_key = data[0]
address = data[1]
urlblock = "https://bitcoin.atomicwallet.io/address/" + str(address)
respone_block = requests.get(urlblock)
byte_string = respone_block.content
source_code = html.fromstring(byte_string)
xpatch_txid = '/html/body/main/div/div[2]/div[1]/table/tbody/tr[3]/td[2]'
treetxid = source_code.xpath(xpatch_txid)
balance = str(treetxid[0].text_content())
iffer = str('0 BTC')
zi = data[3]
wi = data[2]
if str(balance) == str(iffer):
console.print("[gold1]Total:[/gold1][cyan]" + str(zi * 8) + "[/cyan] : [green]Win:[/green][white]" + str(
wi) + "[/white][red] ~ [/][gold1]" + str(address) + "[/gold1][red1] : [/red1][white]" + str(
private_key) + "[/white] [red1]:[/red1] [cyan]" + str(
balance) + "[/cyan]")
zi += 1
else:
wi += 1
with open("Winning.txt", "a", encoding="utf-8") as xf:
xf.write(f"ADDRESS: {address} BALANCE:{balance}\n"
f"PRIVATE KEY: {private_key}\n"
f"-----------------[ {time.thread_time()} ]------------------\n"
f"==================[ M M D R Z A . C o M ]==================\n")
xf.close()
def thread(iterator):
processes = []
data = Queue()
data_factory = Process(target=data_export, args=(data,))
data_factory.daemon = True
processes.append(data_factory)
data_factory.start()
work = Process(target=worker, args=(data,))
work.daemon = True
processes.append(work)
work.start()
data_factory.join()
if __name__ == '__main__':
pool = ThreadPool(processes=multiprocessing.cpu_count())
pool.map(thread, range(8))
pool.close()
exit()