Bitcoin Forum
June 17, 2024, 02:44:30 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Recovery process  (Read 576 times)
k844738i (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 15


View Profile
January 11, 2022, 06:07:23 PM
Merited by Welsh (4), o_e_l_e_o (4), vapourminer (2), ABCbits (2), bitmover (1), Husna QA (1), TheBeardedBaby (1)
 #1

Hello.
I have been trying to recover my wallet with about 180BTC almost for one year.
I was ”clever” enough to create a wallet with SHA256 custom string entry, and didn’t bother saving neither SHA256 result of it nor the private key WIF. I had it for years on my computer. But the computer crashed and I am now unable to remember what the string entry was. However, I know what keys I used but cannot remember the pattern.

I generate hashes from various patterns, as described above, and enter the hash results into https://www.bitaddress.org/ under “Wallet Address” and then try to import the private WIF into a new wallet. However it is a very slow process. Is there any tool/website that can create multiple private WIF keys from numerous hash entries?

Please, refrain yourself from sending me private messages in order to "help" me, reply only here in the public thread. Thanks.
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
January 11, 2022, 06:24:39 PM
Merited by Welsh (4), o_e_l_e_o (4), vapourminer (3), Pmalek (1), hosseinimr93 (1), Husna QA (1)
 #2

To conclude: you need tool which will generate keys (wif or hash) for some entry, right?
Do you want to use the list of your exact phrases or you want tool to automatically adjust your input (like change to uppercase or add numbers)?
Check https://btcrecover.readthedocs.io/en/latest/
I would propose to prepare a tool for you (if you have some special requirements), but honestly speaking that program should fulfil yourneeds.
k844738i (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 15


View Profile
January 11, 2022, 06:40:41 PM
 #3

To conclude: you need tool which will generate keys (wif or hash) for some entry, right?
Do you want to use the list of your exact phrases or you want tool to automatically adjust your input (like change to uppercase or add numbers)?


I entry the string manually because I try different patterns as I try to remember, which I hope one is the right.
So I generate SHA256 manually, but it takes time to manually copy SHA256 and to generate WIF, one by one. I have got pain in my hands. And it is already pain.
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
January 11, 2022, 06:48:33 PM
 #4

Does it mean you do not know address and you must check each generated WIF to see what is behind?
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18587


View Profile
January 11, 2022, 06:58:09 PM
Merited by vapourminer (6), ABCbits (4), PawGo (4), NeuroticFish (3), BlackHatCoiner (2), Pmalek (1), hosseinimr93 (1), Husna QA (1)
 #5

However, I know what keys I used but cannot remember the pattern.
This is the perfect use case for btcrecover.

You'll want to first download and install btcrecover (along with Python and the required packages if necessary) by following the instructions here: https://btcrecover.readthedocs.io/en/latest/INSTALL/

Then you'll want to create a tokens file using the instructions and examples here: https://btcrecover.readthedocs.io/en/latest/tokenlist_file/. Basically, you will create a text file with each key/letter/word/string that you think is part of the wallet passphrase on a separate line.

You'll then want to run a command along the lines of this:
Code:
python btcrecover.py --brainwallet --addresses 1YOURaddressHERE --tokenlist ./path/to/your/tokens/file.txt

This is assuming you know the address of your wallet. If you don't know the address, you'll need to use an address database instead.

This will be able to check thousands of combinations per second, and will be exponentially faster than doing anything by hand.
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
January 11, 2022, 07:03:23 PM
 #6

And if you do not know address but you know +- balance, you may always download the list of founded addresses and find potential candidates.
k844738i (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 15


View Profile
January 11, 2022, 07:25:00 PM
 #7

I hope that it has been reviewed. I wouldn't like to get a keylogger or so.

Does it mean you do not know address and you must check each generated WIF to see what is behind?
That is correct.

This is the perfect use case for btcrecover.
...

This will be able to check thousands of combinations per second, and will be exponentially faster than doing anything by hand.
Thank you as well. I will try.
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
January 11, 2022, 07:29:01 PM
Last edit: January 11, 2022, 07:39:25 PM by PawGo
Merited by Welsh (3), vapourminer (2), Quickseller (1), ABCbits (1), Pmalek (1)
 #8

I hope that it has been reviewed. I wouldn't like to get a keylogger or so.

Does it mean you do not know address and you must check each generated WIF to see what is behind?
That is correct.


Database of founded addresses: https://gz.blockchair.com/bitcoin/addresses/
Amounts are in satoshis, so 1 BTC looks like "100000000".

BTCrecover is OK.

edit:
a Long time ago I did something very simple for my own tests, now I have found it - maybe someone will make a good use of that. it is java program, I loaded addresses into local database and checked some phrases, with a simple modifications (lower/uppercase etc.), nothing serious.
Code:
import org.bitcoinj.core.Base58;
import org.bitcoinj.core.ECKey;
import org.bitcoinj.core.LegacyAddress;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.params.MainNetParams;
import java.io.*;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.sql.*;
import java.util.Date;

public class Brain {

    static final NetworkParameters NETWORK_PARAMETERS = MainNetParams.get();
    static final int STATUS_PERIOD = 1000*60*1;
    static MessageDigest messageDigest;
    static Statement statement;

    public static void main(String[] args) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IOException, InterruptedException {

        db();

        messageDigest = MessageDigest.getInstance("SHA-256");
        String filename=args[0];
        int skip = 0;
        if (args.length>1){
            skip = Integer.valueOf(args[1]);
        }
        FileReader fileReader = null;
        try {
            fileReader = new FileReader(filename);
        } catch (FileNotFoundException e) {
            System.err.println("not found: " + filename);
            System.exit(-1);
        }
        long count = 0;
        long start = 0;
        System.out.println("Brain start");
        try {
            BufferedReader bufferReader = new BufferedReader(fileReader);
            String line;
            while ((line = bufferReader.readLine()) != null) {
                if (line.trim().isEmpty()){
                    continue;
                }
                count++;
                if (skip>0){
                    if (count<skip) {
                        continue;
                    }
                    skip = 0;
                }
                test(line);
                test(line.toLowerCase());
                test(line.toUpperCase());
                if (line.endsWith(",")){
                    line=line.substring(0, line.length()-1);
                    test(line);
                    test(line.toLowerCase());
                    test(line.toUpperCase());
                }
                if (System.currentTimeMillis()-start > STATUS_PERIOD){
                    System.out.println("UP!"+count+" "+ line + " " + (new Date()));
                    start = System.currentTimeMillis();
                    count = 0;
                }
            }
        }catch (Exception e){
            System.err.println(e.getLocalizedMessage());
            System.exit(-1);
        }
        System.out.println("Brain end");
    }

    private static void db() {

        try{
            Connection connection = DriverManager.getConnection("jdbc:postgresql://localhost:5433/btc", "postgres", "password");
            System.out.println("Connected to PostgreSQL database!");
            statement = connection.createStatement();
        }catch (Exception e){
            System.out.println(e.getMessage());
            System.exit(-1);
        }
    }

    private static void test(String text) throws IOException, SQLException {
        messageDigest.update(text.getBytes("UTF-8"));
        ECKey ecKey = new ECKey(messageDigest.digest(), (byte[])null);
        String address = LegacyAddress.fromKey(NETWORK_PARAMETERS, ecKey).toString();
        if (checkAddressDatabase(address)){
            System.out.println(text + "|" + ecKey.getPrivateKeyAsHex()+"|"+ecKey.getPrivateKeyAsWiF(NETWORK_PARAMETERS)+"|"+address);
            FileWriter myWriter = new FileWriter("brainResult.txt", true);
            myWriter.write(text + "|" + ecKey.getPrivateKeyAsHex()+"|"+ecKey.getPrivateKeyAsWiF(NETWORK_PARAMETERS)+"|"+address);
            myWriter.close();
        }
        ecKey = PrivateKey.fromBase58(NETWORK_PARAMETERS, getCompressedWif(ecKey.getPrivateKeyAsHex())).getKey();
        address = LegacyAddress.fromKey(NETWORK_PARAMETERS, ecKey).toString();
        if (checkAddressDatabase(address)){
            System.out.println(text + "|" + ecKey.getPrivateKeyAsHex()+"|"+ecKey.getPrivateKeyAsWiF(NETWORK_PARAMETERS)+"|"+address);
            FileWriter myWriter = new FileWriter("brainResult.txt", true);
            myWriter.write(text + "|" + ecKey.getPrivateKeyAsHex()+"|"+ecKey.getPrivateKeyAsWiF(NETWORK_PARAMETERS)+"|"+address);
            myWriter.write("\r\n");
            myWriter.close();
        }
    }

    private static String getCompressedWif(String hex){
        String string = "80"+hex+"01";
        byte[] digest = messageDigest.digest(hexStringToByteArray(string));
        String checksum  = bytesToHex(messageDigest.digest(digest)).substring(0,8);
        byte[] data = hexStringToByteArray(string + checksum);
        return Base58.encode(data);
    }

    private static boolean checkAddressDatabase(String address) throws SQLException {
        ResultSet resultSet = statement.executeQuery("SELECT balance FROM public.address WHERE address='"+address+"'");
        while (resultSet.next()) {
            return true;
        }
        return false;
    }

    private static String bytesToHex(byte[] bytes) {
        StringBuffer result = new StringBuffer();
        for (byte b : bytes) result.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));
        return result.toString();
    }

    private static byte[] hexStringToByteArray(String s) {
        int len = s.length();
        byte[] data = new byte[len / 2];
        for (int i = 0; i < len; i += 2) {
            data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
                    + Character.digit(s.charAt(i+1), 16));
        }
        return data;
    }
}

BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1554
Merit: 7555


Protocols over bureaucrats


View Profile
January 11, 2022, 07:56:56 PM
Last edit: January 11, 2022, 08:07:37 PM by BlackHatCoiner
 #9

I hope that it has been reviewed. I wouldn't like to get a keylogger or so.
It's the #1 program for brute forcing keys. The first version has been reviewed by many and is easier to read its code. If we're talking about so much money, I'd spare a part of my day on looking how it works.

o_e_l_e_o provided you the up-to-date version of that project. Its first version is discontinued, but both do what you want. Good luck, I hope you manage to recover your bitcoins!

Edit: Also respect to PawGo, they have managed to recover others' money too with their tools.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18587


View Profile
January 12, 2022, 09:06:30 AM
Merited by NeuroticFish (1)
 #10

I hope that it has been reviewed. I wouldn't like to get a keylogger or so.
I have used btcrecover several times to help others crack forgotten passwords or incomplete seed phrases. I have never experienced any problems whatsoever. Additionally, it is all open source, so you can examine the code yourself to see exactly what it is doing.

Regardless, I would still recommend installing and running it on an offline machine, if you can. Not because I have any concerns about btcrecover, but because you don't know what other malware you might have lurking on your computer which is waiting to steal your bitcoin if you regain access to your wallet.
CryptoSh1va
Jr. Member
*
Offline Offline

Activity: 33
Merit: 7


View Profile
January 12, 2022, 11:37:56 AM
 #11

I have used btcrecover several times to help others crack forgotten passwords or incomplete seed phrases.
Sorry, just curious: do others just trust you and provide their phrases/passwords? Or do you provide paid services?
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
January 12, 2022, 11:52:05 AM
Merited by Pmalek (1)
 #12

I have used btcrecover several times to help others crack forgotten passwords or incomplete seed phrases.
Sorry, just curious: do others just trust you and provide their phrases/passwords? Or do you provide paid services?

I think usually people are able to do the work themselves, they are just not aware of possible tools. As long as it does not require enormous computational power to find lost password, many things could be resolved on quite cheap hardware (it is just a matter of time). If you lost 1-2 words from your seed or you remember parts of wallet password or lost just a small piece of WIF - could be done at home...
Most of people who successfully gain access to their coins just disappear, very few of them appreciate help and sometimes toss a coin to their witcher...
On the other hand there are professionals for whom it is full-time business - but it requires a serious investments.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18587


View Profile
January 12, 2022, 12:05:39 PM
 #13

Sorry, just curious: do others just trust you and provide their phrases/passwords? Or do you provide paid services?
I mostly help others run the software themselves, and help them to construct appropriate tokenlists or seedlists (using surrogate strings such as "Word1" instead of their actual words) as that is often the most difficult part if you have never done it before, and the syntax can be quite confusing to get right, especially with complex passwords or passphrases. I do not offer paid services per se, but I have ran the software on behalf of other people before. If you are looking for a paid service, then this site often gets good reviews - https://www.walletrecoveryservices.com/ - although I have never used them myself and therefore cannot personally vouch for them.

I'd encourage you to try do it yourself first, though. As PawGo says, it is often feasible on your own computer. If you run in to problems, post here and we will try to help.
k844738i (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 15


View Profile
January 12, 2022, 12:11:59 PM
 #14

Most of people who successfully gain access to their coins just disappear, very few of them appreciate help and sometimes toss a coin to their witcher...
Okay, I will remember that!


So far I have installed btcrecover on Mac. It seems working "by default" everything, but I am not sure how to proceed further with the issue I have.
I have a textfile in the same directory of various patterns I think I used. It is called pattern1.txt
As I understand the btcrecover will check it against already existing wallet in the directory. But I don't have the original wallet with the funds. The HDD failed with the full disk encryption, so it is lost as a file.
So I need to get various private key WIF outputs, and simply to import them into a new wallet and check it if the balance appears.

What is the code I need to enter?
TheBeardedBaby
Legendary
*
Online Online

Activity: 2212
Merit: 3148


₿uy / $ell ..oeleo ;(


View Profile
January 12, 2022, 12:12:40 PM
 #15

~
I had it for years on my computer. But the computer crashed and I am now unable to remember what the string entry was.

What's wrong with the computer? Most of the time it's easier to fix the computer and extract the data instead of going trough all the btcrecover thing and waist time and resources.

OK, now I saw this in the previous message.
Quote
The HDD failed with the full disk encryption, so it is lost as a file.

Give us a bit more info about it? How it failed, noise, *bang* with smoke, not detected into the system. What type of drive you have hdd, 2.5" or 3.5" (SSD?), model.

o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18587


View Profile
January 12, 2022, 12:18:22 PM
Merited by BlackHatCoiner (2), vapourminer (1), ABCbits (1)
 #16

I have a textfile in the same directory of various patterns I think I used. It is called pattern1.txt
How many patterns do you have? Rather than manually listing every pattern you can think of, it's usually better to create a tokens file while btcrecover will use to create patterns for you. For example, if you think you used A, B, and C in your passphrase, but you can't remember what order, then your tokens file would look like this:

Code:
A
B
C

btcrecover would then combine those in every possible way and try all of the following:

Code:
A
B
C
AB
AC
BA
BC
CA
CB
ABC
ACB
BAC
BCA
CAB
CBA

As I understand the btcrecover will check it against already existing wallet in the directory. But I don't have the original wallet with the funds. The HDD failed with the full disk encryption, so it is lost as a file.
Do you know the address that the coins are stored on? If so, you can ask btcrecover simply to check for the address in question.
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
January 12, 2022, 12:50:45 PM
Merited by vapourminer (3), BlackHatCoiner (1)
 #17

If you do not know your address you will have to create Address Database for btcrecover:
https://btcrecover.readthedocs.io/en/latest/Creating_and_Using_AddressDB/

You are interested in part "Creating an AddressDB from an Address List". Like I said before - you may download list of all btc addresses from https://gz.blockchair.com/bitcoin/addresses/ and then try to find addresses which are close to your expected amount of coins.
CryptoSh1va
Jr. Member
*
Offline Offline

Activity: 33
Merit: 7


View Profile
January 12, 2022, 08:17:58 PM
 #18

Sorry, just curious: do others just trust you and provide their phrases/passwords? Or do you provide paid services?
I mostly help others run the software themselves, and help them to construct appropriate tokenlists or seedlists (using surrogate strings such as "Word1" instead of their actual words) as that is often the most difficult part if you have never done it before, and the syntax can be quite confusing to get right, especially with complex passwords or passphrases. I do not offer paid services per se, but I have ran the software on behalf of other people before. If you are looking for a paid service, then this site often gets good reviews - https://www.walletrecoveryservices.com/ - although I have never used them myself and therefore cannot personally vouch for them.

I'd encourage you to try do it yourself first, though. As PawGo says, it is often feasible on your own computer. If you run in to problems, post here and we will try to help.
The question was asked with a slightly different purpose:
I was wondering that now in every wallet there are several warnings for users - not to transfer their seed to other people,
but apparently people pass by and still give their value to someone else.
People can't be fixed)
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1554
Merit: 7555


Protocols over bureaucrats


View Profile
January 12, 2022, 08:28:27 PM
 #19

but apparently people pass by and still give their value to someone else.
People can't be fixed
Funny how the majority of the people are financially illiterate enough to ignore the function of the current monetary system and trust blindly a process that is provably meant to corrupt at some point in the future.

Yeah, those you said too.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
TheBeardedBaby
Legendary
*
Online Online

Activity: 2212
Merit: 3148


₿uy / $ell ..oeleo ;(


View Profile
January 13, 2022, 09:15:28 PM
 #20

The HDD failed with the full disk encryption, so it is lost as a file.

1. What do you mean by failed? Bad sector, error when it's mounted, fall from high height?
2. If you remember the password or has encryption key, usually it's possible to recover your file. Although usually it require paid software or some technical knowledge.

I asked the same question above, if he manage to recover the drive, no need to worry about btcrecover.

Pages: [1] 2 »  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!