發表文章

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

Proving Grounds Play : BBSCute Walkthrough

圖片
 Proving Grounds Play : BBSCute Walkthrough Foothold : 80 CuteNews CMS 註冊後使用魔法密碼上傳頭像 php 檔案 執行後獲取 Reverse Shell PE : SUID 發現 hping3,參考 GTFO 後利用提權成功 Rustscan,└─$ rustscan -a 192.168.103.128 --scripts none --ulimit 5000 | tee rustscan snmp check,└─$ sudo nmap -sU -p 161 192.168.103.128 | tee snmp nmap,└─$ sudo nmap -sCV -A -p 22,80,88,110,995 192.168.103.128 | tee nmap 80/tcp  open  http     Apache httpd 2.4.38 ((Debian)) 88/tcp  open  http     nginx 1.14.2 110/tcp open  pop3     Courier pop3d 995/tcp open  ssl/pop3 Courier pop3d whatweb 80,└─$ whatweb -v http://192.168.103.128 | tee whatweb whatweb 88,└─$ whatweb -v http://192.168.103.128:88 | tee whatweb-88 80 / 80 /robots.txt gobuster,└─$ gobuster -w ./dirfuzzing.txt dir -u http://192.168.103.128 -t 150 -x txt,php,git,pdf | tee gobuster  80 /captcha.php 80 /index.php 常用帳號密碼組合沒有過,註冊一個帳號,Captcha 使用剛剛那個 /captcha.php 的值 帳號密碼 aries:Oscp#1234 註冊成功,顯示 CuteNew...

Proving Grounds Play : ICMP Walkthrough

圖片
 Proving Grounds Play : ICMP Walkthrough Foothold : 80 發現 CMS Monitorr 1.7.6m searchsploit 發現  Unauthenticated RCE 48980 直接利用後拿到 Reverse Shell PE : 使用者 fox Home 目錄下有個特別的檔案 reminder 裡面描述了 crypt.php 之後一樣在 Home 目錄的 devel 使用提示讀取到 crypt.php 檔案,並獲得的一組密碼 使用新獲得的憑證登入機器發現可以 sudo 使用 hping3 依據 GTFO 的 sudo 利用說明,讀取 /root/.ssh/id_rsa 檔案內容 使用 id_rsa with root 登入成功 Rustscan,└─$ rustscan -a 192.168.223.218 --scripts none --ulimit 5000 | tee rustscan nmap check,└─$ sudo nmap -sU -p 161 192.168.223.218 | tee snmp             nmap,└─$ sudo nmap -sCV -A -p 22,80 192.168.223.218 | tee nmap 22/tcp open  ssh     OpenSSH 7.9p1 Debian 10+deb10u2 (protocol 2.0) 80/tcp open  http    Apache httpd 2.4.38 ((Debian)) whatweb,└─$ whatweb http://192.168.223.218 | tee whatweb 80 / 轉 /mon 下方顯示 Monitorr 1.7.6m searchsploit 看看└─$ searchsploit Monitorr 發現 RCE 而且還是 Unauthenticated,有這麼容易中大獎.....               ...