# Overview
- Hashcat is an open-source password cracking tool with strong GPU support.
# Syntax
```bash
hashcat -a <attack_mode> -m <hash_type> <hashes> [options]
# wordlist
hashcat -a 0 -m 0 1b0556a75770563578569ae21392630c /usr/share/wordlists/rockyou.txt
# with a rule
hashcat -a 0 -m 0 1b0556a75770563578569ae21392630c /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best64.rule
# Mask attack
hashcat -a 3 -m 0 1b0556a75770563578569ae21392630c '?u?l?l?l?l?d?s'
```
# Rule
```bash
ls -l /usr/share/hashcat/rules
```
# Key Parameters
- `-a`: Attack mode (e.g., `0` for dictionary, `3` for mask)
- `-m`: Hash type ID (e.g., `0` for MD5, `100` for SHA1)
- `[options]`: Wordlists, rules, masks, etc.
# Attack Modes
- Dictionary Attack (`-a 0`)
- Mask Attack (`-a 3`)
- `?l` : lowercase, `?u` : uppercase, `?d` : digits, `?s` : symbols, `?a` : all
- example: `hashcat -a 3 -m 0 <hash> '?u?l?l?l?l?d?s'` (Uppercase + 4 lowercase + digit + symbol)