Hashcat
Generating hashes (printf vs echo)
Command
What gets hashed
SHA256 result
# Correct: exact string, no newline
printf "hello" | sha256sum
# 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 -
# For salted formats, use the tool’s expected input (e.g. pass then salt) or hashcat to generate.Hash Identification
# Identify hash type
hashcat --identify hash.txt
# Using hashid
hashid hash.txt
# Identify hash type and suggest hashcat mode
hashid -m '$1$FNr44XZC$wQxY6HHLrgrGX0e1195k.1'
# Using hash-identifier
hash-identifierCommon Hash Modes
Mode
Hash Type
Example Use
Password Safe v3 Cracking
Network Device Hashes (Cisco)
Mode
Hash Type
Example
Basic Usage
Example
Example
Mask Character Sets
Charset
Characters
Brute-Force / Mask Attack (-a 3)
Hybrid Attack (-a 6 / -a 7)
Generating Massive Wordlists with Rules
Brute-Force 4-digit PIN Example
Linux Shadow Hash Algorithm IDs
ID
Algorithm
Cracking DCC2 (MS Cache 2)
Cracking BitLocker (mode 22100)
Generating Mutated Wordlist
Hashcat Rule Functions
Function
Description
Cracking Linux Shadow Hashes
Last updated