Nmap snmp-info NSE Script


This page contains detailed information about how to use the snmp-info NSE script. For list of all NSE scripts, visit the Nmap NSE Library.

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/snmp-info.nse
Script categories: default, version, safe
Target service / protocol: snmp, udp
Target network port(s): 161
List of CVEs: -

Script Description


The snmp-info.nse script extracts basic information from an SNMPv3 GET request. The same probe is used here as in the service version detection scan.

Snmp-info NSE Script Arguments


This is a full list of arguments supported by the snmp-info.nse script:

creds.global

Credentials to be returned by Credentials.getCredentials regardless of the service.

creds.[service]

Credentials to be returned by Credentials.getCredentials for [service]. E.g. creds.http=admin:password

snmp.version

The SNMP protocol version. Use "v1" or 0 for SNMPv1 (default) and "v2c" or 1 for SNMPv2c.

- - -
To use these script arguments, add them to the Nmap command line using the --script-args arg1=value,[arg2=value,..] syntax. For example:

nmap --script=snmp-info --script-args creds.global=value,creds.\[service]=value <target>

Snmp-info NSE Script Example Usage


Here's an example of how to use the snmp-info.nse script:

nmap --script=snmp-info <target>

Snmp-info NSE Script Example Output


Here's a sample output from the snmp-info.nse script:

161/udp open  snmp    udp-response ttl 244   ciscoSystems SNMPv3 server (public)
| snmp-info:
|   enterprise: ciscoSystems
|   engineIDFormat: mac
|   engineIDData: 00:d4:8c:00:11:22
|   snmpEngineBoots: 6
|_  snmpEngineTime: 358d01h13m46s

Snmp-info NSE Script Example XML Output


Here's a sample XML output from the snmp-info.nse script produced by providing the -oX <file> Nmap option:

 <elem key="enterprise">ciscoSystems</elem>
 <elem key="engineIDFormat">mac</elem>
 <elem key="engineIDData">00:d4:8c:b5:32:bc</elem>
 <elem key="snmpEngineBoots">6</elem>
 <elem key="snmpEngineTime">358d01h26m34s</elem>

Author


  • Daniel Miller

References


See Also


Related NSE scripts to the snmp-info.nse script:

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.