Proving Grounds Play : Tre Walkthrough
Proving Grounds Play : Tre Walkthrough Foothold : 預設字典檔 " /usr/share/dirb/wordlists/common.txt " 沒有掃到利用的路徑 改用大一點的字典檔 " /usr/share/dirb/wordlists/big.txt " 掃到 mantisbt & adminer.php /mantisbt 繼續往下掃發現一個文字檔記錄著 MySQL 連線相關資訊 透過找到的 MySQL 連線資訊利用 /adminer.php 登入查到帳號密碼 後續利用 hydra 測試找到的一組憑證有效,SSH 登入 PE : [CVE-2021-3156] sudo Baron Samedit 標準利用成為 Root sudo -l 有 shutdown 權限,以及可以對 /usr/bin/check-system 檔案有修改權限 利用修改權限執行 SUID 的利用後提權成功 注意事項 : 找不到利用點,且是 Web 時記得換大一點的字典檔 sudo -l 提供的指令要思考可以如何整合應用 第一步 Rustscan,└─$ rustscan -a 192.168.224.84 --scripts none --ulimit 5000 | tee rustscan 僅有 3 個 Port,22, 80, 8082 snmp check,└─$ sudo nmap -sU -p 161 192.168.224.84 | tee snmp nmap check,└─$ sudo nmap -sCV -A -p 22,80,8082 192.168.224.84 | tee nmap 80/tcp open http Apache httpd 2.4.38 ((Debian)) 8082/tcp open http nginx 1.14.2 whatweb 80 / 80 /robots.txt HTTP Header Page Source gobuster 發現 /cms、/mantisbt、/adminer.php、etc... 80 /cms 80 /cms/cach...