Nmap snmp-win32-users NSE Script


This page contains detailed information about how to use the snmp-win32-users 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-win32-users.nse
Script categories: default, auth, safe
Target service / protocol: snmp, udp
Target network port(s): 161
List of CVEs: -

Script Description


The snmp-win32-users.nse script attempts to enumerate Windows user accounts through SNMP

Snmp-win32-users NSE Script Arguments


This is a full list of arguments supported by the snmp-win32-users.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-win32-users --script-args creds.global=value,creds.\[service]=value <target>

Snmp-win32-users NSE Script Example Usage


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

nmap -sU -p 161 --script=snmp-win32-users <target>

Snmp-win32-users NSE Script Example Output


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

| snmp-win32-users:
|   Administrator
|   Guest
|   IUSR_EDUSRV011
|   IWAM_EDUSRV011
|   SUPPORT_388945a0
|   Tomcat
|   db2admin
|   ldaptest
|_  patrik

Snmp-win32-users NSE Script Example XML Output


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

 <elem>Administrator</elem>
 <elem>Guest</elem>
 <elem>IUSR_EDUSRV011</elem>
 <elem>IWAM_EDUSRV011</elem>
 <elem>SUPPORT_388945a0</elem>
 <elem>Tomcat</elem>
 <elem>db2admin</elem>
 <elem>ldaptest</elem>
 <elem>patrik</elem>

Author


  • Patrik Karlsson

References


See Also


Related NSE scripts to the snmp-win32-users.nse script:

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.