Skip to content

Astronaut -- Proving Grounds (write-up)

Difficulty: Intermediate Box: Astronaut (Proving Grounds) Author: dsec Date: 2025-10-10


TL;DR

Exploited web app with Metasploit (manual exploit failed). Pivoted to stable shell. Privesc via SUID on PHP.


Target info

  • Host: Astronaut (Proving Grounds)

Enumeration

Nmap results

Could have used discovered credentials to SSH, but used Metasploit instead since the manual exploit would not work.


Foothold

Metasploit setup

Meterpreter shell

Meterpreter shell kept dying (unstable), so pivoted to a Python3 reverse shell (#2 from revshells):

Stable shell


Privilege escalation

SUID bit set on PHP:

SUID PHP

Root


Lessons & takeaways

  • Meterpreter shells can be unstable -- always have a backup shell ready
  • Check for SUID on interpreters like PHP, Python, Perl
  • When manual exploits fail, Metasploit is a valid fallback