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.retries, snmp.timeout, 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:

  • Patrik Karlsson

License: Same as Nmap--See https://nmap.org/book/man-legal.html

OSZAR »