John the ripper is a powerful tool used for offline cracking tool. It can autodetect a lot of hashes such as FreeBSD MD5-based and etc.
For demonstration, the shadow file in /etc/shadow/ will be cracked in the VM.
From this picture, we can see that it auto loads the hash.
It also has the unshadow function which combines the passwd file with the shadow file.