HackTheBoxEasy

HackTheBox โ€” Bashed

Exploiting a web-accessible phpbash shell for initial access, then escalating via sudo to scriptmanager and abusing a cron-run Python script to land root.

๐Ÿ“… 2025-04-10ยท
#Linux#Web#PHP#Cron#sudo

Overview

Bashed is a Linux machine on HackTheBox rated Easy. The attack path goes:

  1. Enumerate the web server to find a PHPBash web shell
  2. Use the shell to get a reverse connection
  3. Escalate to scriptmanager via sudo
  4. Abuse a cron job running a Python script as root