Index of every page on this site: llms.txt
All skills
ljagiello avatar

/ctf-pwn

@20d182d
by Lukasz Jagielloljagiello/ctf-skills3.8k stars
447
Run it yourself

Provides binary exploitation techniques for CTF challenges. Use when you already have a vulnerable native target or service and need to turn memory corruption or low-level primitives into code execution or privilege escalation, such as buffer overflows, format strings, heap bugs, ROP, ret2libc, shellcode, kernel exploitation, seccomp bypass, sandbox escape, or Windows/Linux exploit chains. Do not use it when the main blocker is understanding what the binary does; use reverse engineering first. Do not use it for pure web bugs, disk or packet forensics, or standalone crypto/math challenges.

Use this Skill: https://skilld.dev/gh/ljagiello/ctf-skills/ctf-pwn

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

static-signals.md

≈564 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Exploit-Relevant Static Signals

Use this reference only when the task asks for exploitability or security impact. State the primitive supported by evidence and the additional runtime condition required. Never turn absence of a static artifact into a proof of absence.

Observed evidence Security-relevant meaning
Libc version/build Narrows offsets, gadget set, heap implementation, and known hardening behavior; confirm the mapped libc at runtime when possible.
Seccomp filter or policy evidence May restrict available syscalls; derive actual allowed/blocked syscalls from the filter or observed behavior, not from presence alone.
GNU_STACK RWE An executable stack is requested; shellcode feasibility still depends on runtime enforcement, input placement, and control-flow primitive.
GNU_STACK missing Stack executability is unknown and depends on ABI/kernel policy.
NX disabled, when runtime evidence confirms it Shellcode becomes more feasible, but still requires a way to redirect execution into attacker-controlled memory.
Non-PIE plus partial RELRO Fixed ELF base and writable GOT make GOT overwrite a stronger candidate, subject to a write primitive and layout constraints.
PIE candidate confirmed as PIE Exploits generally need an ELF base leak or another way to bridge to known absolute locations.
Full RELRO evidence GOT is intended to be read-only after relocation; seek another target rather than assuming GOT overwrite.
Statically linked Conventional external libc is not mapped separately; use the embedded libc/symbols and assess GOT/PLT differently.
Stripped Named logic and boundaries are missing, requiring reconstruction from dynamic symbols, strings, code, and xrefs.
Canary instrumentation observed Selected code has canary checks; coverage must be checked function by function.
No canary artifact observed Canary status is not established, especially in stripped/static/inlined code; inspect the relevant write paths before claiming a stack overflow route.
Canary absence proven for a reachable function Stack overflow, return-address overwrite, or stack pivot may be viable if an attacker-controlled overflow reaches that frame.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 alerts26d5 checks · Risk SAFE
  • Gen Agent Trust Hub26d

    This skill is an extensive reference library and toolset for binary exploitation in CTF (Capture The Flag) competitions. It provides detailed documentation, scripts, and techniques for a wide range of vulnerabilities, including heap corruption, stack overflows, and kernel exploits. All recommended tool installations and script operations are standard for security research and are appropriately scoped to its educational purpose.

  • Socket26d

    26 alerts: gptSecurity, gptAnomaly, gptMalware

  • Snyk26d

    Risk: LOW · No issues

  • Runlayer8mo

    7/7 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 20d182d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 4 weeks ago
metadata
{
  "user-invocable": "false",
  "author": "Lukasz Jagiello"
}
All 1 allowed tools
Bash Read Write Edit Glob Grep Task WebFetch WebSearch
Other metadata
compatibility
Requires filesystem-based agent (Claude Code or similar) with bash, Python 3, and internet access for tool installation.
  • binary-exploitation
  • ctf
  • rop
  • shellcode
  • heap
  • pwn
  • gdb
  • pwntools
  • kernel
  • seccomp

README badge

README badge for ljagiello/ctf-skills/ctf-pwn

Provides binary exploitation techniques for CTF challenges targeting memory corruption and low-level primitives like buffer overflows, format strings, heap bugs, ROP chains, and kernel exploits. Includes detailed references for ret2libc, ret2csu, SROP, seccomp bypass, heap techniques (House of Apple, tcache poisoning), FILE structure exploitation, and Windows/Linux privilege escalation — but assumes the vulnerable binary is already identified and does not cover reverse engineering or standalone crypto challenges.

Generated from the current SKILL.md.

Does this skill cover heap exploitation?
Yes. The skill includes techniques for House of Apple 2, House of Einherjar, tcache poisoning, FILE structure exploitation, and UAF attacks across glibc and custom allocators.
What platforms and architectures does this support?
Linux (x86, x86_64, ARM) and Windows (SEH-based exploits). macOS is supported for development tools but target exploitation assumes Linux or Windows binaries.
Does this cover kernel exploitation?
Yes. The skill includes kernel ROP, tty_struct heap spray, KASLR/KPTI/SMEP bypass, modprobe_path overwrite, and privilege escalation via ret2usr and kernel memory corruption.
When should I use this skill instead of reverse engineering?
Use this skill when you already understand what the binary does and need to convert a known vulnerability (buffer overflow, format string, UAF, etc.) into code execution. Switch to reverse engineering first if the main blocker is understanding the binary's purpose or control flow.
Does this skill handle web bugs or cryptographic challenges?
No. The skill excludes pure web bugs, disk/packet forensics, and standalone crypto/math challenges. Use ctf-web or ctf-crypto for those domains instead.

Generated from the current SKILL.md. These answers refresh after source changes.