Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: opeael2 on December 20, 2022, 04:42:41 PM



Title: Btcrecover token file question
Post by: opeael2 on December 20, 2022, 04:42:41 PM
Hello
I read a lot to solve my problem before I write
But I have a problem that I can't solve
I need to create a tokens.txt file which contains %8,10P  but with polish characters [Ś,Ź,ś,ź,Ł,Ą,,Ż,ł,ą,ż,Ć,Ę,Ń,Ó,ć,ę,ń,ó]
what should this file look like?

tokens.txt i saved with utf8 encoding and i put --utf8 in command line but i dont know how create token file with those characters

I will be grateful for your help (I'll even tip if I get my password back)


Title: Re: Btcrecover token file question
Post by: nc50lc on December 21, 2022, 05:24:35 AM
I need to create a tokens.txt file which contains %8,10P  but with polish characters [Ś,Ź,ś,ź,Ł,Ą,,Ż,ł,ą,ż,Ć,Ę,Ń,Ó,ć,ę,ń,ó]
what should this file look like?
You'll have to put those characters as "tokens" instead of wildcards since those aren't included in any of the wildcard characters.
Since you're planning to use %8,10P, your password must be within 8-10 "P" characters which is "pretty much everything" as described in btcrecover 'token file' article.
And assuming you don't know where those characters should be, then, you'll have to add those in each %P line.

It can be written like this to include the polish characters (10 lines):
Code:
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó
%P Ś Ź ś ź Ł Ą Ż ł ą ż Ć Ę Ń Ó ć ę ń ó

Then indicate the minimum and maximum in the command:
Code:
btcrecover "your_args" --min-tokens 8 --max-tokens 10



Here's an example:
My test wallet has a password: 1Śó
My token file:
Code:
%P Ś Ą ó
%P Ś Ł ó
%P ś Ć ó
Command:
Code:
btcrecover.py --enable-gpu --wallet wallet.dat --tokenlist tokens.txt --min-tokens 2 --max-tokens 3
It took 15 minutes to find the password in my machine (with sub 20min ETA).

Such short token file makes 1133809 combinations because of using %P, I can imagine how difficult yours would be.
It's better if you can remember a few characters or at least their positions before attempting to bruteforce it.


Title: Re: Btcrecover token file question
Post by: opeael2 on December 22, 2022, 01:07:47 PM
Thank You
I will try to reduce password combination.

I have another question

what's faster? Btcrecover or hashcat? Or maybe something else ?


Title: Re: Btcrecover token file question
Post by: PawGo on December 22, 2022, 02:54:41 PM
Thank You
I will try to reduce password combination.

I have another question

what's faster? Btcrecover or hashcat? Or maybe something else ?

Hashcat has better support for GPU, btcrecover works with GPU for some cases only.
What is exactly your problem, password for which wallet? Botcin Core wallet.dat? Or other.

Anyway, if it could be launched under hashcat, I would not hesitate.


Title: Re: Btcrecover token file question
Post by: WalletPasswordRecovery on January 08, 2023, 11:13:31 AM
it can be done more efficent, use btcrecover to generate dictionary than use hashcat with the dictionary
1) in btcrecover command instead of "--wallet wallet.dat" put "--listpass > dict1.txt"
2) sort dict1.txt | uniq > dict2.txt
3) use hashcat with dict2.txt