Simple CTF TryHackMe
1) Intro
2) How many services are running under port 1000?
For this we can use simple nmap command which is nmap <IP-TARGET>
and as the question asked, we can see there are 2 services are running under port 1000.
3) What is running on the higher port?
ssh
4) What's the CVE you're using against the application?
we will be using command gobuster dir -u <URL> -w <wordlist> to see if there is any directory we can access.
5) To what kind of vulnerability is the application vulnerable?
sqli
6) What's the password?
to know what password is being used, we need to download the exploit file first
/simple/, using rockyou.txt as candidate passwords.7) Where can you login with the details obtained?
ssh
8) What's the user flag?
Here we need to SSH into the mitch account at the target ip address9) Is there any other user in the home directory? What's its name?
First we identify our working directory and go to home directory to see if there is any other user aside from mitch
10) What can you leverage to spawn a privileged shell?
for this we can user sudo -l to see what our user can do.
here we can see that user mitch can execute the vim command without password.
11) What's the root flag?
Comments
Post a Comment