Bitcoin Forum
October 17, 2018, 03:24:18 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: is this Python Code working ? Wallet Maker.  (Read 189 times)
Donate_Me
Newbie
*
Offline Offline

Activity: 8
Merit: 0


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

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 : https://brainwalletx.github.io/ showed the right address.
its hard to check this by hand for 700 try.
any suggest ?
p.s : i have windows , no linux.

Code:
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
1539789858
Hero Member
*
Offline Offline

Posts: 1539789858

View Profile Personal Message (Offline)

Ignore
1539789858
Reply with quote  #2

1539789858
Report to moderator
1539789858
Hero Member
*
Offline Offline

Posts: 1539789858

View Profile Personal Message (Offline)

Ignore
1539789858
Reply with quote  #2

1539789858
Report to moderator
1539789858
Hero Member
*
Offline Offline

Posts: 1539789858

View Profile Personal Message (Offline)

Ignore
1539789858
Reply with quote  #2

1539789858
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539789858
Hero Member
*
Offline Offline

Posts: 1539789858

View Profile Personal Message (Offline)

Ignore
1539789858
Reply with quote  #2

1539789858
Report to moderator
1539789858
Hero Member
*
Offline Offline

Posts: 1539789858

View Profile Personal Message (Offline)

Ignore
1539789858
Reply with quote  #2

1539789858
Report to moderator
1539789858
Hero Member
*
Offline Offline

Posts: 1539789858

View Profile Personal Message (Offline)

Ignore
1539789858
Reply with quote  #2

1539789858
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 1162
Merit: 1111


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

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.

Donate_Me
Newbie
*
Offline Offline

Activity: 8
Merit: 0


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

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.
HCP
Hero Member
*****
Offline Offline

Activity: 756
Merit: 932

<insert witty quote here>


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

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:
Code:
   priv = sha256( line.rstrip() )

Pages: [1]
  Print  
 
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!