Cryptography: John the Ripper: The Basics (TryHackMe)

Search for a command to run...

No comments yet. Be the first to comment.
Link to the challenge on TryHackMe: Modern Web Stacks Introduction During a time-boxed engagement, the first tester to identify Apache/2.4.49 in a Server: header already knows the exact CVE before the

Link to the challenge/walkthrough on TryHackMe: Broken Authentication Introduction Authentication is the process by which a web application verifies the identity of the user making a request. It typic

Link to the HealthGPT AI security CTF challenge on TryHackMe. Meet HealthGPT, a well-meaning virtual assistant used by a busy healthcare team. It helps clinicians look up procedures, draft notes, and

Link to the section of the AI Odyssey CTF on TryHackMe: Token City. It covers challenges like: ML Sec: The Loan Arranger | AI Sec + DFIR: Rogue Commit | AI Sec + Web App Sec: Sealed Substation | Agent

Link to the Privilege Escalation Challenge on TryHackMe: Linux Privilege Escalation: Automation Introduction By now, you should have an understanding of basic privilege escalation techniques and how t

In this article, I will write a write-up for John the Ripper: The Basics that the Basic Terms, Setting Up John on Your System, Cracking Basic Hashes, Cracking Windows Authentication Hashes, Cracking /etc/shadow Hashes, Single Crack Mode, Custom Rules, Cracking Password Protected Zip Files, Cracking Password Protected Zip Files, Cracking Password-Protected RAR Archives, and Cracking SSH Keys with John.
What is the most popular extended version of John the Ripper? Jumbo John
Which website’s breach was the rockyou.txt wordlist created from? rockyou.com
the image below shows how to achieve the next questions form 3 to 10.

What type of hash is hash1.txt? md5
What is the cracked value of hash1.txt? biscuit
What type of hash is hash2.txt? sha1
What is the cracked value of hash2.txt? kangeroo
What type of hash is hash3.txt? sha256
What is the cracked value of hash3.txt? microphone
What type of hash is hash4.txt? whirlpool
to identify the hash I used the rainbow table, Crackstation then continued to use Johnriper to crack the value using the command john —-format=whirlpool —-wordlist=/usr/share/wordlists/rockyou.txt hash4.txt

What is the cracked value of hash4.txt? colossal
What do we need to set the --format flag to in order to crack this hash? nt
What is the cracked value of this password? mushroom

What is the root password? 1234

Example Usage:
What is Joker’s password? Jok3r
after finding the hash remember to edit the file with nano then add the name before the hash you’ve found Joker:{hash}


What do custom rules allow us to exploit? Password complexity predictability
What rule would we use to add all capital letters to the end of the word? Az"[A-Z]”
What flag would we use to call a custom rule called THMRules? --rule=THMRules
What is the password for the secure.zip file? pass123

What is the contents of the flag inside the zip file? THM{w3ll_d0n3_h4sh_r0y4l}

What is the password for the secure.rar file? password
What are the contents of the flag inside the zip file? THM{r4r_4rch1ve5_th15_t1m3}

/opt/john/ssh2john.py id_rsa > id_rsa_hash.txt
Cracking
For the final time, we’re feeding the file we output from ssh2john, which in our example use case is called id_rsa_hash.txt and, as we did with rar2john, we can use this seamlessly with John: **`john --wordlist=/usr/share/wordlists/rockyou.txt id_rsa_hash.txt`**
Now, I’d like you to crack the hash of the **`id_rsa`** file relevant to this task! The file is located in **`~/John-the-Ripper-The-Basics/Task11/`**.
What is the SSH private key password? mango

Thank you for reading my article. Please leave any questions or comments on improving my learning journey and the THM challenges.