Bitcoin Forum
April 16, 2024, 10:52:02 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 »  All
  Print  
Author Topic: [Bounty] 2 BTC - corrupted wallet recovery!  (Read 2643 times)
LeChatNoir (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 501


Coinpanion.io - Copy Successful Crypto Traders


View Profile WWW
October 14, 2016, 06:58:07 AM
Last edit: October 14, 2016, 10:02:05 AM by LeChatNoir
 #1

Hi guys,

i'm trying to recover some of the private keys contained in a corrupted NMC encrypted wallet.

I know the passphrase.

I've already tried with this tool https://github.com/jackjack-jj/pywallet and the following command:

sudo python ./pywallet.py --recover --namecoin --recov_device /path/to/corrupted_wallet.dat --recov_size 1Mo --recov_outputdir /home/username/Desktop/recovery

No success! Sad

I've also tried to open and read the wallet with an hex editor to see if i could somehow understand its structure and isolate some private keys but i couldn't really understand anything of that, i can see only 8 "ckeyA" strings are present but NO "mkey", the file looks badly corrupted but only one private key contains namecoin so maybe i can recover that one only.

I'm willing to reward with 2 BTC if someone helps me to recover the private key i need.

I'm posting in the bitcoin section because i think NMC wallet format is the same as BTC wallet format, i hope this thread will not be cancelled or moved,

If you need further information please ask.

Thank you.

Coinpanion.io - Copy Successful Crypto Traders
1713307922
Hero Member
*
Offline Offline

Posts: 1713307922

View Profile Personal Message (Offline)

Ignore
1713307922
Reply with quote  #2

1713307922
Report to moderator
1713307922
Hero Member
*
Offline Offline

Posts: 1713307922

View Profile Personal Message (Offline)

Ignore
1713307922
Reply with quote  #2

1713307922
Report to moderator
1713307922
Hero Member
*
Offline Offline

Posts: 1713307922

View Profile Personal Message (Offline)

Ignore
1713307922
Reply with quote  #2

1713307922
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713307922
Hero Member
*
Offline Offline

Posts: 1713307922

View Profile Personal Message (Offline)

Ignore
1713307922
Reply with quote  #2

1713307922
Report to moderator
hardshot
Sr. Member
****
Offline Offline

Activity: 457
Merit: 251


View Profile
October 14, 2016, 08:40:10 AM
 #2

Have you tried to start the qt wallet with '-salvagewallet' or '-repairwallet' parameter?
NeuroticFish
Legendary
*
Offline Offline

Activity: 3640
Merit: 6348


Looking for campaign manager? Contact icopress!


View Profile
October 14, 2016, 08:53:37 AM
 #3

Long time ago I've seen this thread and bookmarked it. Maybe it helps. https://bitcointalk.org/index.php?topic=22697.0
If you already started on the hex path, this shouldn't be hard to check if it's good for you or not.
Good luck!

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
LeChatNoir (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 501


Coinpanion.io - Copy Successful Crypto Traders


View Profile WWW
October 14, 2016, 09:14:34 AM
 #4

Have you tried to start the qt wallet with '-salvagewallet' or '-repairwallet' parameter?

No luck   Undecided

Coinpanion.io - Copy Successful Crypto Traders
hardshot
Sr. Member
****
Offline Offline

Activity: 457
Merit: 251


View Profile
October 14, 2016, 09:18:21 AM
 #5

Do you know what may have caused the damage?
Is your HDD slowly dying?
LeChatNoir (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 501


Coinpanion.io - Copy Successful Crypto Traders


View Profile WWW
October 14, 2016, 09:50:53 AM
Last edit: October 14, 2016, 10:34:17 AM by LeChatNoir
 #6

BTW i found  8 "ckeyA" strings inside my wallet, the problem is my wallet is encrypted and i don't know how to extract the private keys from those fragments of text and i don't even know if that's all i need, together with the wallet password, to restore at least those 8 private keys.

Coinpanion.io - Copy Successful Crypto Traders
laugh2btc
Hero Member
*****
Offline Offline

Activity: 531
Merit: 500


View Profile
October 14, 2016, 10:13:01 AM
 #7

Maybe this: (2nd post)

https://bitcointalk.org/index.php?topic=1404609.0

It´s the same way you posted on op, but maybe you ll find a mistake in your command or a hint to solve
LeChatNoir (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 501


Coinpanion.io - Copy Successful Crypto Traders


View Profile WWW
October 14, 2016, 10:34:03 AM
Last edit: October 14, 2016, 10:45:45 AM by LeChatNoir
 #8

Do you know what may have caused the damage?
Is your HDD slowly dying?

The NMC client and the encrypted wallet were stored inside the encrypted Ubuntu home directory of a linux installation running inside a virtualbox virtual machine.  
Last month i decided to format my computer, before doing that i copied the virtual machine file .vdi on an external NTFS hard disk.
At some point the fu.cking linux showed the copy process as completed, the .vdi file was shown inside the external HD and i stupidly decided to unplug the USB and format my computer.
When i later tried to restore the .vdi file, i remount the external HD with the backup and i found out the .vdi file i needed was not there anymore, it has never been copied apparently.
I did a recovery of the ext HD with photorec, it has found some .eCryptfs files that i succesfully mounted and decrypted.
Now amongst these files i have found 1 that is very similar to an NMC encrypted wallet but it has only 8 "ckeyA" strings inside instead of >100 so i think i have my severely damaged NMC wallet.
I couldn't find the mkey record inside that file which i don't know if necessary to decrypt btw, can i recover some private keys from what is left of my original wallet?  

PS: before you suggest, trying a recovery from the original HD is impossible at this point, i formatted my computer more then one time and at some point i've also filled my hard disk with new data.
 

Coinpanion.io - Copy Successful Crypto Traders
LeChatNoir (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 501


Coinpanion.io - Copy Successful Crypto Traders


View Profile WWW
October 14, 2016, 10:44:05 AM
 #9

Maybe this: (2nd post)

https://bitcointalk.org/index.php?topic=1404609.0

It´s the same way you posted on op, but maybe you ll find a mistake in your command or a hint to solve


I've tried to use the pywallet utility, i've also tried to recover keys from a new working NMC encrypted wallet but for some reason pywallet doesn't seem to work with NMC wallets at all, corrupted or not.

Coinpanion.io - Copy Successful Crypto Traders
laugh2btc
Hero Member
*****
Offline Offline

Activity: 531
Merit: 500


View Profile
October 14, 2016, 12:27:45 PM
 #10

Ask this guy (he´s online atm): He posted this: https://github.com/jackjack-jj/pywallet

https://bitcointalk.org/index.php?action=profile;u=21053


good luck!
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
October 14, 2016, 01:15:06 PM
 #11

Hi!
Try this without --namecoin:
Quote
sudo python ./pywallet.py --recover --recov_device /path/to/corrupted_wallet.dat --recov_size 1Mo --recov_outputdir /home/username/Desktop/recovery

What does it return? What is "no success"?
And how did you find 8 "ckeyA"? How many "ckey" do you find?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
LeChatNoir (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 501


Coinpanion.io - Copy Successful Crypto Traders


View Profile WWW
October 14, 2016, 01:34:36 PM
 #12

Starting recovery.

Read 0.0 Go in 0.0 minutes

Found 1 possible wallets
Found 0 possible encrypted keys
Found 0 possible unencrypted keys

Possible wallet #1
    with passphrase #1  

All the found encrypted private keys have been decrypted.
The wallet is encrypted and the passphrase is correct


Importing:


The new wallet /home/username/Desktop/recovery/recovered_wallet_1476451765.dat contains the 0 recovered key



This is the output of pywallet with a valid NMC wallet!

I opened the corrupted wallet with an hex editor and found 8 ckey only and no mkey


Coinpanion.io - Copy Successful Crypto Traders
NeuroticFish
Legendary
*
Offline Offline

Activity: 3640
Merit: 6348


Looking for campaign manager? Contact icopress!


View Profile
October 14, 2016, 01:39:25 PM
 #13

Since your bounty is quite consistent, I would assume that your wallet is pretty fat one, so I can assume that you will try all the possible options..

I've read that wallet.dat is a Berkeley DB file. Maybe get the Oracle Berkeley DB files and see if db_dump works or maybe try a db_recover on the wallet file and then try again with pywallet.py
I didn't want to install anything so downloaded the zip from Oracle and I compiled it myself. On my wallet the db_dump worked, just it obtained a lot of .. lines which have to be further decrypted (hence the pywallet is still your friend).

Again: you may need to do a db_recover.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
spartak_t
Legendary
*
Offline Offline

Activity: 1960
Merit: 1176


@FAILCommunity


View Profile WWW
October 14, 2016, 01:43:54 PM
 #14

Just fork the coin. Cheesy

P.S. Just kidding. Good luck with that, because I suppose you are in tough position...

innominatus
Full Member
***
Offline Offline

Activity: 126
Merit: 100

You have to get lost before you can find yourself.


View Profile
October 14, 2016, 01:47:11 PM
 #15

subscribed. intrested how it ends. wish you best luck recovering all your money
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
October 14, 2016, 02:00:43 PM
 #16

Oh wait, I didn't notice that, this is no good: --recov_size 1Mo
You must put the size of the hard disk in --recov_size, and I bet it's more something around 500Go

You must put at least the size of the file, is your wallet.dat really <1Mo?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
LeChatNoir (OP)
Hero Member
*****
Offline Offline

Activity: 699
Merit: 501


Coinpanion.io - Copy Successful Crypto Traders


View Profile WWW
October 14, 2016, 02:06:47 PM
 #17

Oh wait, I didn't notice that, this is no good: --recov_size 1Mo
You must put the size of the hard disk in --recov_size, and I bet it's more something around 500Go

You must put at least the size of the file, is your wallet.dat really <1Mo?

It is 135 kb.
Is having the mkey necessary to decrypt some private key?
Because if that parameter is necessary we'd better stop here since i can't find it in my corrupted wallet.

I've found this guy https://bitcointalk.org/index.php?topic=398155.0 had to change something in the pywallet script to make it work with litecoin, maybe i need to change something too?

Coinpanion.io - Copy Successful Crypto Traders
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
October 14, 2016, 02:10:56 PM
 #18

Oh wait, I didn't notice that, this is no good: --recov_size 1Mo
You must put the size of the hard disk in --recov_size, and I bet it's more something around 500Go

You must put at least the size of the file, is your wallet.dat really <1Mo?

It is 135 kb

Isn't that small for a wallet file?

BTW in Pywallet I have hardcoded formats for ckeys that could be different from Namecoin, if you're OK you can send me your wallet (it is encrypted I can't use private keys) and I'll try pywallet without checks to see what I can find.

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
October 14, 2016, 02:14:10 PM
 #19

Oh wait, I didn't notice that, this is no good: --recov_size 1Mo
You must put the size of the hard disk in --recov_size, and I bet it's more something around 500Go

You must put at least the size of the file, is your wallet.dat really <1Mo?

It is 135 kb.
Is having the mkey necessary to decrypt some private key?
Because if that parameter is necessary we'd better stop here since i can't find it in my corrupted wallet.
Are you 100% sure you don't have mkey? Because "Found 1 possible wallets" means pywallet found 1 mkey

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
October 14, 2016, 02:20:03 PM
 #20

I've found this guy https://bitcointalk.org/index.php?topic=398155.0 had to change something in the pywallet script to make it work with litecoin, maybe i need to change something too?
No because in his case pywallet found the keys

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Pages: [1] 2 3 »  All
  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!