|
逻辑:随机生成私钥,再通过私钥生成地址,把生成的地址与提前维护好的有钱地址进行匹配,匹配成功则这个私钥就是对的。环境:一、visualstudio依赖环境安装二、安装python3.9安装python3,9版本和相关的依赖pipinstallhdwalletpipinstalllxmlpipinstallcoloramapipinstallweb3三、代码1、地址维护2、循环读取验证文件地址defseek(r):print(mmdrza)fileBTC="btcaddr.txt"withopen(fileBTC)asf:add=f.read().split()addbtc=set(add)w=0z=0whileTrue:hex64=mHash()PRIVATE_KEY:str=hex641234567891011'运行运行3、随机生成BTC私钥地址defmHash():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'))......123456789101112131415164、匹配上之后,则结束循环ifbtcaddinaddbtcorbtcadd2inaddbtcorbtcadd3inaddbtcorbtcadd4inaddbtcorbtcadd5inaddbtcorbtcadd6inaddbtc:w+=1println(privBTC)f=open("result.txt","a")f.write('\nBTCPRIVATEKEY======>'+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()123456789101112离线运行视频下载链接https://www.lanzouh.com/b00taqlwbg密码:CS
|
|