赞
踩
逻辑:
随机生成私钥,再通过私钥生成地址,把生成的地址与提前维护好的有钱地址进行匹配,匹配成功则 这个私钥就是对的。
环境:
一、visual studio 依赖环境安装
二、安装python3.9
安装python3,9版本和相关的依赖
pip install hdwallet
pip install lxml
pip install colorama
pip install web3
三、代码
1、地址维护
2、循环读取验证文件地址
def seek(r) :
print(mmdrza)
fileBTC = "btcaddr.txt"
with open(fileBTC) as f :
add = f.read().split()
addbtc = set(add)
w = 0
z = 0
while True :
hex64 = mHash()
PRIVATE_KEY: str = hex64
3、随机生成BTC私钥地址
def mHash(): bx1 = str(random.choice('0123456789abcdef')) bx2 = str(random.choice('0123456789abcdef')) bx3 = str(random.choice('0123456789abcdef')) bx4 = str(random.choice('0123456789abcdef')) bx5 = str(random.choice('0123456789abcdef')) bx6 = str(random.choice('0123456789abcdef')) bx7 = str(random.choice('0123456789abcdef')) ......
4、匹配上之后,则结束循环
if btcadd in addbtc or btcadd2 in addbtc or btcadd3 in addbtc or btcadd4 in addbtc or btcadd5 in addbtc or btcadd6 in addbtc :
w += 1
println(privBTC)
f = open("result.txt" , "a")
f.write('\nBTC PRIVATEKEY ======> ' + str(privBTC))
f.write('\nAddressBTC =========> ' + str(btcadd))
f.write('\nAddressBTC =========> ' + str(btcadd2))
f.write('\nAddressBTC =========> ' + str(btcadd3))
f.write('\nAddressBTC =========> ' + str(btcadd4))
f.write('\nAddressBTC =========> ' + str(btcadd5))
f.write('\nAddressBTC =========> ' + str(btcadd6))
f.close()
BTC离线碰撞
备注csdn
v:B___________OO
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。