# Create the directory structure [cite: 28] mkdir -p ~/password-cracking-lab04 # Verify the structure exists [cite: 30] ls -R ~/password-cracking-lab04 n=1 import part0.png # Move into the new directory [cite: 31] cd ~/password-cracking-lab04 # Hash a password using MD5 [cite: 38] echo -n "CyberStudent123!" | md5sum # Hash a password using SHA-1 [cite: 39] echo -n "CyberStudent123!" | sha1sum # Hash a password using SHA-256 [cite: 39] echo -n "CyberStudent123!" | sha256sum import "1.1hashes.png" # Set your salt and password variables [cite: 51, 52] SALT="X9112" PASSWORD="CyberStudent123!" # Create a salted SHA-256 hash [cite: 53] echo -n "${SALT}${PASSWORD}" | sha256sum import "2.1salt.png" # Create an unsalted SHA-256 hash for comparison [cite: 57] echo -n "${PASSWORD}" | sha256sum import "2.2unsalt.png" ## Part 3 # Create and edit the hashes file [cite: 69] echo "5f4dcc3b5aa765d61d8327deb882cf99 e10adc3949ba59abbe56e057f20f883e 25d55ad283aa400af464c76d713c07ad" > hashes.txt # Decompress the rockyou wordlist [cite: 76] sudo gzip -dk /usr/share/wordlists/rockyou.txt.gz 2>/dev/null # Run John the Ripper using the wordlist [cite: 76] john --format=raw-md5 --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt import "3.3crackedHashes.png" # Display the cracked results [cite: 79] john --show --format=raw-md5 hashes.txt ### PART 4 # Run a Hashcat dictionary attack (Mode 0 is MD5) [cite: 89] hashcat -m 0 hashes.txt /usr/share/wordlists/rockyou.txt --force # Show Hashcat results [cite: 91] hashcat -m 0 --show hashes.txt import "4.1hashCatCracket.png"