I currently experiment a little with john. When testing Java keystore files I recognized, that the output from the script keystore2john.py is not recognized by john. The error message is No password hashes loaded, although there is an password hash extracted by the 2john script.
To minimize test setup I created an empty keystore with the password test, which is parsed as:
test.jks:$keystore$0$12$feedfeed0000000200000000$75db9b45d1619599614130770c02d5917b5f10e0$0$0$:::::test.jks
According to the 2john script the 75db9b45d1619599614130770c02d5917b5f10e0 is the password hash.
The output is generated, after fixing the script to support keyfiles without additional keys by init some variables:
def process_file(filename):
keysize = 0
protectedPrivKey = b""
I have search the web, what output format is expected by john, but I only find a lot of tutorials.
So I am currently unsure, where the problem lies... within the script or john itself.