Pages:
Author

Topic: Encrypted wallet.dat, lost password, any solutions? - page 5. (Read 213440 times)

newbie
Activity: 37
Merit: 0
Hello btchris, thanks very much for writing out that program.

I'm trying to recover a password from my bitcoin core wallet.

A couple of questions:
1)How do I include a "$" or "^" in the token list file?  As it is, it is assuming that I am trying to say some character is at the end of the password, but actually I'm fairly certain there is a "$" in my password.

2)How do I include a single character more than once in the token list?

Thanks for any help you can provide.

EDIT: I got it!!!  Program worked flawlessly!  Turns out I didn't have a "$" in the pass.  For future reference, how WOULD you add a "$" into the token list?

PS.  I sent some btc your way to 17LGpN2z62zp7RS825jXwYtE7zZ19Mxxu8 which was listed at github.
THANKS!!!!
hero member
Activity: 672
Merit: 504
a.k.a. gurnec on GitHub
I have idea:
- choose any address that contained in both the ciphered wallet and unencrypted backup
- extract private key for address from unencrypted backup
- extract ciphered private key from ciphered wallet
- compare two extracted strings and get password for the wallet

I have superficial knowledge of cryptography, but this should work Smiley

Anyone know about software that can do what I described?

This is called a "known-plaintext attack". Every wallet I've seen to date uses the AES cipher which is believed to be invulnerable to this type of attack, sorry: https://en.wikipedia.org/wiki/Known-plaintext_attack#Present_day Sad

Do you have any recollection of your password? If so, you might be able to use one of the tools in this thread, or you could hire a service to try to recover your password.

newbie
Activity: 56
Merit: 0
does this work on altcoins to?

Which "this" did you mean?

Most of the methods in this thread will work on most altcoins which were originally based on Bitcoin software (and that's most, but not all, altcoins). So in short: probably, but it depends on the details...

i've got a pandacoin (PND) wallet, i changed my password a few months ago. i mixed up one or two letters. i always write my passwords on paper and ceep them in a secret location Smiley but this one i fucked up, at the time i didn't care to much as it was wirth only a few hundred usd.

but atm its worth a lot nore then that..

im not a geek so im green when it comes to this kind of shit.

i did a search for pandacoind put didn't find anything, so any help would be great

tommy

I'm not familiar with pandacoin, but here's the best advice I can give you. Basically, you'll need to create a test wallet with a known password, and test one of the password recovery techniques in this thread to make sure it succeeds, and then try your real wallet:

  • First and foremost, close the wallet software and then make a backup (or two!) of your wallet file.
  • Rename your wallet file, and restart the wallet software.
  • I'm presuming that a new wallet file is created during startup (which is common). If not, create a new wallet.
  • Add a password to the new wallet.
  • Find and install some software from this thread that can attempt to recover passwords from bitcoin wallets.
  • Configure the software to check your known password against the newly created wallet from above, and see if it succeeds.
  • Assuming it does, use this software against your backed-up wallet.

I realize it's a pain, so you might rather enlist the (paid) services of someone in the Services Discussion section. Maybe someone with pandacoin experience will reply, but until then, this is the best I can offer...

This is a good suggestion i would try this if I was you.
newbie
Activity: 4
Merit: 0
Hi
I’ve lost my password for bitcoin wallet Smiley

But I have unencrypted backup of the wallet that was made year ago.
Unfortunately, bitcoins stored on addresses that contained only in ciphered wallet, not in unencrypted backup.
But some of addresses contained in both the ciphered wallet and unencrypted backup

I have idea:
- choose any address that contained in both the ciphered wallet and unencrypted backup
- extract private key for address from unencrypted backup
- extract ciphered private key from ciphered wallet
- compare two extracted strings and get password for the wallet

I have superficial knowledge of cryptography, but this should work Smiley

Anyone know about software that can do what I described?
sr. member
Activity: 682
Merit: 269
please also backup the wallet.dat
newbie
Activity: 4
Merit: 0
Another candidate here for your software (and I may try the GPU version).
Since LEOcoin uses a leocoin-qt wallet, it should be possible to use your software, I hope?
I've already checked and I can set it up as a server, and connect to it with the Windows PowerShell script posted here.
But I need a better tool for tying the very long (over 50 character) password.
As a database programmer, guess I'm going to be making lots of dumb mistakes with Python.
Now, do I feel lucky ?
legendary
Activity: 938
Merit: 1000
BTC | LTC | XLM | VEN | ARDR
Dave at walletrecoveryservices.com managed to recover my password with only the information of what I originally thought my password was.

He charges 20% of the wallet amount (not much in my case) and was totally trustworthy. With all the stories around hacking and dodgy activities flying around, it was nice to have this experience when just getting started.

So thanks Dave  Grin

I think I need his services too, can't recover my 5 btc Sad

If you'd like to try to recover it yourself, here's the Quick Start for an open source (free) tool called btcrecover: https://github.com/gurnec/btcrecover/blob/master/TUTORIAL.md#btcrecover-tutorial. It does take a bit of work to get it set up and running, though. (Full disclosure: I'm the author of that tool.)

If you have any questions about it, just let me know.

Although I've never dealt with Dave personally, he's gotten nothing but good reviews from what I can tell, so that seems like a good option too.

Thanks for yuour help man, really aprreciated Smiley Will try it Smiley
hero member
Activity: 672
Merit: 504
a.k.a. gurnec on GitHub
Christopher, I´m planing to try out your software, I´ve seen your updates upto today inclusive. Any suggestions running on Windows. Can i´t be run offline :-)

Offline? Absolutely. It has zero network-related code.

You sound like the paranoid type (like me Wink), so here are some tips.

btcrecover doesn't require any binaries for the most part, but for some wallet types, installing some pre-compiled binaries can greatly speed things up (see the Installation Guide for details). I didn't compile any of the binaries, so even if you don't trust me (and you've got no reason to), you only need trust the source of the binaries.

But all of that doesn't even matter much if you want to run it offline. Just download the btcrecover .zip file, and the various binary installers you need according to the installation guide, throw them on a USB stick and install them on your offline PC.

What does matter, for the truly paranoid like me, is whether or not btcrecover has direct access to your wallet file (ideally, it shouldn't need it). To "fix" this issue, download one of the extract scripts listed here, and follow the directions in that doc to give only that one small script access to your wallet file (also offline). Once you get the extract string, you can give that to btcrecover instead of a full wallet file.

The advantage is that the extract script which has access to your full wallet file is small, simple, and self-contained. Even if you're not a Python programmer, you can probably verify that it's not doing anything "funny", has no network code, etc. (as opposed to the rest of btcrecover which has over 5,000 lines of code....)
donator
Activity: 743
Merit: 510
Christopher, I´m planing to try out your software, I´ve seen your updates upto today inclusive. Any suggestions running on Windows. Can i´t be run offline :-)
hero member
Activity: 672
Merit: 504
a.k.a. gurnec on GitHub
Dave at walletrecoveryservices.com managed to recover my password with only the information of what I originally thought my password was.

He charges 20% of the wallet amount (not much in my case) and was totally trustworthy. With all the stories around hacking and dodgy activities flying around, it was nice to have this experience when just getting started.

So thanks Dave  Grin

I think I need his services too, can't recover my 5 btc Sad

If you'd like to try to recover it yourself, here's the Quick Start for an open source (free) tool called btcrecover: https://github.com/gurnec/btcrecover/blob/master/TUTORIAL.md#btcrecover-tutorial. It does take a bit of work to get it set up and running, though. (Full disclosure: I'm the author of that tool.)

If you have any questions about it, just let me know.

Although I've never dealt with Dave personally, he's gotten nothing but good reviews from what I can tell, so that seems like a good option too.
legendary
Activity: 938
Merit: 1000
BTC | LTC | XLM | VEN | ARDR
Hello,

I'd just like to add a recommendation for http://www.walletrecoveryservices.com/ as a way of possibly recovering a lost password.

I'm brand new to Bitcoin and with my very first transaction had incorrectly written down my password!!!

Dave at walletrecoveryservices.com managed to recover my password with only the information of what I originally thought my password was.

He charges 20% of the wallet amount (not much in my case) and was totally trustworthy. With all the stories around hacking and dodgy activities flying around, it was nice to have this experience when just getting started.

So thanks Dave  Grin





I think I need his services too, can't recover my 5 btc Sad
newbie
Activity: 1
Merit: 0
Hello,

I'd just like to add a recommendation for http://www.walletrecoveryservices.com/ as a way of possibly recovering a lost password.

I'm brand new to Bitcoin and with my very first transaction had incorrectly written down my password!!!

Dave at walletrecoveryservices.com managed to recover my password with only the information of what I originally thought my password was.

He charges 20% of the wallet amount (not much in my case) and was totally trustworthy. With all the stories around hacking and dodgy activities flying around, it was nice to have this experience when just getting started.

So thanks Dave  Grin



hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
Problem is, the test does not test all possibilities as expected. Typically i get results like :

guili195
guili466
guili1051
guili1231
guili1370
guili2026
guili2476

As if, I don't why, some steps were jumped. I can write a bit python but this is the first time I am touching ruby. Please someone help ?

My script takes a shortcut.  Electrum doesn't stretch the wallet seed (more here: https://bitcointalksearch.org/topic/key-stretching-weakness-330672) and most passphrases can be rejected before stretching.

The script is written to be compact instead of readable so it's hard to spot it.  The shortcut is: given an invalid key, "$cipher.final" raises a CipherError exception; the program then jumps to "rescue OpenSSL::Cipher::CipherError", skipping the lines where it prints and tests the passphrase.
newbie
Activity: 2
Merit: 0
Oh, i did not know it existed. I'll try that and keep you posted ! Thanks a lot ! 
hero member
Activity: 672
Merit: 504
a.k.a. gurnec on GitHub
Hello there. I am trying to recover a password of which I think I know the first letters, but where I can't remember the last ones, which were digits if I remember well.

I know I'm not exactly answering your question (sorry, I don't really know ruby either), but if you'd like to try btcrecover (if someone with ruby experience doesn't respond), I can help you with that.

You'd basically need to download it (from the "download zip" button at the page linked above), and then take what's below and save it to a text file named "btcrecover-tokens-auto.txt" in the same directory as the Python script, and then follow the instructions under Quick Start in the Tutorial.

Code:
#--pause --wallet /home/lapa/.electrum/wallets/default_wallet
guili%1,6d

Let me know if you have any questions...
newbie
Activity: 2
Merit: 0
Hello there. I am trying to recover a password of which I think I know the first letters, but where I can't remember the last ones, which were digits if I remember well. So I did something like that:

Code:
#!/usr/bin/ruby
require 'base64'
require 'digest/sha2'
require 'open3'
require 'openssl'

# Put your best guess at your passphrase here
passphrase = 'guili'

# The full path to your electrum.dat or default_wallet
wallet_file = '/home/lapa/.electrum/wallets/default_wallet'

# Where to find Electrum.  Am using Ubuntu
$electrum = '/usr/bin/electrum'


def test(phrase)
  $cipher.reset
  $cipher.key = Digest::SHA256.digest(Digest::SHA256.digest(phrase))
  $cipher.update $seed
  $cipher.final
  puts phrase
  i,o,t = Open3.popen2e($electrum, "-o", "getseed")
  i.puts(phrase)
  i.close
  if t.value.success?
    puts "Found it! #{phrase}"
    exit
  end
rescue OpenSSL::Cipher::CipherError
end

def scramble(passphrase)
  characters = " !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
  list = []
 
  #add numbers at the end
  for i in 1..100000
    testphrase = passphrase.dup
    testphrase.concat(i.to_s)
    list << testphrase
  return list
end

wallet = File.read(wallet_file)
seed_base64 = wallet.match(/'seed': '([^']+)'/).captures.first
$seed = Base64.decode64(seed_base64)
$cipher = OpenSSL::Cipher.new('aes-256-cbc')
$cipher.iv = $seed.slice!(0,16)
Dir.chdir File.dirname $electrum
list1 = scramble(passphrase)
for i in list1
  test i
end
puts "No luck."
exit 1

Problem is, the test does not test all possibilities as expected. Typically i get results like :

guili195
guili466
guili1051
guili1231
guili1370
guili2026
guili2476

As if, I don't why, some steps were jumped. I can write a bit python but this is the first time I am touching ruby. Please someone help ?
hero member
Activity: 784
Merit: 500
I forgot my new password in bitcoin core, but i remember old password and i have old version of wallet.dat (with old password).
If i just replace it will it help me to take control and not loose today balance?
I am not sure and afraid of this step. Need advise!

Yes sure, just replace your wallet.dat while your bitcoincore-qt is NOT running.
Backup you newest wallet.dat as well.

You will get access to the address you had in your old wallet, if you imported new addresses in the meantime that will not be recovered using your backup.
newbie
Activity: 21
Merit: 0
Thanks a lot! I'l try.
legendary
Activity: 1092
Merit: 1001
I forgot my new password in bitcoin core, but i remember old password and i have old version of wallet.dat (with old password).
If i just replace it will it help me to take control and not loose today balance?
I am not sure and afraid of this step. Need advise!

Yes sure, just replace your wallet.dat while your bitcoincore-qt is NOT running.
Backup you newest wallet.dat as well.
newbie
Activity: 21
Merit: 0
I forgot my new password in bitcoin core, but i remember old password and i have old version of wallet.dat (with old password).
If i just replace it will it help me to take control and not loose today balance?
I am not sure and afraid of this step. Need advise!
Pages:
Jump to: