Hashcat
Hashcat – Advanced GPU-Based Password Recovery Tool
Hashcat is one of the fastest and most advanced password recovery tools. It supports over 300 hashing algorithms and uses GPU acceleration for high-speed cracking. It provides multiple attack modes such as dictionary, brute force, and rule-based attacks.
Installation / Check
Check if Hashcat is installed:
which hashcat
Install Hashcat:
sudo apt install hashcat
Basic Syntax
hashcat -m <hash_type> -a <attack_mode> <hash_file> [wordlist]
Common Commands
MD5 dictionary attack:
hashcat -m 0 -a 0 hashes.txt rockyou.txt
NTLM hash cracking:
hashcat -m 1000 -a 0 hashes.txt wordlist.txt
Brute force attack:
hashcat -m 0 -a 3 hashes.txt ?a?a?a?a?a?a
WPA/WPA2 handshake cracking:
hashcat -m 2500 -a 0 capture.hccapx wordlist.txt
Show cracked passwords:
hashcat --show hashes.txt
Dictionary attack with rules:
hashcat -m 0 -a 0 hashes.txt wordlist.txt -r rules/best64.rule
Step-by-Step Guide
- Identify the hash type (use tools like hash identifier if needed)
- Find the correct Hashcat mode (-m)
- Prepare the hash file (one hash per line)
- Choose attack mode and wordlist
- Run Hashcat and monitor progress
- View cracked passwords:
hashcat --show hashes.txt
Understanding the Output
- Displays cracking speed (hashes per second)
- Shows progress percentage
- Provides estimated time remaining
- Cracked passwords appear in:
hash:password
- Status includes workload and performance details
⚠️ Legal Warning
Use password recovery tools only on systems you own or have explicit permission to test. Unauthorized use is illegal.