gurnec / btcrecover

An open source Bitcoin wallet password and seed recovery tool designed for the case where you already know most of your password/seed, but need assistance in trying different possible combinations.
GNU General Public License v2.0
1.28k stars 685 forks source link

Is there a complete noob tutorial? #306

Open jamesyoungdigital opened 5 years ago

jamesyoungdigital commented 5 years ago

python btcrecover.py --wallet wallet.dat --regex-only "^[a-z]{5}19[0-9]{2}!{10}" Starting btcrecover 0.17.10 on Python 2.7.15 64-bit, 21-bit unicodes, 64-bit ints btcrecover.py: error: argument --tokenlist or --passwordlist is required (or file btcrecover-tokens-auto.txt must be present)

I couldn't find btcrecover-tokens-auto.txt, so I assume I have to create it. And specify that instead of my password list, perhaps. The regex should work, unless I have the syntax wrong for what I need? (Below on why I chose that regex).

I'm trying to get a feel for how long it might take to get a password recovery on my machine. I used a password with 5 lowercase letters, 4 digits (beginning with 19), then ! I thought the regex-only option would be a good choice, specifying max 10 chars at the end, and starting with the first 5 lowercase ^[a-z]{5} then the known 19, then the [0-9]{2} digits, then the literal !. If I try --passwordlist with candidates, it skips all 0 passwords (?) There's a list of 15 passwords in there. There are two ways to recover from those, one is by changing a special char at the end, e.g. ? to !, and the other is to lowercase the first letter (or all of them) then strip off the extra special char on the end.

python btcrecover.py --wallet wallet.dat --regex-only "^[a-z]{5}19[0-9]{2}!{10}" --passwordlist mypasswords.txt Starting btcrecover 0.17.10 on Python 2.7.15 64-bit, 21-bit unicodes, 64-bit ints Wallet difficulty: 265,153 SHA-512 iterations Skipped all 0 passwords, exiting

Can anyone help a complete n00b to this please? I'm really struggling with the tokens and the typos and not sure which would be optimal choices when I know a lot about the candidate password.

Thank you!

jamesyoungdigital commented 5 years ago

Oh, just a note on the "bang". I changed it to \! because bash interprets it. -bash: !{10}: event not found

KingZee commented 5 years ago

Did someone help you with this? I read the btcrecover help and it looks like you could use --tokenlist instead of regex

jonathancross commented 5 years ago

The password regex looks relatively simple, should not take long at all if that is correct. What was your intention with the !{10} at the end? That means !!!!!!!!!! -- was that your intention?