Skip to content

Net Sec Challenge Banner

Net Sec Challenge Logo

Net Sec Challenge

This guide contains the answer and steps necessary to get to them for the Net Sec Challenge room.

Challenge Questions

  1. What is the highest port number being open less than 10,000?

For this we can use nmap and specify the port range we want to use (1-10000).

sudo nmap -sS 10.10.223.240 -p1-10000 -sV

Nmap

Click for answer8080

  1. There is an open port outside the common 1000 ports; it is above 10,000. What is it?

For this we can use a similar command, but this time we use the remaining ports as our range.

sudo nmap -sS 10.10.223.240 -p10000-65535

Nmap 2

Click for answer10021

  1. How many TCP ports are open?

Adding both answers together we get our total number of open TCP ports.

Click for answer6

  1. What is the flag hidden in the HTTP server header?

To look at the server header information we can use telnet. We should also specify the required port.

telnet 10.10.223.240 80

Http Flag

Click for answerTHM{web_server_25352}

  1. What is the flag hidden in the SSH server header?

To find this information we can again use telnet.

telnet 10.10.223.240 22

Ssh Flag

Click for answerTHM{946219583339}

  1. We have an FTP server listening on a nonstandard port. What is the version of the FTP server?

The ftp service isn't listed on the first nmap scan, so we should perform the second one with version info enabled (this was disabled in our scan in question 3).

sudo nmap -sS 10.10.223.240 -p10021 -sV

Nmap Ftp

Click for answervsftpd 3.0.3

  1. We learned two usernames using social engineering: eddie and quinn. What is the flag hidden in one of these two account files and accessible via FTP?

We first create a file touch usernames.txt and add both usernames to it. Then we can craft our Hydra command:

hydra -L usernames.txt -P /usr/share/wordlists/rockyou.txt ftp://10.10.223.240:10021 -t 4

Hydra

This gives us passwords for both accounts. Looking through the files on the FTP server, we find the flag on the account for quinn.

ftp quinn@10.10.223.240 -p 10021

Ftp Flag

Click for answerTHM{321452667098}

  1. Browsing to http://MACHINE_IP:8080 displays a small challenge that will give you a flag once you solve it. What is the flag?

Visiting the weppage, we see we need to scan the machine with as little activity as possible.

Nmap Challenge Page

After several tries (also using the Attackbox) the most effective scan type was the NULL scann -sN.

sudo nmap -sN 10.10.223.240

Nmap Challenge

Nmap Challenge Flag

Click for answerTHM{f7443f99}