-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore password from Keystore #22
Comments
Polkawallet manages users keyPairs with https://www.npmjs.com/package/@polkadot/keyring, you may find the crypto related methods in their source code: https://github.com/polkadot-js/common/blob/master/packages/keyring/README.md. |
Thank you @RomeroYang for your response. I think maybe it would be good to inspect these methods deeper: The keyring type which has been used was sr25519. Here is an example how the exported json looks like for another test Polkawallet: The key things from this json for crack the password is I think the encoded value. Which I think I need to encode with Base64 and use in hashcat. Maybe these threads below can help me to move further. Maybe it would be good to know the salt value but that one is unknown. I encoded the encoded value from json with this encode-tool and I tried to use this value in hashcat using this command below, but it failed on the "Token length exception". To test this command on Mac you can install the hashcat with brew.
I am not an expert in this field and I think I miss something important. |
I'm not an expert in the codec things either. I think all the infomation you need is in the createFromJson related code. You may submit issue in their repo for help. |
@jerem30 hi, I had a problem with my polkawallet password. Did you find to solve your issue? Can you help me? |
Hello,
I would like to ask you for help. I installed the Polkawallet a few weeks ago and repeatedly sent there some DOT tokens. The problem is that I found out that I have lost the password to my Polkawallet and I can't send any DOT tokens to anywhere without this password. I have the keystore json file and I am thinking about cracking my password with the hashcat tool, I could maybe do it, because my password had 6 characters. Maybe if you could help me what hash type I should use from this list https://hashcat.net/wiki/doku.php?id=example_hashes or how can I generate the hashfile (from these values: address, encoded and pubKey from json) for hashcat I would be very thankful.
I was thinking about using this hash mode (see example):
MultiBit HD (scrypt) -> $multibit$2*address*encoded*pubKey
But in this case I got this error from hashcat:
Hashfile 'hashcode.txt' on line 1 ($multi......6b): Token length exception
I also find some tutorial how to do it for ethereum wallet but the json keystore is different for Polkawallet:
https://www.youtube.com/watch?v=ZuhtaCgY0wc
https://stealthsploit.com/2017/06/12/ethereum-wallet-cracking/
I would appreciate if you can help me with this issue.
Best Regards
Jeremy
The text was updated successfully, but these errors were encountered: