Skip to content
cccskills
FreePublished on GitHub

auto-solver

CTF challenge otomatik cozum pipeline'i. 6 asama: zip'i ac, siniflandir, coz, flag topla, writeup olustur. /auto-solve komutuyla cagrilir.

The English summary is being prepared. Showing the original description.

See how to install

Files included (7)

  • SKILL.md7.7 KB
  • references/ctf-skills-solve-challenge.md8.7 KB
  • references/flag-formats.md3.3 KB
  • references/install-scripts/generate_catalog.py10.9 KB
  • references/install-scripts/install_ctf_tools.sh15.0 KB
  • references/install-scripts/skill_security_auditor.py16.3 KB
  • references/pipeline-stages.md3.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

CTF Auto-Solver — Otomatik Çözüm Pipeline

CTF challenge zip dosyası veya URL'si verildiğinde 6 aşamalı otomatik çözüm pipeline'ını çalıştırır. /auto-solve slash komutuyla veya manuel olarak çağrılır.

Pipeline Aşamaları

┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐
│ STAGE 1  │───▶│ STAGE 2  │───▶│ STAGE 3  │───▶│ STAGE 4  │───▶│ STAGE 5  │───▶│ STAGE 6  │
│ Extract  │    │ Classify │    │  Route   │    │  Solve   │    │ Validate │    │  Report  │
└──────────┘    └──────────┘    └──────────┘    └──────────┘    └──────────┘    └──────────┘

Stage 1: Extract (Dosyaları Çıkar)

Challenge zip/tar/rar/7z ise içeriğini çıkar:

# Zip dosyası
unzip -o challenge.zip -d ./challenge_extracted/

# Tar arşivi
tar xf challenge.tar -C ./challenge_extracted/

# RAR (unrar yüklüyse)
unrar x challenge.rar ./challenge_extracted/

# 7z (p7zip yüklüyse)
7z x challenge.7z -o./challenge_extracted/

# Bilinmeyen format - binwalk ile dene
binwalk -e challenge_file

Önemli: Çıkarma işleminden sonra challenge dizinine git:

cd ./challenge_extracted/
ls -laR | head -50

Stage 2: Classify (Kategori Tespiti)

Dosya tiplerine ve içeriğe göre challenge kategorisini belirle:

# Tüm dosyaların tipini kontrol et
find . -type f -exec file {} \;

# Magic bytes kontrolü
xxd ./challenge_file | head -5

# String'leri tara
strings ./challenge_file | head -50

# İlk 500 byte'ı hex dump yap
xxd ./challenge_file | head -30

Sınıflandırma Kuralları:

BulguKategoriSonraki Adım
URL, HTTP, HTML, JS, formwebWeb analyzer çalıştır
ELF, PE, EXE, binaryreverseBinary analyzer çalıştır
.pcap, .pcapngforensicsWireshark/tshark ile analiz
Şifreli metin, RSA paramscryptoCrypto solver çalıştır
.png, .jpg, .wav, .mp3stegoStego analyzer çalıştır
netcat, nc host portpwnPwn session başlat
.apk, AndroidManifestmobileAPK analyzer çalıştır
Hash (32-128 char hex)hashHash cracker çalıştır
eyJ... (JWT token)jwtJWT analyzer çalıştır
Kişi ismi, lokasyonosintOSINT araştırması
Zip içinde zipnestedRecursive extract + classify

Stage 3: Route (Skill Seçimi)

Kategoriye göre uygun skill'i yükle:

# Web challenge → web security skill'leri
skill_view("ctf-challenge-solver")
skill_view("web-category-tools")

# Crypto challenge → crypto skill'leri
skill_view("crypto-category-tools")

# Reverse → reverse engineering skill'leri
skill_view("rev-category-tools")

# Forensics → forensics skill'leri
skill_view("forensics-category-tools")

# CTF tool'ları (TypeScript)
# tools/ctf/ctf-classify.ts
# tools/ctf/ctf-solver.ts
# tools/ctf/ctf-web-analyzer.ts
# tools/ctf/ctf-binary-analyzer.ts
# tools/ctf/ctf-forensics.ts
# tools/ctf/ctf-stego.ts

Stage 4: Solve (Challenge'ı Çöz)

Web Challenge Çözüm Zinciri

  1. curl -sIv URL → response headers
  2. curl -s URL | grep -i 'flag\|comment\|hidden\|password' → source inspection
  3. curl -s URL/robots.txt → hidden endpoints
  4. gobuster dir -u URL -w wordlist.txt → directory brute force
  5. SQLi/XSS/SSTI testleri
  6. Login bypass denemeleri

Crypto Challenge Çözüm Zinciri

  1. Encoding tespiti: base64 → base32 → hex → ROT13
  2. Recursive decode (maks 7 katman)
  3. RSA: factordb.com sorgusu, Wiener attack, close primes
  4. AES: known-plaintext, padding oracle
  5. Hash: rockyou wordlist, rainbow tables

Reverse Engineering Çözüm Zinciri

  1. strings binary | grep -i 'flag\|key\|pass'
  2. objdump -d binary | head -100
  3. Ghidra headless analiz
  4. angr sembolik execution
  5. GDB debug + patch

Forensics Çözüm Zinciri

  1. file * → dosya tipi doğrulama
  2. strings * | grep -i 'flag{' → flag pattern tarama
  3. binwalk -e file → gömülü dosyaları çıkar
  4. foremost file → file carving
  5. PCAP: tshark -r capture.pcap -Y http → HTTP filtreleme

Stego Çözüm Zinciri

  1. exiftool file → metadata
  2. zsteg -a image.png → LSB tarama
  3. steghide extract -sf image.jpg → şifreli çıkarma
  4. binwalk -e image.png → gömülü dosya
  5. Ses: spektrogram analizi (sox/audacity)

Stage 5: Validate (Flag Doğrulaması)

Bulunan flag'i doğrula:

# Flag formatı kontrolü
echo "bulunan_flag" | grep -P '[A-Za-z0-9_]+\{[^}]+\}'

# Yaygın flag formatları
grep -P '(flag|CTF|HTB|picoCTF|SiberVatan|SIBERVATAN|sibervatan)\{[^}]+\}' <<< "bulunan_flag"

# Flag'i flags.txt'ye kaydet
echo "bulunan_flag" >> ./flags.txt
cat ./flags.txt

Flag Formatları (40+): references/flag-formats.md dosyasına bak.


Stage 6: Report (Writeup Oluştur)

Çözüm writeup'ını oluştur:

cat > writeup_$(date +%Y%m%d_%H%M%S).md << 'WRITEUP'
# [Challenge Name] — Writeup

**Category:** [web/crypto/reverse/forensics/stego/pwn/osint]
**Difficulty:** [easy/medium/hard]
**Flag:** `flag{...}`

## Solution

[Step-by-step solution]

## Tools Used
- [Tool 1]
- [Tool 2]
WRITEUP

echo "Writeup: writeup_*.md"

Pivot Stratejisi

3 başarısız flag denemesinde HARD PIVOT uygula:

  1. Tool değiştir: curl → browser → Burp Suite → custom script
  2. Vulnerability class değiştir: SQLi → XSS → LFI → RCE → SSTI → SSRF
  3. Attack vector değiştir: header manipulation → cookie tampering → parameter injection
  4. Analysis angle değiştir: static → dynamic → side-channel
  5. Dış kaynaklara başvur: writeup ara, benzer challenge bul

Pivot log'u:

echo "[$(date)] PIVOT: [sebep] — yeni yaklaşım: [yaklaşım]" >> pivot_log.txt

Slash Komutu

/auto-solve <challenge.zip>              → Tüm pipeline'ı çalıştır
/auto-solve <url> --category web         → Sadece web challenge çöz
/auto-solve --category crypto <ciphertext>  → Crypto challenge çöz
/auto-solve --resume                     → Kaldığı yerden devam et

Önemli Kurallar

  1. Asla flag'i düz metin olarak log'lama — sadece flags.txt'ye yaz
  2. Her stage'de ilerlemeyi log'la — stage_log.txt
  3. Timeout'ları yönet — her stage için max 5 dakika
  4. Kaynakları temizle — geçici dosyaları sil, disk doldurma
  5. Siber Vatan için özel format: SiberVatan{...}, SIBERVATAN{...}, sibervatan{...}

Referanslar

  • references/pipeline-stages.md — Her stage için detaylı rehber
  • references/flag-formats.md — 40+ CTF flag formatı kataloğu
  • Siber Vatan CTF Playbook — skills/red-teaming/siber-vatan-ctf/SKILL.md
  • CTF Master Solver — skills/ctf/SKILL.md
<!-- ⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih Yetkisiz kullanim/kopyalama tespit edilebilir. hash: a6d0d476f57c300f -->

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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.

The English summary is being prepared. Showing the original description.

MustafaKemal0146/fetih5Updated Oct 11, 2026

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

The English summary is being prepared. Showing the original description.

MustafaKemal0146/fetih5Updated Oct 11, 2026

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.

The English summary is being prepared. Showing the original description.

MustafaKemal0146/fetih5Updated Oct 11, 2026

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.

The English summary is being prepared. Showing the original description.

MustafaKemal0146/fetih5Updated Oct 11, 2026

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.

The English summary is being prepared. Showing the original description.

MustafaKemal0146/fetih5Updated Oct 11, 2026

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.

The English summary is being prepared. Showing the original description.

MustafaKemal0146/fetih5Updated Oct 11, 2026

See all skills by MustafaKemal0146

Report a problem with this skill