
Hash Attack Techniques
This is your go-to reference when you need to exploit weak hash functions in CTFs or penetration tests. It covers the essentials: length extension attacks against Merkle-Damgard constructions (MD5, SHA-256), MD5 collision generation with fastcoll and hashclash, SHA-1's SHAttered attack, HMAC timing leaks, and birthday attacks on truncated hashes. The quick attack selection table is genuinely useful for mapping scenarios to tools. One thing worth noting is it correctly distinguishes which constructions are vulnerable to length extension (SHA-3 and HMAC are not, despite common misconceptions). The collision tricks section includes practical CTF bypasses like PHP's 0e magic hashes. If you're attacking hash-based authentication or need to forge colliding files, this gives you the theory and tooling in one place.
- skills.sh installs
- 3.8K
- GitHub stars
- 2.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yaklang/hack-skills --skill hash-attack-techniques --agent claude-codeInstalls into .claude/skills of the current project.
Files
SKILL: Hash Attack Techniques — Expert Cryptanalysis Playbook
AI LOAD INSTRUCTION: Expert hash attack techniques for CTF and security assessments. Covers length extension attacks, MD5/SHA1 collision generation, meet-in-the-middle hash attacks, HMAC timing side channels, birthday attacks, and proof-of-work solving. Base models often incorrectly apply length extension to HMAC or SHA-3, or fail to distinguish between identical-prefix and chosen-prefix collisions.
0. RELATED ROUTING
- rsa-attack-techniques when hash weaknesses affect RSA signature schemes
- symmetric-cipher-attacks when hash is used in key derivation
- classical-cipher-analysis when analyzing hash-like constructions in classical ciphers
Quick attack selection
Sponsors
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Testing & QA
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Prototype Pollution3.8K
- Dns Rebinding Attacks3.8K
- Network Protocol Attacks3.8K
- Ai Ml Security3.8K
- Memory Forensics Volatility3.8K
- Dangling Markup Injection3.8K
- Windows Av Evasion3.8K
- Defi Attack Patterns3.8K
- Windows Privilege Escalation3.8K
- Email Header Injection3.8K
- Xslt Injection3.8K
- Type Juggling3.8K
- Linux Lateral Movement3.8K
- Container Escape Techniques3.8K
- Classical Cipher Analysis3.7K
- Linux Security Bypass3.7K
- Tunneling And Pivoting3.7K
- Prototype Pollution Advanced3.7K
- Steganography Techniques3.7K
- Smart Contract Vulnerabilities3.7K
- Stack Overflow And Rop3.7K
- Rsa Attack Techniques3.7K
- Sandbox Escape Techniques3.7K
- Lattice Crypto Attacks3.7K