┌──(root㉿kakeru)-[~/tmp] └─# gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt -u http://192.168.114.232/ -x php,txt,jpg,js,zip,bak =============================================================== Gobuster v3.6 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Url: http://192.168.114.232/ [+] Method: GET [+] Threads: 10 [+] Wordlist: /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt [+] Negative Status codes: 404 [+] User Agent: gobuster/3.6 [+] Extensions: php,txt,jpg,js,zip,bak [+] Timeout: 10s =============================================================== Starting gobuster in directory enumeration mode =============================================================== /.php (Status: 403) [Size: 280] /secret.php (Status: 403) [Size: 206]
1 2 3
┌──(root㉿kakeru)-[~/tmp] └─# curl 192.168.114.232/secret.php <!DOCTYPE html><html><head><title>403 Forbidden</title></head><body><h1>403 Forbidden</h1><p>You don't have permission to access this resource.</p> Maybe I only trust requests from localhost? </body></html>
The programs included withthe Debian GNU/Linux system are free software; the exact distribution terms for each program are described inthe individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, tothe extent permitted by applicable law. Last login: Mon Jun 211:29:062025from192.168.114.11 guayu@Kakeru2:~$ ls id ls: cannot access 'id': No such fileor directory guayu@Kakeru2:~$ id uid=1000(guayu) gid=1000(guayu) groups=1000(guayu)
提权
sudo -l 发现可以使用groff 指令 这个是一个格式化手写文档的工具
1 2 3 4 5 6
guayu@Kakeru2:~$ sudo -l MatchingDefaults entries for guayu on Kakeru2: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User guayu may run the following commands on Kakeru2: (ALL) NOPASSWD: /usr/bin/groff *