-
Notifications
You must be signed in to change notification settings - Fork 1
Writeup: Advent of Cyber 3 Day 10
Link: Advent Of Cyber 3 on TryHackMe
Help McSkidy and run nmap -sT MACHINE_IP
. How many ports are open between 1 and 100?
Answer: 2
What is the smallest port number that is open?
Answer: 22
What is the service related to the highest port number you found in the first question?
Answer: http
Now run nmap -sS MACHINE_IP
. Did you get the same results? (Y/N)
Answer: Y
If you want Nmap to detect the version info of the services installed, you can use nmap -sV MACHINE_IP
. What is the version number of the web server?
Answer: Apache httpd 2.4.4
By checking the vulnerabilities related to the installed web server, you learn that there is a critical vulnerability that allows path traversal and remote code execution. Now you can tell McSkidy that Grinch Enterprises used this vulnerability. What is the CVE number of the vulnerability that was solved in version 2.4.51?
Answer: CVE-2021-42013
You are putting the pieces together and have a good idea of how your web server was exploited. McSkidy is suspicious that the attacker might have installed a backdoor. She asks you to check if there is some service listening on an uncommon port, i.e. outside the 1000 common ports that Nmap scans by default. She explains that adding -p1-65535 or -p- will scan all 65,535 TCP ports instead of only scanning the 1000 most common ports. What is the port number that appeared in the results now?
Answer: 20212
What is the name of the program listening on the newly discovered port?
Command: nmap -sV 10.10.185.85 -p 20212 -T4 -vv
Answer: telnetd
If you would like to learn more about the topics covered in today’s tasks, we recommend checking out the Network Security module.
Answer: No answer needed