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
# 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
Last updated