yaklang avatar

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-code

Installs 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

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
1yaklang avatarprototype-pollutionyaklang/hack-skillsPrototype pollution testing for JavaScript stacks. Use when user input is merged into objects (query parsers, JSON bodies, deep assign), when configuring librar3.8Kskills.sh installs
2yaklang avatardns-rebinding-attacksyaklang/hack-skillsDNS rebinding attack playbook. Use when testing applications that trust DNS resolution for origin checks, interact with internal services from browser context, 3.8Kskills.sh installs
3yaklang avataremail-header-injectionyaklang/hack-skillsEmail header injection and spoofing playbook. Use when testing contact forms, email APIs, password reset flows, or any feature that constructs SMTP messages wit3.8Kskills.sh installs
4dpearson2699 avatartipkitdpearson2699/swift-ios-skillsImplement and review Apple TipKit feature-discovery UI for iOS 17+ apps. Use when adding or auditing in-app tips, contextual help, coach marks, Tip, TipView, po3.8Kskills.sh installs
5langgenius avatarcomponent-refactoringlanggenius/difyRefactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component --json` shows complexity > 50 or lineCount > 300, when the user ask3.7Kskills.sh installs
6longbridge avatarlongbridge-researchlongbridge/skillsInstitution ratings, consensus price targets, EPS/revenue forecasts, finance calendar, shareholder data, fund holders, insider trades (SEC Form 4), short intere3.7Kskills.sh installs