Hashcat Basics: Crack Your Own Forgotten Passwords (Legally)


Every password you have ever set is stored somewhere as a hash — a one-way scrambled value. Hashcat is the tool that turns hashes back into passwords, and it does it at terrifying speed: a modern GPU can try billions of guesses per second. Used on your own hashes, it’s the most eye-opening security lesson you will ever get. Used on someone else’s, it’s a crime. The rule for this entire tutorial: only crack hashes you created yourself, or that you have written permission to test.

What Is Hashcat?

Hashcat is a free, open-source password recovery tool. It takes a hash, a list of guesses (a wordlist), and a cracking mode, and reports any matches. Security teams use it to audit password strength; attackers use it to break into accounts after a breach leaks a hash database. Same tool, opposite intent — which is why the permission rule matters so much.

Step 1: Make Your Own Test Hash

Never practise on a real leaked database. Create a hash yourself:

echo -n "sunshine123" | md5sum

That gives you an MD5 hash of a weak password. Save it to a file called hash.txt. You now own this hash completely, and cracking it is 100% legal.

Step 2: Get a Wordlist

Hashcat needs guesses to try. The classic starter wordlist is rockyou.txt, a list of real passwords from a 2009 breach that ships with Kali Linux:

ls /usr/share/wordlists/rockyou.txt

If it’s compressed, extract it first with gunzip. Wordlists are why “password123” dies instantly — it’s in every list ever made.

Step 3: Run Your First Crack

MD5 is hash mode 0 in Hashcat. A basic dictionary attack looks like this:

hashcat -m 0 hash.txt /usr/share/wordlists/rockyou.txt

Hashcat will chew through the list and, within seconds, print sunshine123 next to your hash. That speed is the point: a password a human would call “fine” fell in seconds because it was a common word plus digits.

Step 4: Understand the Modes

  • Dictionary (-a 0): tries every word in a list. Fast, and catches every common password.
  • Brute force (-a 3): tries every combination of a character set. Works on short passwords, hopeless on long ones.
  • Rule-based (-r): mutates dictionary words — capitalizing, adding years, swapping letters. This is how “Sunshine2024!” falls too.

What This Teaches You About Defense

Crack a few of your own old passwords and the defensive lessons write themselves:

  • Length beats cleverness. Every extra character multiplies the attacker’s work. A 16-character passphrase survives where an 8-character “complex” password dies.
  • Common words are already in the list. If your password appears in any wordlist, its crack time is effectively zero.
  • Salting matters. Modern systems salt hashes (adding a random value per password), which defeats precomputed tables.
  • Use a password manager. Random, unique, long passwords are the only kind that survive Hashcat.

Hashcat is a mirror: point it at your own passwords and it shows you exactly how an attacker sees them. Learn that lesson in your own lab, and you’ll never pick a weak password again.

Comments

Popular Posts