Script Kiddie (Easy)
Script Kiddie Hackthebox Walkthrough
Enumeration
Nmap
We can see this time port 5000 is open and is TCP. Let's navigate it through our browser.
After poking around, we found out from exploit-db where the exploit is msfvenom APK template command injection.
After changing the exploit, and uploaded it, we will get a reverse shell
We found a script laying at pwn user home directory which is scanloser.sh
We can see here the script takes the contents of the hackers file and execute it.
Indeed, the hacker file is writable.
Soon enough, we understand that the cut -d' ' -f3- means it will cut off the first 2 and take the 3rd words depend on the delimiters supply to the command.
We can craft a payload like this and write it to hacker file
Before that call a reverse shell listener
Escalated our privilege to user pwn
Privilege Escalation
sudo -l then we got this
type sudo msfconsole and type /bin/bash
walla root.
Last updated