THM Practice Room - https://tryhackme.com/room/johntheripper0, https://tryhackme.com/room/crackthehash
Crack system (Linux) password -
umask 077u****
nshadow /etc/passwd /etc/shadow > mypasswd
Running umask 077 beforehand ensures the newly created “mypasswd” file (or whatever you want to call it) is created with more relaxed permissions and can be used by John.
john hashfile.hashjohn hashfile.hash --wordlist=/usr/share/wordlists/rockyou.txt --format=Raw-SHA1john --show --format=Raw-SHA1 hashfile.hash OR john --show hashfile.hash