Nmap Port Specification and Scan Order

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

[rps-include post=6632]

Port specification is important part of the scan. We should set port scope carefully because wrong scope will make our result vulnerable to false and long for time.

Specify Ports

As we know tcp and udp protocols have port numbers from 0 to 65535. There are default values for some scans but we can specify the target ports with this parameter.

  • -p will specify ports 22, 80, 443 for remote

  • -p will specify port range between 0 and 100

Exclude Ports

We can exclude ports too. Specified ports will be excluded.

  • –exclude-ports will remove ports between 20 and 30

Limited/Fast Port Scan

Nmap normally scans for top used 1000 ports but if we are in hurry we can limit it to 100 ports with option -F

  • Scan top 100 ports with -F

Don’t Randomize Ports

Nmap normally in randomized order. If we want to scan orderly we can use -r

  • Scan orderly with -r

Scan Top Ports

We can provide how much of the most popular ports will be scanned. Nmap provides most used ports database by the way.

  • Scan will take on most popular 5 ports with –top-ports option

[rps-include post=6632]

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM
LEARN MORE  Tcp and Udp Port List, Names and Usage Frequency

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)