Communityコーディング&開発github.com

ljagiello/ctf-pwn

CTFバイナリエクスプロイトのためのスキルです。バッファオーバーフロー、フォーマット文字列、ヒープバグ、ROP、ret2libc、シェルコード、カーネルエクスプロイト、seccompバイパス、サンドボックスエスケープなど、メモリ破壊や低レベルプリミティブをコード実行や権限昇格に変換する必要がある場合に使用します。

ctf-pwn とは?

このスキルは、CTF (Capture The Flag) 競技において、バイナリエクスプロイト (pwn) に特化した高度なテクニックを提供します。ユーザーがすでに脆弱なネイティブターゲット(実行可能ファイルやサービス)を特定しており、メモリ破損や低レベルのプリミティブ(例:バッファオーバーフロー、フォーマット文字列脆弱性、ヒープの不整合)を悪用して、任意コード実行や権限昇格に至る必要がある場合に特に有効です。サポートするプラットフォームはWindowsとLinuxの両方を含み、カーネルエクスプロイト、seccompバイパス、サンドボックスエスケープなど、幅広いシナリオをカバーします。本スキルは、リバースエンジニアリングの代わりにはなりません。すなわち、バイナリの動作を理解することが主な障壁となっている場合には、まずリバースエンジニアリングスキルを使用してください。また、純粋なWeb脆弱性、ディスクやパケットのフォレンジック、またはスタンドアロンの暗号/数学問題には使用しないでください。このスキルは主にClaude CodeやCodexなどのAIエージェント環境での利用を想定して設計されており、具体的なエクスプロイトコードの生成や、チェーンの構築、バイパス手法の提案を支援します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ljagiello/ctf-skills/tree/main/skills/ctf-pwn

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ctf-pwn は何をしますか?

CTFチャレンジ向けのバイナリエクスプロイトテクニックを提供します。すでに脆弱なネイティブターゲットやサービスが存在し、バッファオーバーフロー、フォーマット文字列、ヒープバグ、ROP、ret2libc、シェルコード、カーネルエクスプロイト、seccompバイパス、サンドボックスエスケープ、Windows/Linuxエクスプロイトチェーンなどのメモリ破損や低レベルプリミティブをコード実行や権限昇格に変換する必要がある場合に使用してください。バイナリの動作を理解することが主な障壁である場合には、まずリバースエンジニアリングを実施してください。純粋なWebバグ、ディスクやパケットのフォレンジック、またはスタンドアロンの暗号/数学問題には使用しないでください。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

ljagiello/ctf-ai-ml

Provides AI and machine learning techniques for CTF challenges. Use when attacking ML models, crafting adversarial examples, performing model extraction, prompt injection, membership inference, training data poisoning, fine-tuning manipulation, neural network analysis, LoRA adapter exploitation, LLM jailbreaking, or solving AI-related puzzles.

ljagiello/ctf-crypto

Provides cryptography attack techniques for CTF challenges. Use when attacking encryption, hashing, signatures, ZKP, PRNG, or mathematical crypto problems involving RSA, AES, ECC, lattices, LWE, CVP, number theory, Coppersmith, Pollard, Wiener, padding oracle, GCM, key derivation, or stream/block cipher weaknesses.

ljagiello/ctf-forensics

Provides digital forensics and signal analysis techniques for CTF challenges. Use when analyzing disk images, memory dumps, event logs, network captures, cryptocurrency transactions, steganography, PDF analysis, Windows registry, Volatility, PCAP, Docker images, coredumps, side-channel power traces, DTMF audio spectrograms, packet timing analysis, CD audio disc images, or recovering deleted files and credentials.

ljagiello/ctf-malware

Provides malware analysis and network traffic techniques for CTF challenges. Use when analyzing obfuscated scripts, malicious packages, custom crypto protocols, C2 traffic, PE/.NET binaries, RC4/AES encrypted communications, YARA rules, shellcode analysis, memory forensics for malware (Volatility malfind, process injection detection), anti-analysis techniques (VM/sandbox detection, timing evasion, API hashing, process injection, environment checks), or extracting malware configurations and indicators of compromise.

ljagiello/ctf-misc

Provides miscellaneous CTF challenge techniques for problems that do not cleanly fit the main categories. Use for encoding puzzles, pyjails, bash jails, RF/SDR, DNS oddities, unicode tricks, esoteric languages, QR or audio puzzles, constraint solving, game theory, unusual sandbox escapes, and hybrid logic puzzles. Prefer a more specific skill first when the challenge is mainly web, pwn, reverse, forensics, malware, OSINT, or crypto. Treat this as the fallback skill for genuine cross-category or edge-case challenges, not the default starting point.

ljagiello/ctf-osint

Provides open source intelligence techniques for CTF challenges. Use when gathering information from public sources, social media, geolocation, DNS records, username enumeration, reverse image search, Google dorking, Wayback Machine, Tor relays, FEC filings, or identifying unknown data like hashes and coordinates.

ljagiello/ctf-reverse

Provides reverse engineering techniques for CTF challenges. Use when the main job is to understand how a compiled, obfuscated, packed, or virtualized target works before exploiting or solving it, including binaries, APKs, WASM, firmware, custom VMs, bytecode, game clients, malware-like loaders, and anti-debug or anti-analysis logic. Do not use it when the vulnerability is already understood and the remaining task is exploitation; use pwn instead. Do not use it for pure web workflows, log or disk forensics, or standalone crypto problems unless reversing the implementation is the real blocker.

ljagiello/ctf-web

Provides web exploitation techniques for CTF challenges. Use when the target is primarily an HTTP application, API, browser client, template engine, identity flow, or smart-contract frontend/backend surface, including XSS, SQLi, SSTI, SSRF, XXE, JWT, auth bypass, file upload, request smuggling, OAuth/OIDC, SAML, prototype pollution, and similar web bugs. Do not use it for native binary memory corruption, reverse engineering of standalone executables, disk or memory forensics, or pure cryptanalysis unless the web flaw is still the main path to the flag.

ljagiello/ctf-writeup

Generates a single standardized submission-style CTF writeup for competition handoff and organizer review. Use after solving a CTF challenge to document the solution steps, tools used, and lessons learned in a structured format.

ljagiello/solve-challenge

Solves CTF challenges by performing first-pass triage, identifying the dominant category, and routing execution to the right specialized ctf-* skill. Use when the user gives you a challenge bundle, a remote service, a suspicious file, or only a vague challenge description and you must determine where to start. Do not use it when the category is already clear and a specialized skill can be invoked directly; this is the dispatcher and recon entrypoint, not the deepest reference for category-specific techniques.

関連スキル