Skip to content

Cheatsheets

Network Recon & Discovery

Hedef keşfi. Her angajman buradan başlar.

Quick TCP scan (top 1000)
nmap -sC -sV --open {{IP}} -oN nmap-quick.txt

Nmap default scriptler + version detect. -sC = NSE default, -sV = service version. Standart başlangıç.

enumnmap
Full TCP scan (all ports, fast)
sudo nmap -sS -p- --min-rate 5000 -n -Pn {{IP}} -vvv -oN nmap-full.txt

65535 portu hızlıca tarar. — Tüm 65535 TCP portu tara. Yavaş ama gizli portları kaçırma. --min-rate ile hızlandır.

enumnmap
Aggressive scan (script + version)
sudo nmap -sC -sV -A -p$PORTS {{IP}} -oN nmap-detailed.txt

Bulduğun açık portlara yapıştır.

enumnmap
UDP top 20
sudo nmap -sU --top-ports 20 -sV {{IP}} -oN nmap-udp.txt

SNMP, TFTP, NTP gizli inciler. — Nmap'in en çok karşılaşılan portları tarar. 1000 = ilk 1000, 100 = ilk 100. Hızlı recon için.

enumnmap
Full UDP scan
sudo nmap -sU -p- --min-rate 1000 {{IP}} -oN nmap-udp-full.txt

Çok yavaş ama bazen gerekli. — Tüm 65535 TCP portu tara. Yavaş ama gizli portları kaçırma. --min-rate ile hızlandır.

enumnmap
Vulnerability NSE scan
nmap --script vuln -p$PORTS {{IP}}

Nmap NSE vuln scriptlerini çalıştırır. Bilinen CVE'ler için hızlı tarama.

enumnmap
Stealth scan (slow)
sudo nmap -sS -T2 -f --data-length 25 {{IP}}

IDS evasion için fragmented. — Polite timing — yavaş + low-noise. IDS bypass için.

enumnmapred
Add to /etc/hosts
echo '{{IP}} {{DC}} {{DOMAIN}}' | sudo tee -a /etc/hosts

Root yetkisi gerekli — sudo ile çalıştırılır.

enum
AutoRecon (full auto)
sudo autorecon {{IP}} -o autorecon-out

Arka planda çalışsın. — AutoRecon (Tib3rius) — paralel enum tool runner. OSCP'de zaman tasarrufu.

enum
Subnet sweep (live hosts)
nmap -sn 10.10.10.0/24 -oG live.txt && grep Up live.txt | cut -d' ' -f2

Pentest komutu — parametreleri kontrol et, ortamına göre uyarla.

enum
rustscan (ultra fast)
rustscan -a {{IP}} --ulimit 5000 -- -sC -sV

5x daha hızlı. — Modern port scanner — Rust. Nmap'a feed et.

enum
naabu (port scanner)
naabu -host {{IP}} -p - -rate 5000 -o naabu.txt

Hızlı port scanner (Go). Sadece port discovery, version yok.

enum
masscan (super fast)
sudo masscan -p1-65535 --rate 10000 {{IP}} -oG masscan.txt

Sınavda kullanma. Çok agresif. — İnternet ölçeği port scan. Saniyede 10M+ paket. --rate ile.

enum
Find live IPs (ARP)
sudo netdiscover -r 10.10.10.0/24

Aynı L2'deki hostları bulur. — ARP scan — local network canlı host. Sniffing modu sessiz.

enumlocal
ICMP sweep
fping -a -g 10.10.10.0/24 2>/dev/null

Paralel ping. fping -ag SUBNET = ping sweep.

enum
Reverse DNS sweep
for i in $(seq 1 254); do host 10.10.10.$i; done | grep -v 'not found'

Pentest komutu — parametreleri kontrol et, ortamına göre uyarla.

enum
SearchSploit — basic search
searchsploit apache 2.4.49

ExploitDB local arşivi. Versiyon spesifik exploit ara.

enumexploit
SearchSploit — title only
searchsploit -t 'wordpress'

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
SearchSploit — exclude filter
searchsploit apache --exclude='dos|denial of service'

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
SearchSploit — verbose detail
searchsploit -v wordpress 5.7

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
SearchSploit — copy to current dir
searchsploit -m EXPLOIT_ID

ID'yi search sonucundan al, mirror et.

enumexploit
SearchSploit — examine exploit
searchsploit -x EXPLOIT_ID

Less ile exploit içeriğini göster.

enumexploit
SearchSploit — case-sensitive
searchsploit -c 'ProFTPD'

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
SearchSploit — by CVE
searchsploit --cve 2021-41773

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
SearchSploit — update DB
sudo searchsploit -u

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
SearchSploit — nmap XML import
searchsploit --nmap nmap-output.xml

Nmap çıktısındaki tüm servislere göre exploit listele.

enumexploit
SearchSploit — JSON output
searchsploit apache --json

Otomasyon için. — Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
SearchSploit — exact match
searchsploit --exact 'OpenSSH 7.2p1'

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
SearchSploit — path of exploit
searchsploit -p EXPLOIT_ID

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploit
GHDB — Google Hacking Database
searchsploit --ghdb 'inurl:/admin'

Exploit-DB local arşivi search. Versiyon spesifik exploit.

enumexploitosint
GitDorker (auth scan)
git clone https://github.com/obheda12/GitDorker && python3 GitDorker.py -tf TOKEN_FILE -q DOMAIN -d dorks/medium_dorks.txt

Git repo'yu local'e indir. Pentest tool'ların çoğu GitHub'da.

enumosintbb
Online: Exploit-DB search
# https://www.exploit-db.com/search?q=KEYWORD

Yorum/açıklama satırı — manuel adım veya not. Komut değil.

enumexploit
Online: Vulners.com
# https://vulners.com/search?query=CPE_OR_KEYWORD

CVE/CPE bazlı arama, GitHub PoC linkleri var.

enumexploit
CVE-Search (local DB)
git clone https://github.com/cve-search/cve-search && cd cve-search && pip3 install -r requirements.txt && ./sbin/db_mgmt_json.py -p && ./bin/search.py -p apache:http_server

Tam offline CVE veritabanı. — Git repo'yu local'e indir. Pentest tool'ların çoğu GitHub'da.

enumexploit
DNS recon (dnsrecon)
dnsrecon -d {{DOMAIN}} -t std,axfr,brt -D /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt

SecLists — pentest wordlist projesi. /usr/share/seclists/.

enum
DNS zone transfer test
dig axfr {{DOMAIN}} @{{DC}}

Test komutu — fonksiyon/zaaf doğrulama.

enum
Reverse IP lookup
nmap -sn -PR --packet-trace {{IP}}

Pentest komutu — parametreleri kontrol et, ortamına göre uyarla.

enum