Bitcoin Forum
January 27, 2023, 04:54:21 AM *
News: Latest Bitcoin Core release: 24.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Forgotten wallet password: Is there a regex brute force program?  (Read 194 times)
btcusury (OP)
Sr. Member
****
Offline Offline

Activity: 433
Merit: 260


View Profile
September 27, 2021, 05:22:50 PM
Merited by o_e_l_e_o (4), NotATether (3), ETFbitcoin (2)
 #1

Hi y'all! A friend has forgotten his password, already several years back before mnemonic backups, and the bitcoins are now worth quite something. He has some idea of what it might be, but it's millions of possible combinations, impossible for him to try sequentially, but trivial for a computer to process if the right regex pattern could be supplied given some knowledge of parts of the password.

Is there such a brute force program that could be used to try a regex against a wallet.dat file?

FACT: There were hundreds of thousands of unnecessary deaths by December 2020 due to the censorship of all effective treatments (most notably ivermectin) in order to obtain EUA for experimental GT spike protein injections despite spike bioweaponization patents going back about a decade, and the manufacturers have 100% legal immunity despite long criminal histories.
1674795261
Hero Member
*
Offline Offline

Posts: 1674795261

View Profile Personal Message (Offline)

Ignore
1674795261
Reply with quote  #2

1674795261
Report to moderator
1674795261
Hero Member
*
Offline Offline

Posts: 1674795261

View Profile Personal Message (Offline)

Ignore
1674795261
Reply with quote  #2

1674795261
Report to moderator
1674795261
Hero Member
*
Offline Offline

Posts: 1674795261

View Profile Personal Message (Offline)

Ignore
1674795261
Reply with quote  #2

1674795261
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1674795261
Hero Member
*
Offline Offline

Posts: 1674795261

View Profile Personal Message (Offline)

Ignore
1674795261
Reply with quote  #2

1674795261
Report to moderator
1674795261
Hero Member
*
Offline Offline

Posts: 1674795261

View Profile Personal Message (Offline)

Ignore
1674795261
Reply with quote  #2

1674795261
Report to moderator
1674795261
Hero Member
*
Offline Offline

Posts: 1674795261

View Profile Personal Message (Offline)

Ignore
1674795261
Reply with quote  #2

1674795261
Report to moderator
o_e_l_e_o
Legendary
*
Offline Offline

Activity: 1918
Merit: 13795


Custodial exchanges were a mistake


View Profile
September 27, 2021, 05:39:50 PM
Merited by pooya87 (2), hugeblack (2), ETFbitcoin (1)
 #2

btcrecover is the software you are looking for.
You can find it here: https://github.com/3rdIteration/btcrecover
And its documentation here: https://btcrecover.readthedocs.io/en/latest/

You will essentially want to create a tokens file specifying the various strings which could be a part of the password and what combination of said strings to try, and then run it against your wallet.dat file. The instructions for how to do this are here: https://btcrecover.readthedocs.io/en/latest/tokenlist_file/

If you run in to any problems, let us know.

NotATether
Legendary
*
Offline Offline

Activity: 1134
Merit: 4745


Defend Bitcoin and its PoW: bitcoincleanup.com


View Profile WWW
September 27, 2021, 06:04:59 PM
 #3

Interesting question, OP. Such a program would indeed be useful but I am not aware of any programs that will brute force a wallet password by regex.

You will essentially want to create a tokens file specifying the various strings which could be a part of the password and what combination of said strings to try, and then run it against your wallet.dat file. The instructions for how to do this are here: https://btcrecover.readthedocs.io/en/latest/tokenlist_file/

Are you sure that BTCrecover will work with Bitcoin Core wallet.dats? I thought it could only recover Electrum seeds.

takuma sato
Member
**
Offline Offline

Activity: 115
Merit: 236


View Profile
September 27, 2021, 06:16:58 PM
 #4

Interesting question, OP. Such a program would indeed be useful but I am not aware of any programs that will brute force a wallet password by regex.

You will essentially want to create a tokens file specifying the various strings which could be a part of the password and what combination of said strings to try, and then run it against your wallet.dat file. The instructions for how to do this are here: https://btcrecover.readthedocs.io/en/latest/tokenlist_file/

Are you sure that BTCrecover will work with Bitcoin Core wallet.dats? I thought it could only recover Electrum seeds.

Your best hope is probably hashcat:

https://hashcat.net/hashcat/

But you'll have to spend big bucks in a decent computer with a top tier gaming GPU by nvidia if you want any realistic chances of bruteforcing it. If the money lost is relevant then I would pick an 3080 RTX card or 3090 RTX if you can afford it. If you have no success bruteforcing at least you'll be able to play games at the highest settings.
o_e_l_e_o
Legendary
*
Offline Offline

Activity: 1918
Merit: 13795


Custodial exchanges were a mistake


View Profile
September 27, 2021, 07:18:42 PM
 #5

Are you sure that BTCrecover will work with Bitcoin Core wallet.dats? I thought it could only recover Electrum seeds.
Yes, it will work. Its password recovery function works with a large array of wallets:

Bitcoin wallet password recovery support for:
  • Bitcoin Core
  • MultiBit HD and MultiBit Classic
  • Electrum (1.x, 2.x, 3.x and 4.x) (For Legacy and Segwit Wallets. Set --bip32-path "m/0'/0" for a Segwit wallet, leave bip32-path blank for Legacy... No support for 2fa wallets...)
  • Most wallets based on bitcoinj, including Hive for OS X
  • BIP-39 passphrases (Also supports all cryptos supported for seed recovery, as well as recovering "Extra Words" for Electrum seeds)
  • mSIGNA (CoinVault)
  • Blockchain.com
  • pywallet --dumpwallet of Bitcoin Unlimited/Classic/XT/Core wallets
  • Bitcoin Wallet for Android/BlackBerry spending PINs and encrypted backups
  • KnC Wallet for Android encrypted backups
  • Bither

It also supports both BIP39 and Electrum seed phrase descrambling, brute forcing, etc., both with and without additional passphrases, BIP38 paper wallets, and a bunch of altcoin wallets too, including Coinomi and Metamask.

NotATether
Legendary
*
Offline Offline

Activity: 1134
Merit: 4745


Defend Bitcoin and its PoW: bitcoincleanup.com


View Profile WWW
September 28, 2021, 04:58:43 AM
 #6

Your best hope is probably hashcat:

https://hashcat.net/hashcat/

But you'll have to spend big bucks in a decent computer with a top tier gaming GPU by nvidia if you want any realistic chances of bruteforcing it. If the money lost is relevant then I would pick an 3080 RTX card or 3090 RTX if you can afford it. If you have no success bruteforcing at least you'll be able to play games at the highest settings.

You can actually just rent a GPU rig from vast.ai for much cheaper if your brute-force operation will just take a few hours. They even have configurations with 5x and 8x GPUs, including ones from Google Cloud.

NotATether
Legendary
*
Offline Offline

Activity: 1134
Merit: 4745


Defend Bitcoin and its PoW: bitcoincleanup.com


View Profile WWW
September 30, 2021, 07:25:40 AM
 #7

You can try 20,000 passwords per second.

In practice, a high-end GPU searching solo can only search between 4K and 6K passwords per second because of heavy pbkdf2 operations.

dextronomous
Full Member
***
Offline Offline

Activity: 405
Merit: 100


View Profile
November 20, 2021, 01:05:50 AM
 #8

Hi y'all! A friend has forgotten his password, already several years back before mnemonic backups, and the bitcoins are now worth quite something. He has some idea of what it might be, but it's millions of possible combinations, impossible for him to try sequentially, but trivial for a computer to process if the right regex pattern could be supplied given some knowledge of parts of the password.

Is there such a brute force program that could be used to try a regex against a wallet.dat file?


btcusury you still on the look for a program, i found this one very usefull, https://github.com/glv2/bruteforce-wallet

go try out, can do quite a lot with that one, some threadripper at it, and you got the coins. gl.
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!