Bitcoin Forum
July 16, 2018, 01:03:05 PM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: is this Python Code working ? Wallet Maker.  (Read 184 times)
Offline Offline

Activity: 8
Merit: 0

View Profile
August 13, 2017, 12:08:54 PM

Hello guys.
i dont know from what user i take this file.
but it seems not working ..

goal :a freind who have 3BTC ( from old days ) asking me to help to recover.
he provide me his famouse 20 most words (his daughter and wife ) and i convert to diffrent types like :
i love you sara and i love you maxxx
I Love You Sara and i Love You Maxxx
!@I Love You Sara and i Love You Maxxx
!@#$I Love You Sara and i Love You Maxxx
and its like 600-700 at all.

i want to check this for him ( i know the chanse is like 0.000099% but i want to give a try , cause he really need some cash for his family )

i want to make address and check if it have the balance in it.
there is already some tools like BrainFlay and ... buts they are for professional usage like million try and i dont need.
can someone check this code is work ?
i test my old pass i have but the address is generated didnt show my old trans.
but this : showed the right address.
its hard to check this by hand for 700 try.
any suggest ?
p.s : i have windows , no linux.

from pybitcointools import *
import sys
filename  = open("address.txt",'w')
sys.stdout = filename
print "Anything printed will go to the output file"

with open('file.txt') as textfile:
    for line in textfile:
       priv = sha256(line)
       pub = privtopub(priv)
       addr = pubtoaddr(pub)
       print addr
       print priv
Hero Member
Offline Offline

Posts: 1531746185

View Profile Personal Message (Offline)

Reply with quote  #2

Report to moderator
The World's Betting Exchange

Bet with play money. Win real Bitcoin. 5BTC Prize Fund for World Cup 2018.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Copper Member
Offline Offline

Activity: 1064
Merit: 1081

View Profile
August 13, 2017, 12:34:21 PM

That code might work.

I think you'd have to search for pybitcointools library and install that.

I think there's a repository on github for it (and yes it works on Windows, I installed it a few days ago on Windows 7).
There's nothing about the password in that code though in the snip you posted.

Offline Offline

Activity: 8
Merit: 0

View Profile
August 13, 2017, 01:16:19 PM

Thanks Jackg.
so i need install ? i run this code and its export addresses.but wrong i think.

about passwords i mixed them and add into file.txt and then its export the address.txt
address generated 789 qty but i dont think they was CORRECT Address based on PASSWORD.
Hero Member
Offline Offline

Activity: 658
Merit: 872

<insert witty quote here>

View Profile
August 13, 2017, 03:20:47 PM

You may find that you need to "tidy up" the 'line' variable before passing it to sha256()... it is quite possible that when you read it from the file, it is including a carriage return/line feed/new line type character(s) at the end of the line... that character will change the sha256 value

Try stripping all whitespace from the end... somethine like:
   priv = sha256( line.rstrip() )

Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!