# Net Sec Challenge

**Room Link:** <https://tryhackme.com/room/netsecchallenge>

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

```
nmap -sV -sT -O -p 1-10000 $VICTIM
```

<figure><img src="/files/2KJKYvgFy3PpU0U8yHBT" alt=""><figcaption></figcaption></figure>

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

```
nmap -sV -sT -O -p 1-65535 $VICTIM
```

<figure><img src="/files/6QQRKz1JdzayjDJc6TWM" alt=""><figcaption></figcaption></figure>

**How many TCP ports are open?**

6

**What is the flag hidden in the HTTP server header?**

```
curl http://$VICTIM -I
```

<figure><img src="/files/ib1R9Ai5vJqEX0iBtdED" alt=""><figcaption></figcaption></figure>

**What is the flag hidden in the SSH server header?**

```
ssh -v $VICTIM
```

<figure><img src="/files/4axBprxC6jZxaiLZkc9h" alt=""><figcaption></figcaption></figure>

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

```
vsftpd 3.0.3
```

\
**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?**

```
hydra -L users.txt -P /usr/share/wordlists/rockyou.txt ftp://$VICTIM:10021
```

<figure><img src="/files/aFV26NyN0YaOJaTjqWcS" alt=""><figcaption></figcaption></figure>

```
ftp $VICTIM  10021
Name (10.10.129.189:root): quinn
Password: andrea
ftp> get ftp_flag.txt
```

<figure><img src="/files/QFDGPcf4uYwrPq8f3QtN" alt=""><figcaption></figcaption></figure>

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

```
nmap -sN $VICTIM
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jeffgthompsons-organization.gitbook.io/red-team/walkthroughs/tryhackme/net-sec-challenge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
