Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

With nmap, I want to skip the scan on port 80. I'm sure this is in the man somewhere, but I haven't found it so far. My command is simple:

nmap 24.0.0.1\24

So this will scan ports in the 24.0.0.x range; I just need to avoid port 80 (for stealth reasons).

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You can use comma as a separator to separate two different ranges of port. For ex. in your case you can give the following

$ nmap 24.0.0.0/24 -p 1-79,81-65535

Hence this way we omitted port scanning on port 80.

share|improve this answer
1  
Nmap scans 1000 ports by default. This changes it to scan 65534 ports. To get the same ports as default without 80, try this: nmap 24.0.0.0/24 -p -79,81- --top-ports 999 –  bonsaiviking Apr 16 '12 at 20:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.