Find the password-protected file, in our case for this example it's a winzip password-protected file.
Extract the crackable information using john the ripper tools. I used a Kali linux VM to crack the password-protected file.
zip2john flag.txt.zip hash
cat hash
hash output
apt install seclists
john --wordlist='2020-200_most_used_passwords.txt' hash
result
iloveyou (flag.txt.zip/flag.txt)
iloveyou is the password to the zip file.
unzip flag.txt.zip
cat flag.txt