snailsploit/claude-red/offensive-basic-exploitation
Claude Code and agent skill by snailsploit/claude-red
- community
Checking that the SKILL.md file is still in the repository.
Week 5 exploit development curriculum. Foundational exploitation techniques: controlling EIP/RIP, ROP chain construction, ret2libc, shellcode injection, heap spraying, bypass techniques for ASLR/NX/stack canaries. Use when building initial PoCs or understanding classic exploitation primitives.
Install
npx vskill@latest install snailsploit/claude-red/offensive-basic-exploitationSKILL.md
The same SKILL.md was published earlier as snailsploit/claude-red/offensive-basic-exploitation.
SKILL: Week 5: Basic Exploitation (Linux with Mitigations Disabled)
Metadata
- Skill Name: basic-exploitation
- Folder: offensive-basic-exploitation
- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/5-basic-exploitation.md
Description
Week 5 exploit development curriculum. Foundational exploitation techniques: controlling EIP/RIP, ROP chain construction, ret2libc, shellcode injection, heap spraying, bypass techniques for ASLR/NX/stack canaries. Use when building initial PoCs or understanding classic exploitation primitives.
Trigger Phrases
Use this skill when the conversation involves any of: basic exploitation, EIP control, RIP control, ROP chain, ret2libc, shellcode injection, heap spray, ASLR bypass, NX bypass, stack canary bypass, week 5
Instructions for Claude
When this skill is active:
- Load and apply the full methodology below as your operational checklist
- Follow steps in order unless the user specifies otherwise
- For each technique, consider applicability to the current target/context
- Track which checklist items have been completed
- Suggest next steps based on findings
Full Methodology
Week 5: Basic Exploitation (Linux with Mitigations Disabled)
Overview
_created by AnotherOne from @Pwn3rzs Telegram channel_.
Now that you can find and analyze vulnerabilities (Week 2 & 4), it's time to learn exploitation. This week focuses on fundamental exploitation techniques in a simplified Linux environment with modern mitigations (DEP, ASLR, stack canaries) disabled. Mastering these basics is essential before tackling mitigation bypasses in Week 7.
Next week (Week 6) we'll focus on understanding mitigations in both Linux and Windows. Week 7 will cover bypassing them.
Learning Environment:
- CPU arch (default): amd64 (x86-64)
- OS: Ubuntu 24.04 LTS (Linux)
- Compiler Flags: Disable protections (
-fno-stack-protector,-no-pie,-z execstackfor ret2shellcode labs,/GS-) - ASLR: Keep enabled system-wide; disable per-process (
setarch -R) or in GDB (set disable-randomization on) for deterministic labs - Focus: Pure exploitation techniques without bypass complexity
Day 1: Environment Setup and Stack Overflow Fundamentals
- Goal: Set up exploitation lab and understand stack buffer overflow mechanics.
- Activities:
- _Reading_:
- "Hacking: The Art of Exploitation" 2nd edition, by Jon Erickson - Chapter 0x300: "EXPLOITATION"
- Smashing The Stack For Fun And Profit - Classic paper
- _Online Resources_:
- x86-64 Calling Conventions
- Stack Layout Visualization
- _Tool Setup_:
- Ubuntu VM with protections disabled
- pwntools, pwndbg, ROPgadget
- _Exercise_:
- Compile and exploit first vulnerable program
- Overwrite return address to execute shellcode
Context: QNAP Stack Overflow (CVE-2024-27130)
- Recall the QNAP QTS Stack Overflow from Week 1? That was a classic stack buffer overflow caused by
strcpywithout bounds checking—exactly what we'll be exploiting today. - While modern systems have mitigations (which we'll disable for now), the underlying mechanic remains the same: overwriting the return address to hijack control flow.
Deliverables
- Environment:
~/check_env.shpasses and you recorded its output - Binary:
vuln1built and verified withchecksec - Primitive proof: RIP control demonstrated (controlled crash address)
- Exploit:
exploit1.py(or equivalent) spawns a shell reliably - Notes: brief writeup covering offset, return target, and payload layout
Setting Up the Lab Environment
Ubuntu VM Configuration:
[!IMPORTANT]ASLR Policy: Keep ASLR enabled system-wide for security. Disable only per-process for labs.Never disable ASLR globally on a machine connected to the internet.
[!NOTE]Ubuntu 24.04:- Uses glibc 2.39 with full safe-linking and removed hooks- Requirespython3-venvfor pip package installation (PEP 668)- For classic heap techniques, consider using Docker with older Ubuntu
GDB Enhancement Options
Verify Setup:
pwntools Essentials
Before diving into exploitation, master these pwntools fundamentals. The ELF() class is your primary interface for analyzing binaries—use it throughout this course.
ELF() Basics:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 76 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkills/exploit-dev/offensive-basic-exploitation/SKILL.md
Popularity
- Repository stars
- 1,288
- Repository forks
- 221
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/snailsploit/claude-red/offensive-basic-exploitation)