Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-20-2017, 12:28 AM   #1
deonbell
Confirmed User
 
deonbell's Avatar
 
Industry Role:
Join Date: Sep 2015
Posts: 1,045
Python - Using A String Modifier With A Variable

Just curious, How would I have gotten this code to work with a variable instead of having "69" hard coded into the code

Code:
    
    secret=('%064x' % 0x69)
    print secret
This gives me
00000000000000000000000000000000000000000000000000 00000000000069


I ended up doing it this way instead. Reading the variable from a file. It works this way.
Also give me
00000000000000000000000000000000000000000000000000 00000000000069

But curious about the above.

Code:
   
    inputfile = open('inputfile.txt', 'r')
    startdata = inputfile.read()
    inputfile.close() 
    print "starting point"
    
    inputlove=startdata.strip()   
   
    fart = inputlove.zfill(64)

    print fart
Thank you my gfy friends.
deonbell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2017, 12:39 AM   #2
deonbell
Confirmed User
 
deonbell's Avatar
 
Industry Role:
Join Date: Sep 2015
Posts: 1,045
I copied someone else's code and I plan on modifying it for my brute force
Next step is finding out how to verify whether the public address has been used. This will be the hard part.

Here is the output I get so far.

router@router-start:~/Desktop/python/bitcoingen$ python usethis.py
Y or N - Ready?
y
starting point
00000000000000000000000000000000000000000000000000 00000000000069
('1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT', '5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreNXqEJ Tk')
deonbell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2017, 09:55 AM   #3
Bladewire
StraightBro
 
Bladewire's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Monarch Beach, CA USA
Posts: 56,229
















Bladewire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2017, 09:57 AM   #4
Sly
Let's do some business!
 
Sly's Avatar
 
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,292
.format()

https://pyformat.info/
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted

Windows VPS now available.

Wanted: CCBill pay sites for sale
Sly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2017, 10:46 AM   #5
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
Edit: .
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2017, 01:29 PM   #6
deonbell
Confirmed User
 
deonbell's Avatar
 
Industry Role:
Join Date: Sep 2015
Posts: 1,045
Quote:
Originally Posted by deonbell View Post
Next step is finding out how to verify whether the public address has been used. This will be the hard part.
I was wrong. Very easy, Thank to a bitcoin API created by Vitalik Buterin, the brains behind Ethereum. Pybitcointools has the function history(addr). Simple as that.

Now here is my output.

Y or N - Ready?
y
starting point
00000000000000000000000000000000000000000000000000 00000000000069
1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT
[{'output': u'56d3132de2297da24d507346575d68f058796ad362142b41 6cfc746798fe5998:1', 'block_height': 423666, 'spend': u'ce965dbfff1b57d9522e34c436d58682edc4ad336bd1f92b 5d12f826090b3b41:0', 'value': 5000000, 'address': u'1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT'}, {'output': u'e5b4b528ff502edfc67fd0e76d2d37f15b904e8e368dff04 e38b856c0ff9ef7f:0', 'block_height': 315653, 'spend': u'd53e9c6f5c8b1140cd8aa7ad4681eb11e13fbc0954eba108 e383d710fc0f7b2b:0', 'value': 100000, 'address': u'1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT'}]
('1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT', '5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreNXqEJ Tk')

Here is the output when I change the exponent for a bitcoin address that does not exist.
python usethis.py
Y or N - Ready?
y
starting point
00000000000000000000000000000000000000000000000000 00000000009999
1A4MGxC9Yk7qkzKYxMYDW2R4fDFhzRmkv7
[]
('1A4MGxC9Yk7qkzKYxMYDW2R4fDFhzRmkv7', '5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEssxevqLt KV')
deonbell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2017, 01:36 PM   #7
Ferus
Bye - Left to do stuff
 
Industry Role:
Join Date: Feb 2013
Posts: 4,108
You need to format the output. The worker is fine.
Ferus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
print, variable, code, curious, fart, gfy, friends, file, inputfile.close, reading, starting, inputlove.zfill64, inputfile.read, startdata, inputlove=startdata.strip, inputfile, openinputfile.txt, string, modifier, secret, python, secret=%064x, hard, coded



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.