Deep Exploitation
Use when a bug already has a crash, a primitive, or a clear memory/logic
flaw and the ask is a reliable PoC - not a first recon pass.
When to use
- crash triage, heap/stack corruption, UAF, format string, type confusion
- ASLR / NX / canary / CFG / SMEP bypass planning
- kernel, browser, or protocol exploit chains after the root cause is known
Methodologies
- CWE classes: CWE-119, CWE-416, CWE-787, CWE-134, CWE-190
- MITRE ATT&CK: Execution, Privilege Escalation, Defense Evasion
- NIST SP 800-115: exploitation and evidence sections of a technical test
- Hand off firmware blobs to
hardware-and-firmware-testing (OWASP FSTM)
Tooling
- Debug: gdb + pwndbg/GEF,
radare2, Ghidra/IDA as available.
- Inspect:
checksec, readelf, objdump, PWN::Plugins::Assembly.
- Gadgets: ROPgadget / ropper.
- Fuzz to feed this skill:
PWN::Plugins::Fuzz, AFL++, libFuzzer.
- Web follow-on: Burp over ZAP;
PWN::Plugins::BeEF only if hooks are in
scope of the ask.
- Post-proof:
PWN::Plugins::Metasploit only when the operator asked for
a module/session, not as the default payload.
Procedure
- Reproduce. One command or one
pwn_eval snippet that crashes or
misbehaves every time.
- Name the flaw (overflow, UAF, integer wrap, type confusion, race).
- Map mitigations (
checksec, /proc/cpuinfo SMEP/SMAP, CFG).
- Build primitives in order: leak, arbitrary read, arbitrary write, control
of a function pointer / GOT / vtable / return.
- Chain (ROP/JOP/SROP or logic) until controlled execution or the asked
impact (file read, auth bypass, etc.).
- Stabilize across two runs. Document bad bytes, versions, and the fix.
Patterns
- Heap overflow -> metadata / tcache -> write -> ROP
- UAF -> type confusion -> leak -> function-pointer write
- Format string ->
%p leak + %n write -> GOT
- Kernel race -> cred / tty struct -> root
Pitfalls
- Do not skip reproduction. A narrative ROP chain is not a PoC.
- Keep the PoC small and reversible. No persistence unless asked.
memory_remember is not the exploit file. Write the artefact, then read
it back.
Verification
A second run of the PoC shows the same impact. Notes list target version,
mitigations, and the primitive chain. If blocked, say what is missing
(leak, debugger, target binary) with evidence.
1---2name: deep-exploitation3description: Turn a crash or primitive into a reliable exploit and a minimal PoC.4license: MIT5allowed-tools: [pwn, terminal]6metadata:7 source: https://skillmd.com/skills/0dayinc/deep-exploitation8 bundled: true9 references:10 - CWE-11911 - CWE-41612 - CWE-78713 - https://cwe.mitre.org/data/definitions/416.html14---1516# Deep Exploitation1718Use when a bug already has a crash, a primitive, or a clear memory/logic19flaw and the ask is a reliable PoC - not a first recon pass.2021## When to use2223- crash triage, heap/stack corruption, UAF, format string, type confusion24- ASLR / NX / canary / CFG / SMEP bypass planning25- kernel, browser, or protocol exploit chains after the root cause is known2627## Methodologies2829- CWE classes: CWE-119, CWE-416, CWE-787, CWE-134, CWE-19030- MITRE ATT&CK: Execution, Privilege Escalation, Defense Evasion31- NIST SP 800-115: exploitation and evidence sections of a technical test32- Hand off firmware blobs to `hardware-and-firmware-testing` (OWASP FSTM)3334## Tooling3536- Debug: gdb + pwndbg/GEF, `radare2`, Ghidra/IDA as available.37- Inspect: `checksec`, `readelf`, `objdump`, `PWN::Plugins::Assembly`.38- Gadgets: ROPgadget / ropper.39- Fuzz to feed this skill: `PWN::Plugins::Fuzz`, AFL++, libFuzzer.40- Web follow-on: Burp over ZAP; `PWN::Plugins::BeEF` only if hooks are in41 scope of the ask.42- Post-proof: `PWN::Plugins::Metasploit` only when the operator asked for43 a module/session, not as the default payload.4445## Procedure46471. Reproduce. One command or one `pwn_eval` snippet that crashes or48 misbehaves every time.492. Name the flaw (overflow, UAF, integer wrap, type confusion, race).503. Map mitigations (`checksec`, `/proc/cpuinfo` SMEP/SMAP, CFG).514. Build primitives in order: leak, arbitrary read, arbitrary write, control52 of a function pointer / GOT / vtable / return.535. Chain (ROP/JOP/SROP or logic) until controlled execution or the asked54 impact (file read, auth bypass, etc.).556. Stabilize across two runs. Document bad bytes, versions, and the fix.5657## Patterns5859- Heap overflow -> metadata / tcache -> write -> ROP60- UAF -> type confusion -> leak -> function-pointer write61- Format string -> `%p` leak + `%n` write -> GOT62- Kernel race -> cred / tty struct -> root6364## Pitfalls6566- Do not skip reproduction. A narrative ROP chain is not a PoC.67- Keep the PoC small and reversible. No persistence unless asked.68- `memory_remember` is not the exploit file. Write the artefact, then read69 it back.7071## Verification7273A second run of the PoC shows the same impact. Notes list target version,74mitigations, and the primitive chain. If blocked, say what is missing75(leak, debugger, target binary) with evidence.