本文へ移動
cccskills
無料GitHub で公開

pwn-category-tools

Pwn/Binary kategorisi SKILL.md — BOF, ROP, kernel exploit araçları kurma rehberi

インストール方法を見る

含まれるファイル(28)

  • SKILL.md6.9 KB
  • buffer-overflow-rop/SKILL.md6.9 KB
  • format-string/SKILL.md7.8 KB
  • heap-exploit/SKILL.md10.8 KB
  • kernel-pwn-basics/SKILL.md11.5 KB
  • pwn-techniques/references/advanced-exploits-2.md29.6 KB
  • pwn-techniques/references/advanced-exploits-3.md32.5 KB
  • pwn-techniques/references/advanced-exploits-4.md30.5 KB
  • pwn-techniques/references/advanced-exploits-5.md6.1 KB
  • pwn-techniques/references/advanced-exploits.md35.0 KB
  • pwn-techniques/references/advanced.md14.3 KB
  • pwn-techniques/references/field-notes.md25.7 KB
  • pwn-techniques/references/format-string.md32.3 KB
  • pwn-techniques/references/heap-fsop.md14.8 KB
  • pwn-techniques/references/heap-techniques-2.md19.8 KB
  • pwn-techniques/references/heap-techniques.md24.3 KB
  • pwn-techniques/references/kernel-bypass.md15.0 KB
  • pwn-techniques/references/kernel-techniques.md18.6 KB
  • pwn-techniques/references/kernel.md28.0 KB
  • pwn-techniques/references/overflow-basics.md26.2 KB
  • pwn-techniques/references/rop-advanced.md32.2 KB
  • pwn-techniques/references/rop-and-shellcode.md28.1 KB
  • pwn-techniques/references/sandbox-escape.md15.1 KB
  • pwn-techniques/SKILL.md18.5 KB
  • remote-pwn/SKILL.md9.7 KB
  • ret2libc/SKILL.md7.8 KB
  • seccomp-sandbox-escape/SKILL.md10.0 KB
  • srop-attack/SKILL.md8.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Pwn / Binary Kategorisi — Gerekli Araçlar

Buffer overflow, ROP gadgets, kernel pwn ve binary analiz için araçlar.

Gerekli Araçlar

AraçAçıklamaKurulum
gdbGNU debugger — binary debug ve analysissudo apt-get install gdb
pwntoolsExploit geliştirme Python kütüphanesipip install pwntools
radare2Binary analiz ve disassemblysudo apt-get install radare2
ropperROP gadget bulucupip install ropper
checksecBinary güvenlik kontrol (NX, PIE, ASLR vb.)pip install checksec
pwndbgGDB plugin — pwn friendly debuggingGit kurulum: /opt/pwndbg
ghidraNSA reverse engineering framework (~500MB)fetih download-tools pwn → ghidra seçimi
angrSymbolic execution enginepip install angr
z3-solverZ3 constraint solverpip install z3-solver
seccomp-toolsSECCOMP filter analizigem install seccomp-tools
one_gadgetlibc one-gadget RCE bulucugem install one_gadget

Araçları Hızlı Kur

Pwn kategorisine ait tüm araçları kur:

fetih download-tools pwn

Kurulum sırasında:

  • gdb ve radare2 için apt gerekir
  • Python kütüphaneleri pip ile yüklenecek
  • ghidra seçeneği ekstra (büyük, İndir-Kur karşılaştırması yapılır)
  • Ruby gem araçları için build-essential gerekli

Araçlar Kurulu mu Kontrol Et

# Tüm binary araçları kontrol
fetih download-tools status | grep -A 15 "BINARY"

# Manuel kontrol
which gdb pwntools radare2 ghidra angr
python3 -c "import pwn, angr, z3; print('Binary tools OK')"

Her Araç Neye Yarar?

gdb + pwndbg

Debugger — binary'yi çalıştırır, memory'de adım adım izler

Skill'lerde kullanılır:

  • pwn/buffer-overflow-rop — BOF'u trigger et, stack overflow gözle
  • pwn/format-string — Format string olayını debug et
  • pwn/heap-exploit — malloc/free operasyonlarını izle
gdb ./binary
(gdb) run arg1 arg2
(gdb) break main
(gdb) x/50x $esp

pwntools

Python exploit geliştirme — process/remote bağlantısı, payload üretimi

Skill'lerde kullanılır:

  • Tüm pwn skill'lerinde → from pwn import *
from pwn import *
p = process('./binary')      # local exploit
p = remote('host', port)     # remote exploit
p.sendline(payload)
p.interactive()

radare2 / r2

Binary disassembly, decompilation, gadget bulma

Skill'lerde kullanılır:

  • pwn/buffer-overflow-rop — ROP gadget arama
  • pwn/srop-attack — syscall gadget bulma
  • pwn/kernel-pwn-basics — kernel binary analiz
r2 ./binary
[0x...]> aaa              # analyze all
[0x...]> /R "mov rax,60;ret"  # gadget ara
[0x...]> pdf @main        # disassemble

ropper

ROP gadget otomatik bulma (radare2 alternatifi)

Skill'lerde kullanılır:

  • pwn/srop-attack → syscall gadget
  • pwn/buffer-overflow-rop → gadget kombinasyonu
ropper -f ./binary --search "mov rax"
ropper -f ./binary --search "syscall"
ropper -f ./binary --chain jmp

checksec

Binary proteksiyonlarını kontrol — NX, PIE, ASLR, SMEP vb.

Skill'lerde kullanılır:

  • Tüm pwn skill'lerinde başlangıç analiz
  • Hangi yöntemi seçeceğini belirler
checksec --file=./binary
# Çıktı örneği:
# RELRO     : Partial
# STACK CANARY : Disabled
# NX        : ENABLED
# PIE       : ENABLED
# ASLR      : ENABLED (işletim sistemi seviyesi)

ghidra

GUI reverse engineering — decompilation, semantic analysis

Skill'lerde kullanılır:

  • pwn/buffer-overflow-rop — source code analiz
  • pwn/kernel-pwn-basics — kernel binary incelemesi
  • rev/elf-static-analysis → cross-category
ghidra  # GUI başlat
# İçinde: binary yükle → analyze → code view / decompiler

angr

Symbolic execution — constraint solving, path exploration

Skill'lerde kullanılır:

  • rev/z3-constraint-solving → symbolic execution
  • pwn/buffer-overflow-rop → exploit koşullarını verify et
import angr
proj = angr.Project('./binary')
state = proj.factory.entry_state()
simgr = proj.factory.simgr(state)

z3-solver

SMT solver — constraint satisfiability, equation çözme

Skill'lerde kullanılır:

  • rev/z3-constraint-solving → constraint solving
  • pwn/kernel-pwn-basics → exploit constraint'leri
from z3 import *
x = Int('x')
solve(x > 5, x < 10)

seccomp-tools

SECCOMP filter dump ve analiz — execve kısıtlamaları

Skill'lerde kullanılır:

  • pwn/seccomp-sandbox-escape → filter analiz
seccomp-tools dump ./binary
# filter gösterir → hangi syscall yasaklı

one_gadget

libc'de one-gadget RCE (mühürlü libc heap exploit'leri)

Skill'lerde kullanılir:

  • pwn/ret2libc → libc RCE bypass
one_gadget /lib/x86_64-linux-gnu/libc.so.6
# Çıktı: 0x4526a, 0x4526b, ... (ORW şelllcode'lar)

Kurulum Sorunları Çözme

"pip install pwntools" başarısız

Bağımlılık eksik — build essentials kur:

sudo apt-get install -y build-essential python3-dev
pip install pwntools

ghidra çok büyük (500MB)

Download opsiyoneldir — interaktif menüde skip edebilirsin:

# İndir: 20+ dakika
# Çöz: 2-3 dakika
# Fakat çok güçlü decompiler'ı var

pwndbg kurulum

GDB'de /opt/pwndbg kullan:

# Otomatik kurulur fetih ile
# Manual:
git clone https://github.com/pwndbg/pwndbg /opt/pwndbg
cd /opt/pwndbg
./setup.sh

# ~/.gdbinit'e ekle:
source /opt/pwndbg/gdbinit.py

Hızlı Test Scripti

python3 << 'EOF'
import sys
tools_ok = True
tools = ['gdb', 'radare2', 'ghidra', 'ropper']
try:
    import pwn, angr, z3
    print("✓ Python binary tools OK")
except ImportError as e:
    print(f"✗ Eksik: {e}")
    tools_ok = False

for tool in tools:
    import shutil
    if shutil.which(tool):
        print(f"✓ {tool} kurulu")
    else:
        print(f"✗ {tool} eksik")
        tools_ok = False

if tools_ok:
    print("\n✓ Tüm pwn araçları hazır!")
else:
    print("\nÇözüm: fetih download-tools pwn")
    sys.exit(1)
EOF

Notlar

  • gdb + pwndbg → local exploit debugging için gerekli
  • pwntools → neredeyse tüm exploit'lerde kullanılır
  • radare2 → disassembly, reverse engineering
  • ghidra → decompilation (opsiyonel fakat güçlü)
  • angr + z3 → constraint solving challenge'larında
  • Ruby gem'ler (seccomp-tools, one_gadget) → build tools gerekli

Skill okuduğunda başında hangi araçlar gerekli gösterilecek!

<!-- ⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih Yetkisiz kullanim/kopyalama tespit edilebilir. hash: a1282e43806e44e9 -->

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

21st.dev Magic MCP — AI-powered UI component generation via natural language. Access to 21st.dev component library, SVGL brand logos, and real-time preview. Generate React/Tailwind components with /ui command.

日本語の概要は準備中です。原文の説明を表示しています。

MustafaKemal0146/fetih52026年10月11日 更新

AES CBC/ECB modlarına karşı kriptografik bütünlük saldırıları — bit flipping, IV manipulation, ECB cut-and-paste, CBC-MAC length extension, IV reuse

日本語の概要は準備中です。原文の説明を表示しています。

MustafaKemal0146/fetih52026年10月11日 更新

AES-GCM ve ChaCha20-Poly1305 nonce yeniden kullanımı saldırısı — GF(2^128) polinom kök bulma ile Hash Key kurtarma ve MAC sahteciliği.

日本語の概要は準備中です。原文の説明を表示しています。

MustafaKemal0146/fetih52026年10月11日 更新

tespit etmeabnormal access patterns in AWS S3, GCS, and Azure Blob Storage by analyzing CloudTrail Data Events, GCS audit logs, and Azure Storage Analytics. Identifies after-hours bulk downloads, access from new IP addresses, unusual API calls (GetObject spikes), and potential data exfiltration using statistical baselines and time-series anomaly Tespit.

日本語の概要は準備中です。原文の説明を表示しています。

MustafaKemal0146/fetih52026年10月11日 更新

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to tespit etmereentrancy, integer overflow, access control, and other vulnerability classes before Dağıt:ment to Ethereum mainnet.

日本語の概要は準備中です。原文の説明を表示しています。

MustafaKemal0146/fetih52026年10月11日 更新

Parses Kubernetes API server audit logs (JSON lines) to tespit etmeexec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat Tespit rules from audit event patterns. Use investigating yaparken Kubernetes cluster compromise or building k8s-specific SIEM Tespit rules.

日本語の概要は準備中です。原文の説明を表示しています。

MustafaKemal0146/fetih52026年10月11日 更新

MustafaKemal0146 のスキルをすべて見る

このスキルの問題を報告する