111k views
5 votes
Which command in nmap is used to specify a port or range of ports to be scanned?

a. -s
b. -P
c. -r
d. -p

User Dawit
by
8.7k points

1 Answer

0 votes

Final answer:

In nmap, the '-p' command is used to specify an individual port or a range of ports to scan. You can use it to scan specific ports or define a range of ports for your network security assessment.

Step-by-step explanation:

The command in nmap to specify a port or range of ports to be scanned is '-p'. For example, if you want to scan port 80, you would use the command 'nmap -p 80'. And if you want to scan a range of ports, say from 1 to 100, you would use 'nmap -p 1-100'. The '-p' option allows for flexible scanning, as you can specify individual ports separated by commas, a range of ports using a hyphen, or a combination of both.

User Netcyrax
by
9.0k points