Nmap snmp-win32-software NSE Script


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

Script Description


The snmp-win32-software.nse script attempts to enumerate installed software through SNMP.

Snmp-win32-software NSE Script Arguments


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

Snmp-win32-software NSE Script Example Usage


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

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

Snmp-win32-software NSE Script Example Output


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

| snmp-win32-software:
|   Apache Tomcat 5.5 (remove only); 2007-09-15T15:13:18
|   Microsoft Internationalized Domain Names Mitigation APIs; 2007-09-15T15:13:18
|   Security Update for Windows Media Player (KB911564); 2007-09-15T15:13:18
|   Security Update for Windows Server 2003 (KB924667-v2); 2007-09-15T15:13:18
|   Security Update for Windows Media Player 6.4 (KB925398); 2007-09-15T15:13:18
|   Security Update for Windows Server 2003 (KB925902); 2007-09-15T15:13:18
|_  Windows Internet Explorer 7; 2007-09-15T15:13:18

Snmp-win32-software NSE Script Example XML Output


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

 <table>
   <elem key="name">Apache Tomcat 5.5 (remove only)</elem>
   <elem key="install_date">2007-09-15T15:13:18</elem>
 </table>
 <table>
   <elem key="name">Microsoft Internationalized Domain Names Mitigation APIs</elem>
   <elem key="install_date">2007-09-15T15:13:18</elem>
 </table>
 <table>
   <elem key="name">Security Update for Windows Media Player (KB911564)</elem>
   <elem key="install_date">2007-09-15T15:13:18</elem>
 </table>
 <table>
   <elem key="name">Security Update for Windows Server 2003 (KB924667-v2)</elem>
   <elem key="install_date">2007-09-15T15:13:18</elem>
 </table>
 <table>
   <elem key="name">Security Update for Windows Media Player 6.4 (KB925398)</elem>
   <elem key="install_date">2007-09-15T15:13:18</elem>
 </table>
 <table>
   <elem key="name">Security Update for Windows Server 2003 (KB925902)</elem>
   <elem key="install_date">2007-09-15T15:13:18</elem>
 </table>
 <table>
   <elem key="name">Windows Internet Explorer 7</elem>
   <elem key="install_date">2007-09-15T15:13:18</elem>
 </table>

Author


  • Patrik Karlsson

References


See Also


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

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.