Bitcoin Forum
July 12, 2024, 02:56:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 4 5 6 7 8 »
1  Other / Meta / Re: Stake your Bitcoin address here on: December 24, 2017, 09:47:47 AM

Quote
nargizochka12! Mother Russia.

Quote
1BaQPwJqFcFKnGt3kL2JuZDp477VvXQpRy


Quote

IECfxAsQOyisfAjoIvvoRcXxUYCn8NUReJryw5BNS0QgR116XDAp0jSmeiagOJ6yyB7D8E6vKJf+U3OBPMfACJI=


Signed with 'Electrum 3.0.3' from electrum.org


Verified! Quite a funny line to encrypt  Cheesy

http://coinig.com/?adr=1BaQPwJqFcFKnGt3kL2JuZDp477VvXQpRy&msg=nargizochka12%21+Mother+Russia.&sig=IECfxAsQOyisfAjoIvvoRcXxUYCn8NUReJryw5BNS0QgR116XDAp0jSmeiagOJ6yyB7D8E6vKJf%2BU3OBPMfACJI%3D
2  Bitcoin / Bitcoin Technical Support / Re: how I rescued my wallet.dat on: December 24, 2017, 09:33:19 AM
Two years ago I formatted my harddisk and installed Windows 10 on it. Before this I did a backup, but unfortunately the backup was broken. So I lost my wallet.dat, with a few Bitcoins in it. I could restore some files with RStudio, and I had older backups for the rest, but seemed to be that the latest wallet.dat was already overwritten, and I frequently add new addresses. So I gave up, not a big deal, maybe $200 lost. But I didn't use the harddisk and bought a new one.

Fast forward to December 2017: Now a few Bitcoins is some serious money, so I decided to give it another try. I tried any option I could find in RStudio, checking the dozens of filesystems it reported after scanning it for hours (only a few where valid from previous installations), but I couldn't restore it. Ok, this needed some more work.

My assumption was, that the file headers were broken, so I wrote a small C program myself, which scanned the whole harddisk for the wallet.dat signature (testing for the first 16 bytes). The filesystem was NTFS, which has 4k sector sizes and a file starts always at sector start, if I understand it correctly, which makes things easier. Also usually if there is enough space, contiguous sectors are used to save a file. My hope was that somewhere I could find old version of the wallet.dat, but not too old that the new keys were missing.

This is the very simple and straightforward scan program I hacked together:

Code:
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>

uint8_t buf[4096];
char filename[1000];

uint8_t search[] = {
    0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x62, 0x31, 0x05, 0x00
};

int main(int argc, char** argv)
{
    uint64_t pos = 0;
    FILE* f = fopen("/dev/sdd", "rb");
    FILE* w = NULL;
    int walletNumber = 0;
    int walletIndex = 0;
    uint64_t max = 1000000000000ULL;
    while (1) {
        int c = fread(buf, 1, 4096, f);
        if (c != 4096) break;
        if (!w) {
            if (memcmp(search, buf, 16) == 0) {
                sprintf(filename, "wallet%i.dat", walletNumber++);
                walletIndex = 0;
                w = fopen(filename, "wb");
                printf("found: %" PRIu64 "\n", pos);
            }
        }
        if (w) {
            fwrite(buf, 1, 4096, w);
            walletIndex++;
            if (walletIndex == 256) {
                fclose(w);
                w = NULL;
            }
        }
        pos += 4096;
    }
    fclose(f);
    return 0;
}

I used it on Linux as my host system and the old harddisk was visible as /dev/sdd (you can see this with dmesg). I compiled it with "gcc -O3 scan.cpp -o scan" and started it with "sudo ./scan", and a few hours later (it was a 1 TB harddisk) I got a wallet0.dat to wallet9.dat, each 1 MB in size (it doesn't matter if there is crap after the wallet data). This was a nice start Grin

Then I tried to copy it to a wallet.dat of a current Bitcoin installation, but most of the time it said the wallet was corrupt, once it even crashed at start and when it said it could salvage some information, no keys were in it.

My rescue was https://github.com/joric/pywallet This program could decode all files and output it in JSON format. It needs the wallet.dat in a bitcoin-qt installation in the .bitcoin directory. I knew one of my old addresses, so I wrote a script which did test all files (actual key changed) :

Code:
for i in $( ls wallet*.dat ); do
    echo item: $i
    cp $i .bitcoin/wallet.dat
    ./pywallet.py --dumpwallet --datadir=.bitcoin | grep -i 12QDRXssT63Pv5KTGBN2kyAvfLW3s7jxBs
done

The output looked like this:

Code:
item: wallet0.dat
item: wallet10.dat
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
item: wallet11.dat
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
item: wallet1.dat
WARNING:root:encrypted wallet, specify password to decrypt
item: wallet2.dat
item: wallet3.dat
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
item: wallet4.dat
Traceback (most recent call last):
  File "./pywallet.py", line 1706, in <module>
    main()
  File "./pywallet.py", line 1683, in main
    read_wallet(json_db, db_env, True, True, "")
  File "./pywallet.py", line 1556, in read_wallet
    parse_wallet(db, item_callback)
  File "./pywallet.py", line 1287, in parse_wallet
    for (key, value) in db.items():
bsddb.db.DBPageNotFoundError: (-30986, 'BDB0075 DB_PAGE_NOTFOUND: Requested page not found')
item: wallet5.dat
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
item: wallet6.dat
WARNING:root:encrypted wallet, specify password to decrypt
            "addr": "12QDRXssT63Pv5KTGBN2kyAvfLW3s7jxBs",
item: wallet7.dat
WARNING:root:encrypted wallet, specify password to decrypt
item: wallet8.dat
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
item: wallet9.dat
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.

So the address was in wallet6.dat, success! I then used "/pywallet.py --dumpwallet --datadir=.bitcoin --password=mysecrectpassword > keys.txt" and I got all my keys back. In the bitcoin client I could import it with importprivkey (don't forget the "false" parameter as the last parameter, to avoid rescanning after each import, if you import multiple keys) and after the final rescan, I got my Bitcoins back. One day work for like 2 Bitcoins, which I already sold, that's a nice hourly rate Cool

Maybe this will help some other people as well. In case you rescue a lot of Bitcoins, I would really love it if you would send me some to 1HagWYdLaFRbXwUfzbuWzcDc4WzmsRGqg7.

Marilyn wishes you a merry Christmas, a merry Christmas, And a happy New Year!
That was a roller coaster of a ride  Shocked, you were very lucky and that was a great christmas present for you. If only I could have found old wallet dats I mined, but of course I am a late adopter in terms of you all. I would love to one day say that I made a great decision to invest in bitcoin, again great job to you and I am glad you found the very thing that has made you happy this year! Merry Christmas!
3  Bitcoin / Bitcoin Discussion / Re: Should I Wait or Invest On Bitcoin? on: December 24, 2017, 09:30:41 AM
Invest in bitcoin now, there is never a better time to do it than to have adoption in a day. Adoption for bitcoin is the greatest thing to happen since fried bread and I am thrilled to be part of it. Bitcoin is the best investment you can make now, not fintech companies that are highly centralized and provide no real value. I suggest bitcoin should be bought now because it is in dip mode.
4  Bitcoin / Bitcoin Discussion / Re: How long bitcoin will survive ? on: December 24, 2017, 09:29:45 AM
Bitcoin will survive forever, it is the next big thing and will continue to stay until something better comes along (Which probably wont) because bitcoin will adapt quickly since it is software. Fiat currency can never adapt and the evolution of money will continue until we hit a s curve top point.
5  Bitcoin / Bitcoin Discussion / Re: Shaking out the tree on: December 24, 2017, 09:29:13 AM
In terms of pricing yes it is still around 10,000 USD, but you have to believe what it is worth. I believe it is worth a lot more than that and I can see it rising to even 200 thousand usd someday, I am not that rich so this can be good booster for me.
6  Bitcoin / Bitcoin Discussion / Re: Low transaction fees on: December 24, 2017, 09:27:57 AM
Transaction fees will be solved with the coming of the lightning network, we are all hopeful and you should be too! Low transaction fees will boost adoption in the next few years. There are lots of good projects trying to solve this problem, good luck to all of them. I just read very interesting use cases of IOTA, Lineage, Raiden and other scaling solutions and I love what I see.
7  Alternate cryptocurrencies / Tokens (Altcoins) / Re: ⚡️❄️[ANN][BOUNTIES] 🔱 TRIDENT GROUP 🔱 - 25 Days of Christmas-$10000 PRIZE ❄️⚡️ on: December 24, 2017, 09:26:07 AM
where is the team dev, you talk all this but you have no team. Where is the 10k prize proof?
8  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [preANN][SegWit2X] Together we will see a business through. on: December 24, 2017, 09:11:26 AM
Is this a real thing, is this related to the official 2x fork or is this another with the same name
9  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [RLX] Relex: World's 1st Blockchain-Based Proxy Real Estate Developer Platform on: December 24, 2017, 09:00:21 AM
Love the name, remind me of a rolex but there is no blockchani proxy already like mysterium?
10  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] BitcoinN - Cryptonote POW- New Coin- Bounty Open ! on: December 24, 2017, 09:00:01 AM
Is this is a necrod thread or is it still alive.
11  Other / Meta / Re: Stake your Bitcoin address here on: December 24, 2017, 08:56:37 AM
Quote
All hail the king

arjen20

This is signed on Christmas eve Smiley


Quote
1HbknZ8UMJ51PSDzVNjwX9gQL7EywoXJaX

Quote
IE444q1wNik+RAI1NLfFrPhicfOmbq0Ebl+SHMjEwm9RGB5cbCuYlTdLoH0SyUUAihzOIjZfTtFKM/eFjETn1po=
12  Local / Pilipinas / Re: its time to buy bitcoin again today!!!! on: December 23, 2017, 03:36:28 PM
opo dapat talagang magbuy na ngayon kasi para sa akin bumbwelo lang si bitcoin baka next days or months almost 1m na yan ito na nga siguro talaga yung pagkakataon to buy bitcoin
13  Other / Off-topic / Re: What wallets do you use? on: December 22, 2017, 02:17:29 AM
Im use myetherwallet for receiving token then coins.ph for receiving php and bitcoin
14  Local / Pilipinas / Re: Aabot nga ba sa 1M pesos per bitcoin bago matapos ang taon? on: December 21, 2017, 06:36:19 AM
sa tingin ko wlang kasiguradohan kong aabot ng 1M ang bitcoin kasi minsan baba taas naman ang nangyayari ngayon mas lalo this week tumaas ng husto then bagsak din agad
15  Local / Pamilihan / Re: Saan mas maganda mag trade on: December 20, 2017, 10:51:20 AM
sa etherdelta p0 sa mercatox,bittrex,yobit pwede ka po magtrade diyan sa mga yan ako kadalsang gamit ko etherdelta at mercatox mas nadadalian kasi ako yang dalawa lalo sa pagtatransact ng mga token mas nasanay na din kasi ako dun
16  Local / Pilipinas / Re: Mining Maganda paba? on: December 20, 2017, 06:43:53 AM
para sa akin ok nman po kasi kikita ka ng Malaki dito kahit Malaki ang fee sa kuryente makikita mo din yung profit mo mas maganda siguro maginvest ka na lang o di kaya sumali ka sa mga airdrops o di kaya mag bounty and sig camp.
17  Local / Pilipinas / Re: Ano ang mas kailangan ng bitcoin ngayon investors o users? on: December 20, 2017, 01:46:16 AM
para sa akin parehas lang po kailangan kasi ang bitcoin need ng users at investor para mareach yung goal nila
18  Local / Pilipinas / Re: Nag dump ang bitcoin ngayon, tuloy tuloy na ba ang pagbagsak? on: December 19, 2017, 10:01:49 AM
para sakin as long as madami nagiinvest sa bitcoin hindi yan magdadump magdump man yan pero konti lang bubulusok pa din yan pataas hanggang sa mareach niya yung value na gusto nia ireach kung may invest ka man sa bitcoin mas maigi siguro na magconvert ka muna para mabawi mo atleast yung tubo na lang ang  tumatakbo para at the end hindi ka manghinayang
19  Local / Pamilihan / Re: Transaction fee sa coins.ph! on: December 18, 2017, 08:08:49 AM
halos ganyan din p0 sakin ang laki ng kaltas ng coins.ph hindi ko din kasi mawiwidraw yung eth q papunta kay btc qng around 2k lang nkaraan nagexhange ako ng eth to btc lahat lahat dapat 3900 di pa bawas yung fee dun nung pumasok na sa coins.ph ko 3,200 na lang halos 700 ung naging fees sken wala na din ako nagawa.
20  Alternate cryptocurrencies / Tokens (Altcoins) / Re: ANN [AMLT] The Token of Compliance by Coinfirm on: December 17, 2017, 06:42:46 AM
seems very interesting project good luck
Pages: [1] 2 3 4 5 6 7 8 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!