File snmp-netstat
Script types:
portrule
Categories:
default, discovery, safe
Download: http://nmap.org/svn/scripts/snmp-netstat.nse
User Summary
Attempts to query SNMP for a netstat like output. The script can be used to identify and automatically add new targets to the scan by supplying the newtargets script argument.
Script Arguments
max-newtargets, newtargets
See the documentation for the target library.snmpcommunity
See the documentation for the snmp library.Example Usage
nmap -sV -sC <target>
Script Output
| snmp-netstat: | TCP 0.0.0.0:21 0.0.0.0:2256 | TCP 0.0.0.0:80 0.0.0.0:8218 | TCP 0.0.0.0:135 0.0.0.0:53285 | TCP 0.0.0.0:389 0.0.0.0:38990 | TCP 0.0.0.0:445 0.0.0.0:49158 | TCP 127.0.0.1:389 127.0.0.1:1045 | TCP 127.0.0.1:389 127.0.0.1:1048 | UDP 192.168.56.3:137 *:* | UDP 192.168.56.3:138 *:* | UDP 192.168.56.3:389 *:* |_ UDP 192.168.56.3:464 *:*
Requires
Author: Patrik Karlsson
License: Same as Nmap--See http://nmap.org/book/man-legal.html


