hashcrack - picoCTF Write-up

  1. Problem statement Pasted image 20250521112630.png Pasted image 20250521112739.png
  2. Install hashcat and rockyou.txt. Save the identified hash in a file (here I'm saving it in the file company.hash).
  3. There's a ton of hashing algorithms that hashcat can crack. A list of them is available at https://hashcat.net/wiki/doku.php?id=example_hashes
  4. Start the bruteforce attack with the following command. The --show flag tells us which password matches the given hash.
hashcat -m 0 company.hash rockyou.txt --show

Pasted image 20250521113849.png

  1. On entering the hash, another hash is given to us. This should be fun :) Pasted image 20250521114025.png
  2. On trying to break it with MD5, we get the following error.

Pasted image 20250521114219.png 7. Not MD5. Going back to the list mentioned in step 3. Maybe...SHA1? Yes!

Pasted image 20250521114456.png Pasted image 20250521114506.png

  1. Another hash!

Pasted image 20250521114614.png

this-is-where-the-fun-begins-star-wars.gif

  1. Counting the number of characters, we can see that it's 64 characters in length. Which means that we need an algorithm which outputs a 64 character hash. A quick search tells us that SHA2-256 is what we're looking for.

Pasted image 20250521115519.png

  1. And there we have it!

Pasted image 20250521115614.png