發表文章

目前顯示的是有「DC-9」標籤的文章

Proving Grounds Play : DC-9 Walkthrough

圖片
 Proving Grounds Play : DC-9 Walkthrough Foothold : 80 Web 的 Search 發現 SQLi ,使用 sqlmap 讀取 DB 發現網站密碼 網站帳號密碼登入列舉使用者 sqlmap 在另一個資料庫讀取到多組密碼 hydra 測試得到多組憑證,其中一組 SSH 登入後發現某個密碼檔 再次 hydra 得到新的憑證,SSH 登入後獲取第一階段 flag PE : sudo -l 有個特別的檔案,有告知 Usage 用法 參考內容是讀取第一個檔案內容寫入第二個檔案 標準利用在 /etc/passwd 建立使用者後 su 切換該使用者成功提權 Rustscan,└─$ rustscan -a 192.168.151.209 --scripts none --ulimit 5000 | tee rustscan 一開始只有出現 80 Port,多掃了幾次出現了 22 Port snmp check,└─$ sudo nmap -sU -p 161 192.168.151.209 | tee snmp nmap,└─$ sudo nmap -sCV -A -p 22,80 192.168.151.209 | tee nmap 22/tcp open  ssh     OpenSSH 7.9p1 Debian 10+deb10u1 (protocol 2.0) 80/tcp open  http    Apache httpd 2.4.38 ((Debian)) whatweb,└─$ whatweb http://192.168.151.209 | tee whatweb 80 / 80 /robots.txt 80 /index.php 80 /display.php 獲得一堆使用者帳號 80 /search.php 先製作使用者帳號清單 80 /search.php 輸入 monica 顯示出 Monica 相關資訊,網頁是 /results.php 80 /manage.php 需要帳號密碼驗證 測試常用的帳號密碼組合,與網頁上列舉到的使用者帳號密碼一只都沒有用 gobuster 80 /,└─$ gobuster -w ./dirfu...