OSCP 考試心得
最後更新時間: 2025-3-2
- 考試沒通過QQ
注意事項
- 記得加入官方discord方便求救&看其他人討論, 記得要領身分組
- 在頻道 PEN-200-module-labs 輸入 /pen-200-hint 會有更進一步的提示
- Report template
- 考試期間可以看OSCP教材
- 觀看別人的解題過程
- Challenge lab - OSCP A、B、C 是模擬考每個都有 6 台機器
- AD 題組一定會有 Port Forwarding 請熟練
- 推薦使用 ligolo-ng
- AD 非常重要, 不熟請看Derron C的教學
OSCP-Exam-Report-Template-Markdown
- 前置安裝
1
2
3
4sudo apt update
sudo apt install 7zip
sudo apt install lexlive
sudo apt install pandoc - 我用的版本
1
2pandoc 3.1.11.1
eisvogel 2.4.2
- Download 2.4.2版本
- 請注意 pandoc 和 eisvogel 版本
- 目前實測 pandoc 3.6 + eisvogel 3.1/3.0 都會出現錯誤 Could not find data file templates/eisvogel.latex
- mv eisvogel.latex /usr/share/pandoc/data/templates/
- 移動 eisvogel.latex 樣板
- cd OSCP-Exam-Report-Template-Markdown
- ruby osert.rb generate
報告撰寫範例
更新些已經已經過時的資訊
- Buffer overflow isn’t on the exam.
- Bonus points will be removed from the OSCP exam as of November 1, 2024.
- OSCP Exam Changes: https://help.offsec.com/hc/en-us/articles/29865898402836-OSCP-Exam-Changes
- OSCP -> OSCP+
- Changes to the OSCP: https://help.offsec.com/hc/en-us/articles/29840452210580-Changes-to-the-OSCP
OSCP類似的練習題目
PWK V3 LIST(PWK/ PEN 200 2023-2024 course)
Lainkusanagi OSCP Like
- PG 是 offsec 提供的題目記得要打
- 詳細(Access-PG-Play)
- PG Practice 沒限制時間 盡量打
- PG Play 每天最多3小時
其他人的考試心得
- https://blog.leonardotamiano.xyz/tech/oscp-technical-guide/
- https://www.reddit.com/r/oscp/comments/1gra6kv/passed_oscp_with_70_points_first_attempt/?rdt=64171
ligolo-ng
- 以下是選擇的原因: 當初在discord上問問題, 考生推薦的, 個人覺得比 ssh 好懂
And once you get that down, I would highly recommend looking into a tool called ligolo-ng when you have the time. It is an exceptional tool for tunneling and traffic redirection. 100% Get the basic of port forwarding, redirection, and tunneling manually (so you know what’s happening in the background). But move onto more automated tools like ligolo in the future. Makes network communication across public/private subnets much MUCH more efficient and reliable.
- 請注意 ligolo-ng 不要用apt install安裝, 會裝到dev版本
- How do you install ligolo-ng
其他補充
SharpHound、BloodHound
Python2
1 | kali 2024-10的更新版本不能直接使用pip install 安裝套件, 需建立虛擬環境 |
https://www.exploit-db.com/ 上有些Python程式是使用Python2執行的
若使用Python3執行一般會回傳「SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(…)?」
可選做法
- 參考此建立Python2環境
- 在建置過程遇到麻煩, 放棄此方法
- 直接修改程式, 改成可以讓Python3執行
- 我的選擇
gobuster or feroxbuster
If you take a look at the output of gobuster for /api, the status code returned is 301, this means that it can be further enumerated for sub directories
Mimikatz
Mimikatz and some other ‘inateractive’ scripts don’t play well with certain reverse shell, and especially don’t play well with WinRM. However I have found that using a more featured reverse shell such as ConPTY is one possible remedy.
If you don’t want to go about getting another shell going (and it likely isn’t worth it in a scenario like this) you can run mimikatz in the following way in powershell:
1 | $results = .\mimikatz.exe lsadump::sam exit; |