-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbtc_stealer.py
94 lines (80 loc) · 3.04 KB
/
btc_stealer.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
from bitcoin import *
import requests
import time
import json
from colorama import Style , Fore , init
try: # if is python3
from urllib.request import urlopen
except: # if is python2
from urllib2 import urlopen
import platform,socket,re,uuid,psutil,logging
from threading import Thread, Lock
import math
from pathlib import Path
path = str(Path.home() / "BTC")
zero = '[{}]'
l = "null"
error1 = "Internal"
error2 = "maintance"
hit = "balance"
version = 2
def server(i):
while True:
start = time.time()
private_key = random_key()
public_key = privtopub(private_key)
address = pubtoaddr(public_key)
privadress = privkey_to_address(private_key)
try:
r = requests.get(f"http://127.0.0.1:8000/beta/check/{address}")
except requests.exceptions.ConnectionError:
print("API Not Accessable")
pass
try:
if zero in r.text or l in r.text:
end = time.time()
print(f"{Fore.LIGHTYELLOW_EX} Thread %d = {Fore.YELLOW}PubKey: {address} |PrivKey : {privadress} | Balance : 0 |{Fore.MAGENTA} Processtime : {int(math.ceil(end - start))} sec" % i)
elif error1 in r.text or error2 in r.text:
print(f"{Fore.RED}Error #1 NO_API_CONNECTION or Error #2 API_UNDER_MAINTANCE")
with open('logs.txt', 'w') as the_filed:
the_filed.write(f'{r.text}\n')
pass
elif hit in r.text:
print(f"{Fore.GREEN}HIT! PubKey: {address} |PrivKey : {privadress}| Results : {r.text}")
with open('wallets.txt', 'w') as the_file:
the_file.write(f'{r.text} | {private_key}\n')
time.sleep(60)
except:
print(r.text)
with open('logs.txt', 'w') as the_filed:
the_filed.write(f'{r.text}\n')
main_menu = '''
____ ____________ _____ __ __
/ __ )_ __/ ____/ / ___// /____ ____ _/ /__ _____
/ __ |/ / / / \__ \/ __/ _ \/ __ `/ / _ \/ ___/
/ /_/ // / / /___ ___/ / /_/ __/ /_/ / / __/ /
/_____//_/ \____/ /____/\__/\___/\__,_/_/\___/_/
By Pinkyhax and BanHammer Team
BETA v2.4
'''
print(main_menu)
try:
online1 = requests.get("http://127.0.0.1:8000/beta/status")
online = online1.text
status1 = "Maintance"
status2 = "Online"
time.sleep(2)
if status1 in online:
print("Server is under Maintance")
time.sleep(5)
exit()
if status2 in online:
print("Server is Online")
os.system("cls")
threadss = input("Enter the number of threads!: ")
for i in range(int(threadss)):
t = Thread(target=server, args=(i,))
t.start()
except requests.exceptions.ConnectionError:
print("API Not Accessable!")
time.sleep(10)