Author

Topic: Tips for Recovering A Locked Wallet (Read 1326 times)

hero member
Activity: 533
Merit: 500
September 11, 2012, 01:11:52 AM
#4
  Yeah I was just thinking the same.  I'm no programmer but couldn't someone on this board write up a neat little dialog that would have tick boxes for a-z, A-Z, 0-9, @!%; (symbols) and the options:

1.  Crack!  (brute-force starting at one character and progressively going)
2.  Enter-what-you-think-your-password-is (and intelligently guess from there)
3.  Not sure what other method you can put in...

  I don't know, I just thought a utility for just this very issue could save more than a couple of us some heartache.  Especially if we made simple mistakes and are locked out of who knows how many coins.

  That looks great Revalin but for those of us who don't script, how would you run that in Windows?
sr. member
Activity: 448
Merit: 254
September 11, 2012, 12:21:45 AM
#3
 So today I was faced with the unthinkable - I somehow mistyped my password when I was wanting to change it and somehow must've made the same mistake twice when locking in a password over 26+ characters.

  Spent a good while attempting to re-crack it by testing capslock, double letters, double numbers, transposed letters, etc. without luck.

Glad you got your coins back, and thanks for the tips!  I've wondered about this sort of situation -- does anyone know of a tool for this situation that can generate a bunch of passwords to test, based on common key transpositions, holding down shift too long/not long enough, etc?  If you could get a good list this way it should be pretty easy to plug into a script to try them all (maybe via RPC, try unlocking the wallet with each candidate passphrase and see if it worked.)

Ah, looks like Revalin's script does some of this.  Awesome!
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
September 11, 2012, 12:14:26 AM
#2
I suppose it could be brute-forced or password cracked but I've found no tools to do this to a *.dat file as opposed to zips or other regular files.

For anyone who stumbles on this in the future: I wrote a simple brute force script which may work if you know most of your password.  Get it here:

https://bitcointalksearch.org/topic/m.942171
hero member
Activity: 533
Merit: 500
September 11, 2012, 12:07:31 AM
#1
  Hi all,

  So today I was faced with the unthinkable - I somehow mistyped my password when I was wanting to change it and somehow must've made the same mistake twice when locking in a password over 26+ characters.

  Spent a good while attempting to re-crack it by testing capslock, double letters, double numbers, transposed letters, etc. without luck.

  So depending on how many transactions you've made, here are my thoughts:

  1.  The Wiki bit on "Recovery" is a good first step.  Go into your directory (C:\Users\Username\AppData\Roaming\Bitcoin and find the wallet.dat.  Back that up.  Drop in a previously backed up wallet (you've been backing them up, right?).  Delete the blk##.dat files and index and allow the client to redownload the entire thing.  Given minimal use, you might be able to restore all your coins from a semi-recent file.

  2.  Since #1 did not work for me, I also gave it a go and looked for other ways to restore my wallet.  Found the rarely-used right-click "Restore Previous Versions" in Windows Explorer.  Mine had 3 backups - yesterday, a couple days ago, and last week.  If you restore one, it will not wipe out the dialogue's other versions, just FYI.  Again, make sure your current wallet that has all the coins is zipped or in a different folder.  Close the client and overwrite the *.dat.  Test your password.

  In this case, I had to go to my very last backup (before I knew I had overwritten my password wrongly since I caught it within a day or so).  Sure enough, all my coins were intact and the proper secure password that worked for me did indeed unlock the wallet Wink

  3.  I suppose it could be brute-forced or password cracked but I've found no tools to do this to a *.dat file as opposed to zips or other regular files.

  4.  If your wallet has lots of transactions and you've gone over 100, I'm also not sure how well the two options short of figuring out your mistaken password could be done without losing any of the coins.

  I did look at Armory but I don't believe that can outright recover a password.  Just thought I'd mention that in this case, I must've goofed so badly (TWICE...argh!) that trying restoring the file via Windows itself could help.  It's an extra step to try when you feel out of luck and worried.  

  As long as you take the current wallet.dat (presumably that has all your coins in it) and back it up or move it, you can test freely with older copies or backup dats and don't have to worry about overwriting the good file!

  
Jump to: