Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
chkNmapScanCustom.pl
USAGE EXAMPLES:
Alowed ports are NULL:
script -n /usr/bin/nmap -i 192.168.1.1 -p e
More regular usage (allowed port is SSH: 22 and HTTP: 445):
script -n /usr/bin/nmap -i 192.168.1.1 -p 22,445
Add custom parameters (allowed port is SSH: 22 and HTTP: 445) and exclude ports 40000-45000 from scanning:
script -n /usr/bin/nmap -i 192.168.1.1 -p 22,445 -c '--exclude-ports 40000-45000'
Alowed ports are NULL:
script -n /usr/bin/nmap -i 192.168.1.1 -p e
More regular usage (allowed port is SSH: 22 and HTTP: 445):
script -n /usr/bin/nmap -i 192.168.1.1 -p 22,445
Add custom parameters (allowed port is SSH: 22 and HTTP: 445) and exclude ports 40000-45000 from scanning:
script -n /usr/bin/nmap -i 192.168.1.1 -p 22,445 -c '--exclude-ports 40000-45000'
Reviews (1)
bylmiltchev, September 26, 2022
It worked as expected. The output looks a bit weird though. I would suggest that you add a blank line at the end of it.
Maybe add:
print "
";
to line 103 and 140?
Thanks!
Maybe add:
print "
";
to line 103 and 140?
Thanks!