Bitcoin Forum
April 24, 2024, 01:49:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: is this Python Code working ? Wallet Maker.  (Read 241 times)
Donate_Me (OP)
Newbie
*
Offline Offline

Activity: 11
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
1713923367
Hero Member
*
Offline Offline

Posts: 1713923367

View Profile Personal Message (Offline)

Ignore
1713923367
Reply with quote  #2

1713923367
Report to moderator
1713923367
Hero Member
*
Offline Offline

Posts: 1713923367

View Profile Personal Message (Offline)

Ignore
1713923367
Reply with quote  #2

1713923367
Report to moderator
1713923367
Hero Member
*
Offline Offline

Posts: 1713923367

View Profile Personal Message (Offline)

Ignore
1713923367
Reply with quote  #2

1713923367
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


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 (OP)
Newbie
*
Offline Offline

Activity: 11
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
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<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() )

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!