Bitcoin Forum
May 09, 2024, 10:26:23 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SCRIPT] Allow individuals to see how long it takes to brute force!  (Read 782 times)
7Priest7 (OP)
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
March 18, 2014, 02:41:07 AM
Last edit: March 18, 2014, 04:12:23 AM by 7Priest7
 #1

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

Posts: 1715250383

View Profile Personal Message (Offline)

Ignore
1715250383
Reply with quote  #2

1715250383
Report to moderator
1715250383
Hero Member
*
Offline Offline

Posts: 1715250383

View Profile Personal Message (Offline)

Ignore
1715250383
Reply with quote  #2

1715250383
Report to moderator
1715250383
Hero Member
*
Offline Offline

Posts: 1715250383

View Profile Personal Message (Offline)

Ignore
1715250383
Reply with quote  #2

1715250383
Report to moderator
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715250383
Hero Member
*
Offline Offline

Posts: 1715250383

View Profile Personal Message (Offline)

Ignore
1715250383
Reply with quote  #2

1715250383
Report to moderator
BenAnh
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
March 18, 2014, 05:46:03 AM
 #2

If you can then you will probably win the lottery every single day!
7Priest7 (OP)
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
March 18, 2014, 06:52:49 AM
 #3

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.
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!