Script snmp-netstat
Script types:
portrule
Categories:
default, discovery, safe
Download: https://svn.nmap.org/nmap/scripts/snmp-netstat.nse
Script 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.
- creds.[service], creds.global
See the documentation for the creds library.
- snmp.version
See the documentation for the snmp library.
Example Usage
nmap -sU -p 161 --script=snmp-netstat <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:
License: Same as Nmap--See https://nmap.org/book/man-legal.html