ryancdotorg / brainflayer

A proof-of-concept cracker for cryptocurrency brainwallets and other low entropy key algorithms.
https://rya.nc/brainflayer
909 stars 459 forks source link

Incremental Brute Force #153

Closed Solpadein911 closed 6 months ago

Solpadein911 commented 3 years ago

Please tell me why on the command samples (./brainflayer -v -I 000000000000000000000000000000000000000000000000000000000001 -b btcaddress.blf -o found.txt) the number one is put at the end or beginning. As far as I know, the key is a closed format may not contain a digit one at the beginning or end. Hex: b49c0a968de2df1367dfd9301a26b9fdbc5db0bfe892f453f2e0156873f8ef74 Or am I mistaken in something?

ryancdotorg commented 3 years ago

I'm not sure I understand the question. The key is an integer scalar on the interval [1,0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140], represented as 64 hexadecimal digits. The example listed is 000...001 because all zeros isn't a valid key.

Solpadein911 commented 3 years ago

Thank you for your responsiveness.
Running the command in this form . / brainslayer-you 00000000000000000000000000000000000000000000000001-b btcaddress. tvo-o found.txt the number 0 will it be a random character?

ryancdotorg commented 3 years ago

The number zero is zero. An all zero key will "work" in brainflayer, but the results will be buggy. No attempt to detect this is made for performance reasons.

Solpadein911 commented 3 years ago

Last question: In your memory, have there been cases when the Incremental brute force mode gave someone a positive result?? I started with it, but it seems that this method of brute force is infinite and unlikely. You have a lot of practice, and I want to ask what would you recommend the method of brute force? Thanks

ryancdotorg commented 3 years ago

The brute force mode is only useful for looking at "interesting" ranges of keys. It's astronomically unlikely to ever find a match otherwise.

Solpadein911 commented 3 years ago

You have a lot of practice, and I want to ask, what method of working with the program do you recommend?

ryancdotorg commented 3 years ago

At the risk of being blunt, even if you have a system of ethics that deems taking any coins you have the keys for as acceptable, there are better ways to make money. Pretty much everything that could be cleaned out already has been by people who wrote their own GPU-based tools for it. If you have free electricity, there are better ways to monetize it, and if you pay for power you'll be better off buying lottery tickets.

Solpadein911 commented 3 years ago

Yes, everything is exactly as you say. I've already guessed it myself. Smart guys like you have already come up from different angles and done a good job of it. But still, I'm interested in playing and getting this experience. Thank you for support. Question: I tested the program and added the passphrase < < password>>./brainflayer -v -b btcaddress.blf -i wordlist.txt -o found.txt with this command, I find a match. But if I try to do it through a Crunch: crunch 8 8 password ./brainflayer -v -c cu -t priv -x -b btcaddress.blf -o found.txt then there are no matches,I tried it repeatedly :(

ryancdotorg commented 3 years ago

I'm not familiar with crunch, what does the output from it look like? I do not think brainflayer does much validation with -t priv -x, so if the input format isn't right it might be doing weird things.

komyaka commented 3 years ago

crunch 8 8 password |./brainflayer -v -c cu -t sha256 -b btcaddress.blf -o found.txt