Task 1

Task 1

Which TCP port is open on the machine?

Answer

6379

Explanation

To know which four-digit port is open, we'll run a port scan.

sudo nmap -T5 -sCV -p0001-9999 -Pn <target_ip>

-T5 is the aggressiveness level. 5 is the highest and 0 is the softest.

-sCV refers to Nmap scripts. 'C' stands for the most commonly used scripts, while 'V' are the scripts that provide service information for each port.

-p0001-9999 refers either which ports nmap will scan.

-Pn is used to disable ping scanning and only scan ports.

scan ports

Last updated