How to use hashcat

Hackbydoing Academy tool guide · Password attacks & hashing · free, no login

What hashcat is, in plain words

A password-cracking tool that guesses passwords against scrambled password codes (hashes) very fast, using your graphics card.

A working hashcat command

hashcat -m 0 -a 0 hash.txt wordlist.txt

Tries every word in wordlist.txt as the password for the MD5 hashes stored in hash.txt.

Every piece of the command, explained

--format=raw-md5This is a John the Ripper spelling that sometimes appears next to hashcat in the academy; in hashcat you pick the hash type with -m instead (MD5 is -m 0).
--incrementUsed with length-based attacks: start at the shortest password length and grow one character at a time instead of jumping to the longest.
--potfile-pathThe next piece is the path to the 'potfile', the notebook where hashcat saves passwords it has already cracked so it never redoes work.
--quietHides the progress chatter and status screens, so only the important results print.
--showPrints the passwords hashcat has already cracked for this hash file instead of cracking again.
--wordlist=/usr/share/wordlists/rockyou.txtThis equals-sign spelling belongs to John the Ripper in the academy; hashcat takes the wordlist as a plain last argument, with no flag in front of it.
-CNot a hashcat switch. In the academy's JWT lesson this belongs to jwt_tool.py on the same line, where it means 'run a dictionary attack on the token'.
-aThe next piece is a number saying the attack style, for example 0 means 'try each word from a list, one by one'.
-bBenchmark mode: it only measures how many guesses per second your machine can make for the chosen hash type, and cracks nothing.
-mThe next piece is a number saying which kind of hash you are cracking, for example 0 for MD5, 1000 for Windows NTLM, or 22000 for a Wi-Fi handshake.
-rThe next piece is the path to a rules file; rules twist each wordlist word into common variants (adding numbers, swapping letters) before trying it.

Use it the legal way

Only run hashcat on systems you own or have explicit, written permission to test — at work that means a signed engagement, at home that means your own lab. Inside Hackbydoing Academy you practice on simulated networks and lab machines built for exactly this, where breaking things is the lesson and no one else's systems are involved. Learning how a tool works also teaches you what it looks like from the defender's chair: the logs it leaves, the traffic it makes, and the settings that shut it down.

✦ Practice hashcat hands-on in a guided lab

Reading about hashcat is step one. In the Academy you run it yourself, step by step, in guided labs on simulated networks — 185 rooms covering attack and defense, from your first scan to full operations, with a defender's debrief at the end of every room. Founding membership is $9.99/mo for the first 500 members.

Join Hackbydoing Academy →

Related tool guides

Free from the Hackbydoing Academy — learn cybersecurity by doing: real tools, guided labs, attack and defense, on simulated networks. More free material: Tool Guides index · Free Downloads Library · Hackbydoing Academy · Print this page (Ctrl/Cmd+P) for a clean paper copy.