發表文章

目前顯示的是有「Proving Grounds Practice」標籤的文章

Proving Grounds Practice : ZenPhoto Walkthrough

圖片
 Proving Grounds Practice : ZenPhoto Walkthrough Foothole (立足點 ) : 80 gobuster 發現 /test 底下有 ZenPhoto CMS,查看 Source Code 確認版本為 1.4.1.4 Searchsploit 發現該版本有 RCE,依據 Exploit 使用後成功拿到 Shell rm 建立 Reverse Shell 成功登入 PE ( 提權 ) : linpeas 發現 dirtycow 髒牛,依據 exploit 利用後提權成功 注意事項 : CMS ZenPhoto Dirtycow Rustscan,└─$ rustscan -a 192.168.171.41 --scripts none --ulimit 5000 | tee rustscan snmp check,└─$ sudo nmap -sU -p 161 192.168.171.41 | tee snmp nmap,└─$ sudo nmap -sCV -A -p 22,23,80,3306 192.168.171.41 | tee nmap    whatweb,└─$ whatweb -v http://192.168.171.41 | tee whatweb    80 / 80 /robots.txt gobuster 80 /,└─$ gobuster -w ./dirfuzzing.txt dir -u http://192.168.171.41 -t 150 -x txt,php,git,pdf | tee gobuster 80 /test,發現 CMS ZENPHOTO 查看 Source Code 發現版本是 1.4.1.4 searchsploit zenphoto 剛好有一個 18030 版本符合且是 RCE 複製內容發現是一個 php 檔案 執行看看,告知 Usage 是 Usage......: php 18083.php <host> <path> 依據範例使用 └─$ php 18083.php 192.168.171.41 /test/ 直接拿到 Shell,且 whoami 有效直接顯示 www-data...

Proving Grounds Practice : CVE-2023-46818 Walkthrough

圖片
  Proving Grounds Practice : CVE-2023-46818 Walkthrough Foothole (立足點 ) : 80 發現 ISPConfig CMS,使用 CVE-2023-46818 告知  CSRF ID not found 改用 Burp Suite 然後在  /admin/language_edit.php 設定 Do intercept --> Response to this request 再 forward 後拿到 Shell 可直接讀取 proof.txt PE ( 提權 ) : 不用 PE Rustscan,└─$ rustscan -a 192.168.121.101 --scripts none --ulimit 5000 | tee rustscan snmp check,└─$ sudo nmap -sU -p 161 192.168.121.101 | tee snmp               nmap,└─$ sudo nmap -sCV -A -p 22,80,8080,8081 192.168.121.101 | tee nmap   whatweb 80 /,發現 ISPCONFIG CMS 預設帳號密碼 admin:admin 登入成功 版本 v3.2.10p1 searchsploit ISPCONFIG Google 搜尋 CVE-2023-46818 參考 :  https://karmainsecurity.com/pocs/CVE-2023-46818.php 存成 cve-2023-46818.php usage 執行後顯示 cURL extension required! 安裝  sudo apt-get install php-curl 執行後告知 CSRF ID not found 改用 Burp 送到 http://127.0.0.1:8080 轉到 /admin/language_edit.php 就是我們要的頁面 設定 Do intercept --> Response to this...