Author

Topic: [SCRIPT] Allow individuals to see how long it takes to brute force! (Read 782 times)

sr. member
Activity: 392
Merit: 250
If you can then you will probably win the lottery every single day!
The chances of winning the lottery is greater than brute forcing a keypair.

That is basically the point of this script, let the doubters/newbs have a go at it.
hero member
Activity: 518
Merit: 500
If you can then you will probably win the lottery every single day!
sr. member
Activity: 392
Merit: 250
Greetings,

One concern some new users may have, the ability to brute force a keypair.
As opposed to using advanced math to tell them, just let em try!

I created this simple batch script to allow them to try
Code:
@echo off
if "%1"=="" goto usage
if "%2"=="" goto usage
echo Now entering the brute force loop.
echo Press CTRL+C at any time to cancel the loop.
echo The loop will only stop on it's own when/if it successfuly brute forces the desired public address.
set count=0
:loop
if exist Brute.txt del Brute.txt
vanitygen64.exe -q -o Brute.txt %1
FOR /F "tokens=1 delims=" %%A in ('FIND /C "%2" Brute.txt') do SET tmp=%%A
set tmp=%tmp:~-1%
if "%tmp%" == "1" goto end1
set /A count+=1
echo  You have now failed to brute force %2
echo %count% times!
echo Press CTRL+C at any time to cancel your pointless attempt!
goto loop
:end1
rename Brute.txt %2.txt
echo Congratulations, You brute forced %2?!?!?!?!?!?!?!?!?
goto end2
:usage
echo Brute.bat Pattern FullPublicAddress
echo Pattern should be the first 5ish characters of the public address.
echo FullPublicAddress should be the fully public bitcoin address
echo which you want to attempt to brute force.
:end2

It uses vanitygen, just create a new batch file in the vanitygen directory and paste this script in it.
By default it uses the 64bit binary, If you don't have a 64-bit system just remove 64 from line 10.

If anybody questions the ability to brute force keypairs, feel free to refer them here so they can try for themselves.

EDIT: I have made many edits with fixes/improvements to script, I may make more if I think of any useful improvements.
Unfortunately VanityGen's version of quiet(-q) is not the standard version.
Jump to: