Writeups

Write ups and Walkthroughs about vulnerable machines

View on GitHub

h4ched

Back to Tryhackme page


pcapng analysis


Recovering machine

Enumeration

Let’s try to get back machine! Let’s enumerate machine using Nmap.

nmap scan

There are 2 open ports i.e FTP and HTTP.

Let’s try to login FTP by bruteforcing password.


Bruteforcing

Let’s try to bruteforce password using hydra.

hydra bruteforcing

So password for user jenny is now changed to 987654321. Let’s login into FTP and upload our reverse shell.

FTP Php reverse shell


Reverse shell

Let’s get reverse shell. Executing that file from HTTP link gives us reverse shell. Let’s try privilege escalation and get root flag. We can switch to user jenny because we already bruteforced password for that account.

root flag

Got root flag!


Source :