I want to recover password from ETH wallet - json file and aes.json, but unfortunately it doesn't work with mode 15700 (and every other modes used for ETH), i have an error that says "no hashes loaded". Can you help me, do you know what method, mode will be good in this case?
Please post the full error message / hashcat output and not only part of it.
Hashfile 'hashcode.txt' on line 1 ($ether...1dcba78378cb6b3b34315c6460b397ca): Token length exception
No hashes loaded.
You have 3 modes for eth (15600, 15700, 16300).
Did you choose the good one?
Yes, i tried all of this modes and everytime i have the same error.
please test the example hashes from
https://hashcat.net/wiki/doku.php?id=example_hashes
try to make the example hashes work and also try to crack the hashes with password hashcat
after everything works with the example hashes, try to check what kind of hash your target hash is (the signature, start is important like $ethereum$s* ) and after that try to construct a similar hash with fields of the example hash modified with your info.
We for instance got a similar request a few weeks/months ago and the fields / hash wasn't even with valid hexadecimal data (for instance "x" as a hexadecimal char etc)... this hash was for sure tampered / modified, because the ethereum client doesn't generate .json files like this that do not even encode the raw data correctly into hexadecimal data. So my suggestion is to first try the example hashes and after that create a modified example hash (example_mod.txt where you replace the single field delimited by * with the data of your target hash and see when it stops working).
update: doing some little more research, I think it could have to do with this go-ethereum missing padding behaviour that seemed to be present in some/several very old geth (go-ethereum) versions that had (depending on the bytes in the "output", problem of zero-bytes + missing padding) shorted "ciphertext" fields:
https://github.com/ethereum/go-ethereum/...r.json#L49 and
https://github.com/ethereum/go-ethereum/...r.json#L73 ).
I think a problem here is that you can NOT really pad them manually without changing the algorithm (by adding some 00 at the start), because I think the input that is used to verify and compute the mac etc also uses the "wrong" input (so basically 2 "problems", not just the missing 00-padding to a fixed size in the JSON output)
also see:
https://github.com/ethereum/go-ethereum/pull/3032 and
https://github.com/hashcat/hashcat/issues/2017 (it's interesting that
I did open this issue, but didn't really remember opening it or any details, but at least I did document it quite well, fortunately ).
It would make sense that you at least test/see if this is really the problem also for you, i.e. the ciphertext length shorter than 32 bytes... otherwise we can't really proceed here (without knowing if you are affected by this < 32 byte ciphertext padding bug)
I think a diff (patch) to the source code like this could work in the case of shorter ciphertext length and therefore solve the github issue #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1bGVzL20xNTcwMC5wbQorKysgYi90b29scy90ZXN0X21vZHVsZXMvbTE1NzAwLnBtCkBAIC0yMCw3ICsyMCw3IEBAIHN1YiBtb2R1bGVfZ2VuZXJhdGVfaGFzaAogICBteSAkc2NyeXB0X04gICA9IHNoaWZ0IHx8IDEwMjQgOyAjIDI2MjE0NCBvcmlnaW5hbGx5CiAgIG15ICRzY3J5cHRfciAgID0gc2hpZnQgfHwgMTsgIyA4IG9yaWdpbmFsbHkKICAgbXkgJHNjcnlwdF9wICAgPSBzaGlmdCB8fCAxOwotICBteSAkY2lwaGVydGV4dCA9IHNoaWZ0IHx8IHJhbmRvbV9ieXRlcyAoMzIpOworICBteSAkY2lwaGVydGV4dCA9IHNoaWZ0IHx8IHJhbmRvbV9ieXRlcyAocmFuZG9tX251bWJlciAoMTYsIDMyKSk7CiAKICAgbXkgJGRlcml2ZWRfa2V5ID0gc2NyeXB0X3JhdyAoJHdvcmQsICRzYWx0LCAkc2NyeXB0X04sICRzY3J5cHRfciwgJHNjcnlwdF9wLCAzMik7CiAK
to apply this patch:
Code:
git clone https://github.com/hashcat/hashcat hashcat_15700_mod
cd hashcat_15700_mod
git checkout 15bf8b7302fd2febd93845eb26d60efed6255bae
base64 -d patch_ethereum_15700_github_2017_base64.diff > patch_ethereum_15700_github_2017.diff
git apply patch_ethereum_15700_github_2017.diff
make
./hashcat -m 15700 -b
(use hashcat.exe instead of ./hashcat for windows)
the patch above is in base64 encoded format, otherwise the forum software or pastebin etc add some whitespace problems such that the patch can't be applied. Therefore it needs to be base64 decoded first (base64 -d of patch_ethereum_15700_github_2017_base64.diff to patch_ethereum_15700_github_2017.diff)
Of course you need to make sure that you do not confuse this hashcat_15700_mod modified hashcat version with other release (or beta) version of hashcat. remember that it's a modified/patched version
Of course this would need to be tested with several keystore files to make sure it doesn't break anything and at the same time also works with the keystore files with shorter ciphertext lengths.
Please test
update: I've updated the patch above to add tests with much shorter ciphertext lengths and corrected the keccak computation in the kernel after I've discovered that some shorter lengths failed (should be fixed now)