Does john the ripper need to be given the hash format in order to crack it?
Doing some hash rooms on THM and whenever I run the hash files they give me ill just start like this.
john --wordlist=rockyou.txt hashfile
It will run and then output with a bunch of warnings telling me what possible hash types it could be but the hash doesn't get solved. I can still solve it by running a hash identifier then giving it the
--format=(w/e format)but my question is do I always need to give john the format? What if I have a list with mixed formats in there?
Have to? No. Sometimes even blind squirrels can find a nut. john will try to guess.
But if you hope to increase your chances for success, you should specify hash type and separate out different hashes of different types into their own files.
Given what john is meant for, it is highly unusual that it would used on a file that contains multiple hash types.