-
Notifications
You must be signed in to change notification settings - Fork 32
/
LiteHunt_P2PKH.py
128 lines (118 loc) · 6.41 KB
/
LiteHunt_P2PKH.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
import time, random, json
import bitcoin
import requests
from lxml import html
from hdwallet import HDWallet
from hdwallet.symbols import LTC as sym
from rich.console import Console
import subprocess
try:
# ============== Auto Install Package's (Linux) ==================== #
subprocess.check_call(["python3", '-m', 'pip', 'install', 'hdwallet'])
subprocess.check_call(["python3", '-m', 'pip', 'install', 'rich'])
subprocess.check_call(["python3", '-m', 'pip', 'install', 'lxml'])
subprocess.check_call(["python3", '-m', 'pip', 'install', 'bitcoin'])
except:
# ============= Auto Install Package's (Windows) ================== #
subprocess.check_call(["python", '-m', 'pip', 'install', 'hdwallet'])
subprocess.check_call(["python", '-m', 'pip', 'install', 'rich'])
subprocess.check_call(["python", '-m', 'pip', 'install', 'lxml'])
subprocess.check_call(["python", '-m', 'pip', 'install', 'bitcoin'])
cl = Console()
cl.clear()
start = int(input('RANGE START [INTEGER] : '))
end = int(input('RANGE END [INTEGER] : '))
outp = str(input('OUTFile Name : '))
cl.print(f"""
[red][[gold1]+[/gold1]][green1] Thread Time :[/green1][white] {time.thread_time()}[/white] [/red]
[red][[gold1]+[/gold1]][green1] Start Range :[/green1][white] {start} [/white] [/red]
[red][[gold1]+[/gold1]][green1] END Range :[/green1][white] {end} [/white] [/red]
[red][[gold1]+[/gold1]][green1] Start RangeKey :[/green1][white] {"%064x" % start} [/white] [/red]
[red][[gold1]+[/gold1]][green1] END RangeKey :[/green1][white] {"%064x" % end} [/white] [/red]
[red][[gold1]+[/gold1]][green1] Total Generate :[/green1][white] {end - start} [/white] [/red]
[red][[gold1]+[/gold1]][green1] Thread (CORE) :[/green1][white] Optimize [/white] [/red]
[red][[gold1]+[/gold1]][green1] Target Coin :[/green1][gold1] Litecoin [LTC] [/gold1] [/red]
[red][[gold1]+[/gold1]][green1] Method Hunter :[/green1][white] HDWallet [[white on red3]P2PKH[/white on red3]] [/white] [/red]
[red][[gold1]+[/gold1]][green1] Output File :[/green1][white] {outp} [/white] [/red]
[red]=======================================================[/red]
[cyan]Programmer : Mmdrza.Com [red] ~[/red] Channel CryptoAttacker.t.me [/cyan]
[red]=======================================================[/red]
PLEASE WAITE ...
""")
time.sleep(8)
cl.clear()
cl.print(f"""
[red][[gold1]+[/gold1]][green1] Thread Time :[/green1][white] {time.thread_time()}[/white] [/red]
[red][[gold1]+[/gold1]][green1] Start Range :[/green1][white] {start} [/white] [/red]
[red][[gold1]+[/gold1]][green1] END Range :[/green1][white] {end} [/white] [/red]
[red][[gold1]+[/gold1]][green1] Start RangeKey :[/green1][white] {"%064x" % start} [/white] [/red]
[red][[gold1]+[/gold1]][green1] END RangeKey :[/green1][white] {"%064x" % end} [/white] [/red]
[red][[gold1]+[/gold1]][green1] Total Generate :[/green1][white] {end - start} [/white] [/red]
[red][[gold1]+[/gold1]][green1] Thread (CORE) :[/green1][white] Optimize [/white] [/red]
[red][[gold1]+[/gold1]][green1] Target Coin :[/green1][gold1] Litecoin [LTC] [/gold1] [/red]
[red][[gold1]+[/gold1]][green1] Method Hunter :[/green1][white] HDWallet [[white on red3]P2PKH[/white on red3]] [/white] [/red]
[red][[gold1]+[/gold1]][green1] Output File :[/green1][white] {outp} [/white] [/red]
[red]=======================================================[/red]
[cyan]Programmer : Mmdrza.Com [red] ~[/red] Channel CryptoAttacker.t.me [/cyan]
[red]=======================================================[/red]
""")
z = 0
w = 0
wx = 0
for x in range(start, end):
z += 1
tt = time.ctime()
dec = x
key = "%064x" % dec
hd: HDWallet = HDWallet(symbol=sym)
hd.from_private_key(private_key=key)
add = hd.p2pkh_address()
# ---------------------------------------------------------------- #
urlb = "https://litecoin.atomicwallet.io/address/" + add
reqb = requests.get(urlb)
bybs = reqb.content
srcb = html.fromstring(bybs)
xptb = '/html/body/main/div/div[2]/div[1]/table/tbody/tr[4]/td[2]'
tree = srcb.xpath(xptb)
txid = str(tree[0].text_content())
tran = str(txid)
# ---------------------------------------------------------------- #
if int(tran) > 0:
w += 1
# ---------------------------------------------------------------- #
xurlb = "https://litecoin.atomicwallet.io/address/" + add
xreqb = requests.get(xurlb)
xbybs = xreqb.content
xsrcb = html.fromstring(xbybs)
xxptb = '/html/body/main/div/div[2]/div[1]/table/tbody/tr[3]/td[2]'
xtree = srcb.xpath(xxptb)
xvalu = str(xtree[0].text_content())
bal = str(xvalu)
iffer = '0 LTC'
# ---------------------------------------------------------------- #
cl.print(f"""
[red][+][green1] FOUND :[/green1][white] {time.thread_time()}[/white][/red]
[red][+][green1] KEY :[/green1][white] {key.upper()} [/white][/red]
[red][+][green1] ADDR :[/green1][white] {add} [/white][/red]
[red][+][green1] Method:[/green1][white] BLOCK [/white][/red]
[red]----------------------------------------------------------------------[/red]
[white on red3][SCAN: {z}][F:{w}][RICH:{wx}][TXID: {tran}][{tt}] [/white on red3]
[red]----------------------------------------------------------------------[/red]
""")
if bal != iffer:
wx += 1
with open(outp, 'a') as rc:
rc.write(
f"[{tt}]:{add} TXID:{tran} BALANCE:{bal}\n[{tt}]:{key}\n----------------====[MMDRZA.COM ~ CryptoAttacker.T.Me]====----------------\n")
rc.close()
cl.print(f"""
[red][+][green1] FOUND :[/green1][white] {time.thread_time()}[/white][/red]
[red][+][green1] KEY :[/green1][white] {key.upper()} [/white][/red]
[red][+][green1] ADDR :[/green1][white] {add} [/white][/red]
[red][+][green1] Method:[/green1][white] BLOCK [/white][/red]
[red]----------------------------------------------------------------------[/red]
[white on blue3][SCAN: {z}][F:{w}][RICH:{wx}][BALANCE: {bal}][TXID: {tran}][{tt}] [/white on blue3]
[red]----------------------------------------------------------------------[/red]
""")
else:
print(f"[T:{z}][F:{w}][RICH:{wx}]:[{add}]:[{tran}]", end="\r")