Bitcoin Forum
December 09, 2016, 06:14:54 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 [26] 27 28 29 30 31 »
  Print  
Author Topic: Encrypted wallet.dat, lost password, any solutions?  (Read 172391 times)
tommyj1
Sr. Member
****
Offline Offline

Activity: 241


View Profile
October 10, 2014, 12:38:39 AM
 #501

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

1481264094
Hero Member
*
Offline Offline

Posts: 1481264094

View Profile Personal Message (Offline)

Ignore
1481264094
Reply with quote  #2

1481264094
Report to moderator
1481264094
Hero Member
*
Offline Offline

Posts: 1481264094

View Profile Personal Message (Offline)

Ignore
1481264094
Reply with quote  #2

1481264094
Report to moderator
1481264094
Hero Member
*
Offline Offline

Posts: 1481264094

View Profile Personal Message (Offline)

Ignore
1481264094
Reply with quote  #2

1481264094
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481264094
Hero Member
*
Offline Offline

Posts: 1481264094

View Profile Personal Message (Offline)

Ignore
1481264094
Reply with quote  #2

1481264094
Report to moderator
1481264094
Hero Member
*
Offline Offline

Posts: 1481264094

View Profile Personal Message (Offline)

Ignore
1481264094
Reply with quote  #2

1481264094
Report to moderator
1481264094
Hero Member
*
Offline Offline

Posts: 1481264094

View Profile Personal Message (Offline)

Ignore
1481264094
Reply with quote  #2

1481264094
Report to moderator
btchris
Hero Member
*****
Offline Offline

Activity: 630

a.k.a. gurnec on GitHub


View Profile WWW
October 10, 2014, 01:02:40 AM
 #502

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

Activity: 700


View Profile WWW
October 12, 2014, 02:53:48 PM
 #503

Btcrecover seems the very best password recovery tool, the tool set is impressive. Did anyone go through the code to check that it doesn't do anything malicious?

I'll take that as a compliment Wink

But as far as I know, nobody has done so. The Python code is long (approaching 4k lines mostly in a single file) and complicated, and "evolved" into its current somewhat messy state (as opposed to being well planned out, sorry...).

However I did write some "extract" scripts that are short and fairly easy to understand documented here: https://github.com/gurnec/btcrecover/blob/master/extract-scripts/README.md. The idea was that you could run one of the extract scripts directly on your wallet file, copy/paste the base64-encoded results into a VM w/o network access, and then not worry about what btcrecover might do with it (assuming you read and understood the short extract script). At worst, it could waste a bunch of CPU/GPU time, but at least it couldn't steal you wallet.

Of course, all that only really helps if you're already somewhat of a "techie" who knows how to set up a VM. I suspect that many people who choose to run btcrecover are not techies, and are putting themselves at risk (speaking as objectively as I can, of course as the code monkey who wrote it, I claim it's perfectly safe Smiley ).

I recommend you to to write a dedicated post for your tool, I think it deserves it!

Yes, I was going to suggest this same to you. I found your soft quite useful for some recovery works I'd done, including the recovery scripts. Sometime later I missed the link and I went quite mad looking back to the old posts, so it will be quite useful if there is a thread for your great app. And Thanks!
btchris
Hero Member
*****
Offline Offline

Activity: 630

a.k.a. gurnec on GitHub


View Profile WWW
October 14, 2014, 12:20:11 PM
 #504

Btcrecover seems the very best password recovery tool, the tool set is impressive. Did anyone go through the code to check that it doesn't do anything malicious?

I'll take that as a compliment Wink

But as far as I know, nobody has done so. The Python code is long (approaching 4k lines mostly in a single file) and complicated, and "evolved" into its current somewhat messy state (as opposed to being well planned out, sorry...).

However I did write some "extract" scripts that are short and fairly easy to understand documented here: https://github.com/gurnec/btcrecover/blob/master/extract-scripts/README.md. The idea was that you could run one of the extract scripts directly on your wallet file, copy/paste the base64-encoded results into a VM w/o network access, and then not worry about what btcrecover might do with it (assuming you read and understood the short extract script). At worst, it could waste a bunch of CPU/GPU time, but at least it couldn't steal you wallet.

Of course, all that only really helps if you're already somewhat of a "techie" who knows how to set up a VM. I suspect that many people who choose to run btcrecover are not techies, and are putting themselves at risk (speaking as objectively as I can, of course as the code monkey who wrote it, I claim it's perfectly safe Smiley ).

I recommend you to to write a dedicated post for your tool, I think it deserves it!

Yes, I was going to suggest this same to you. I found your soft quite useful for some recovery works I'd done, including the recovery scripts. Sometime later I missed the link and I went quite mad looking back to the old posts, so it will be quite useful if there is a thread for your great app. And Thanks!

You're welcome, and thank you for the kind words.

I'll definitely be starting a new thread (in the Tech Support section). I'm waiting until I have a bit of time to finish up some documentation on Unicode support, and then I'll start one. Thanks for the advice!
mricha
Newbie
*
Offline Offline

Activity: 3


View Profile
October 26, 2014, 11:07:45 PM
 #505

Hi all, n00b and oafy moron here,

I lost the password for my Bitcoin wallet because I wrote it down on a notebook that had very weak binding. The wallet only has .3164557 BT, but I'm poor and only make $2500 a year so that's a lot for me. Like, enough to feed me for a month.

I run Bitcore 64-bit on Windows 8. The password was really random but I have some general ideas about it. It was definitely between 9 and 13 characters, but probably only 10 or 11. It had uppercase letters, lowercase letters, numbers, punctuation (maybe), and symbols, but only symbols that come standard on a Us keyboard. I'm almost certain it didn't have any vowels. I don't think it had an exclamation point or an @ sign. I generally like to use percentages signs, ^s, ampersands, and asterisks a lot. When I think of the letters things like q, r, w, c, v, k, and p come to mind. I'm almost absolutely positive it had a y, either uppercase or lowercase. The y was probably next to a couple of 2s? And the 2s I think were near some parentheses, either (, ), ((, or )). I don't think I've ever used a 5 in a password.  How screwed am I, on a scale of 1 to 10?

Also, I backed up my wallet on a flashdrive. I'm not sure if the most recent backup file was before or after I encrypted the wallet. If it was before I encrypted the wallet, it was also certainly before I received the .3164557 BT in funds. If I attempt to restore from the backup will it wipe out all the funds I've gotten since?

Help is greatly appreciated, even though I'm poor and really don't have much to give!
btchris
Hero Member
*****
Offline Offline

Activity: 630

a.k.a. gurnec on GitHub


View Profile WWW
October 26, 2014, 11:42:21 PM
 #506

How screwed am I, on a scale of 1 to 10?

With 1 being least and 10 being most screwed... around 8ish I'd guess, maybe higher... Sad

Also, I backed up my wallet on a flashdrive. I'm not sure if the most recent backup file was before or after I encrypted the wallet. If it was before I encrypted the wallet, it was also certainly before I received the .3164557 BT in funds. If I attempt to restore from the backup will it wipe out all the funds I've gotten since?

As long as you didn't create a bunch (100ish) of new addresses or outgoing transactions, restoring from your backup has a much better chance of restoring your funds if the backup isn't encrypted.

Take a backup of your existing wallet.dat file first, and then restore the older backup. If there is zero balance, close Bitcoin and try running it with the -rescan option, e.g. go to Start -> Run, and type "C:\Program Files\Bitcoin\bitcoin-qt.exe -rescan". Hopefully this helps...
mricha
Newbie
*
Offline Offline

Activity: 3


View Profile
October 27, 2014, 06:50:45 AM
 #507

My backup file is from before I encrypted the wallet. I replaced the wallet .dat file in my roaming data with the backup file, ran the wallet with the rescan tag, and now I have 0 BTC in my wallet. It says it couldn't find the blockchain. It actually says "No Block Source Available." Any idea how to fix this?
mricha
Newbie
*
Offline Offline

Activity: 3


View Profile
October 27, 2014, 07:52:26 AM
 #508

Okay, the problem was that I needed to rename the backup file wallet.dat when I put it in the roaming data. I rescanned after that. However, it only lists 3 transactions from June before I encrypted my wallet, and I have 0 BTC in my account. It's as if the receiving addresses from after my wallet encryption didn't load. What do I do?
dooglus
Legendary
*
Online Online

Activity: 2002



View Profile
October 27, 2014, 09:04:13 AM
 #509

Okay, the problem was that I needed to rename the backup file wallet.dat when I put it in the roaming data. I rescanned after that. However, it only lists 3 transactions from June before I encrypted my wallet, and I have 0 BTC in my account. It's as if the receiving addresses from after my wallet encryption didn't load. What do I do?

Wallets backups include a pool of 100 (by default) addresses that it didn't show you yet, so you're good for the next 100 addresses you use (as new receiving addresses or change addresses).

When you encrypt a wallet, it deletes the old 100 unshown addresses and makes up a new 100 addresses, because the old ones have been written to disk unencrypted and so must be considered compromised. Your old unencrypted wallet backup won't include any private keys for addresses which you hadn't seen until after you encrypted.

Edit: if you encrypt using the RPC call, it tells you:

"wallet encrypted; Bitcoin server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup."

I expect the GUI gives a similar warning.

Edit2: yeah:

Code:
                   QMessageBox::warning(this, tr("Wallet encrypted"),
                                         "<qt>" +
                                         tr("Bitcoin will close now to finish the encryption process. "
                                         "Remember that encrypting your wallet cannot fully protect "
                                         "your bitcoins from being stolen by malware infecting your computer.") +
                                         "<br><br><b>" +
                                         tr("IMPORTANT: Any previous backups you have made of your wallet file "
                                         "should be replaced with the newly generated, encrypted wallet file. "
                                         "For security reasons, previous backups of the unencrypted wallet file "
                                         "will become useless as soon as you start using the new, encrypted wallet.") +
                                         "</b></qt>");

As long as you didn't create a bunch (100ish) of new addresses or outgoing transactions, restoring from your backup has a much better chance of restoring your funds if the backup isn't encrypted.

Unfortunately that isn't true.

btchris
Hero Member
*****
Offline Offline

Activity: 630

a.k.a. gurnec on GitHub


View Profile WWW
October 27, 2014, 01:00:03 PM
 #510

As long as you didn't create a bunch (100ish) of new addresses or outgoing transactions, restoring from your backup has a much better chance of restoring your funds if the backup isn't encrypted.

Unfortunately that isn't true.

Dooglus is right, and I was wrong. Thanks for the correction, dooglus. (I should have known better, I've read that code before....)

mricha, my sincere apologies for the false sense of hope. I'd suggest you start by reading one of DannyHamilton's excellent posts in this thread, perhaps this one: https://bitcointalk.org/index.php?topic=85495.msg6591146#msg6591146. If you can remember enough details of your password, it may be possible to find it, but what you've remembered so far probably isn't specific enough.

I'd be happy to help you try a brute forcing tool (such as those mentioned above) if you can remember enough details.

Code:
bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)
...
    Unlock(strWalletPassphrase);
    NewKeyPool();
    Lock();
...
bool CWallet::NewKeyPool()
...
    BOOST_FOREACH(int64_t nIndex, setKeyPool)
        walletdb.ErasePool(nIndex);
    setKeyPool.clear();
...
tkachev
Newbie
*
Offline Offline

Activity: 10


View Profile
November 27, 2014, 02:53:18 PM
 #511

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!
xxxgoodgirls
Hero Member
*****
Offline Offline

Activity: 686



View Profile
November 27, 2014, 02:56:33 PM
 #512

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.
tkachev
Newbie
*
Offline Offline

Activity: 10


View Profile
November 27, 2014, 03:11:40 PM
 #513

Thanks a lot! I'l try.
fran2k
Hero Member
*****
Offline Offline

Activity: 700


View Profile WWW
November 27, 2014, 04:54:07 PM
 #514

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.
lapada
Newbie
*
Offline Offline

Activity: 2


View Profile
January 18, 2015, 02:48:06 AM
 #515

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 ?
btchris
Hero Member
*****
Offline Offline

Activity: 630

a.k.a. gurnec on GitHub


View Profile WWW
January 18, 2015, 03:00:40 AM
 #516

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...
lapada
Newbie
*
Offline Offline

Activity: 2


View Profile
January 18, 2015, 03:10:10 AM
 #517

Oh, i did not know it existed. I'll try that and keep you posted ! Thanks a lot ! 
Revalin
Hero Member
*****
Offline Offline

Activity: 728


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
January 21, 2015, 06:47:28 AM
 #518

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://bitcointalk.org/index.php?topic=330672.0) 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.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
Cheebub
Newbie
*
Offline Offline

Activity: 1


View Profile
January 24, 2015, 09:30:41 AM
 #519

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



Furio
Hero Member
*****
Offline Offline

Activity: 770


BTC | LTC | PPC | EFL | NLG | ZEIT | XPM | DOGE(D)


View Profile
March 11, 2015, 11:39:18 AM
 #520

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
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 [26] 27 28 29 30 31 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!