Post by Erik WinklerCan john output the cracked passwords only from the .pot file? no username, hash, etc.
I don't recall if jumbo possibly got a feature capable of this.
Post by Erik WinklerThe problem I have is some of the cracked passwords have a ???:??? in them and this makes parsing the standard ???show output miss hundreds of passwords based on the colon delimiter.
You need to use cut(1) like this:
./john --show passwd | cut -d: -f2-
Notice the extra trailing dash in the "-f2-". This way, everything
starting with field 2, and not just field 2 itself, is printed. This
will work for passwords containing a colon, but unfortunately it only
works right for our purpose when there are no further fields (such as
UID, GID, etc.) You can remove those extra fields from your input file
("passwd" in the above example) prior to the "--show":
cut -d: -f1,2 < passwd-many-fields > passwd-2-fields-only
./john --show passwd-2-fields-only | cut -d: -f2- > passwd-cracked-with-colons
This works because passwd-many-fields only contains hashes (not yet
cracked passwords) in the second field, which are supposed not to
contain colons.
There's also the "--field-separator-char" option to jumbo, but then
you'd potentially run into similar issues with that other character.
Alexander