Home page logo
/
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News

Scripts

afp-showmount

Shows AFP shares and ACLs

asn-query

Maps IP addresses to autonomous system (AS) numbers.

banner

A simple banner grabber which connects to an open TCP port and prints out anything sent by the listening service within five seconds.

citrix-enum-apps

Extract published applications from the ICA Browser service

citrix-enum-apps-xml

Extracts a list of applications, acls and settings from Citrix XML service

citrix-enum-servers

Extract a list of Citrix servers from the ICA Browser service

citrix-enum-servers-xml

Extracts the name of the server farm and member severs from Citrix XML service

couchdb-databases

Gets database tables from a CouchDB database For more info about the CouchDB HTTP Api, see http://wiki.apache.org/couchdb/HTTP_database_API

couchdb-stats

Gets database statistics from a CouchDB database For more info about the CouchDB HTTP Api, see http://wiki.apache.org/couchdb/Runtime_Statistics and http://wiki.apache.org/couchdb/HTTP_database_API

daap-get-library

Retrieves a list of music from a DAAP server including the name of the artist, album and songs

daytime

Retrieves the day and time from the UDP Daytime service.

db2-das-info

Connects to the IBM DB2 Administration Server (DAS) on TCP or UDP port 523 and exports the server profile. No authentication is required for this request.

The script will also set the port product and version if a version scan is requested.

db2-info

Attempts to extract information from IBM DB2 Server instances. The script sends a DB2 EXCSAT (exchange server attributes) command packet and parses the response.

dhcp-discover

Sends a DHCPDISCOVER request to a host on UDP port 67. The response come back to UDP port 68, and is read using PCAP (due to the inability for a script to choose its source port at the moment).

dns-service-discovery

Attempts to discover a hosts services using the DNS Service Discovery protocol.

dns-zone-transfer

Requests a zone transfer (AXFR) from a DNS server.

finger

Attempts to retrieve a list of usernames using the finger service.

html-title

Shows the title of the default page of a web server.

http-date

Gets the date from HTTP-like services. Also prints how much the date differs from local time. Local time is the time the HTTP request was sent, so the difference includes at least the duration of one RTT.

http-enum

Enumerates directories used by popular web applications and servers.

http-favicon

Gets the favicon ("favorites icon") from a web page and matches it against a database of the icons of known web applications. If there is a match, the name of the application is printed; otherwise the MD5 hash of the icon data is printed.

http-headers

Performs a GET request for the root folder ("/") of a web server and displays the HTTP headers returned.

http-open-proxy

Checks if an HTTP proxy is open.

http-trace

Sends an HTTP TRACE request and shows header fields that were modified in the response.

http-userdir-enum

Attempts to enumerate valid usernames on webservers running with the mod_userdir module or similar enabled.

ipidseq

Classifies a host's IP ID sequence (e.g. test for Idle Scan suitability).

irc-info

Gathers information from an IRC server.

ldap-rootdse

Retrieves the LDAP root DSA-specific Entry (DSE)

lexmark-config

Retrieve Lexmark S300-S400 Configuration

mongodb-databases

Attempts to get tables from a MongoDB

mongodb-info

Attempts to get build info and server status from a MongoDB

ms-sql-info

Attempts to extract information from Microsoft SQL Server instances.

mysql-databases

Attempts to list all databases on the MySQL server

mysql-info

Connects to a MySQL server and prints information such as the protocol and version numbers, thread ID, status, capabilities, and the password salt.

mysql-users

Attempts to list all users on the MySQL server

mysql-variables

Attempts to show all variables on the MySQL server

nbstat

Attempts to retrieve the target's NetBIOS names and MAC address.

nfs-showmount

Shows NFS exports, like the showmount -e command.

ntp-info

Gets the time and configuration variables from an NTP server. We send two requests: a time request and a "read variables" (opcode 2) control message. Without verbosity, the script shows the time and the value of the version, processor, system, refid, and stratum variables. With verbosity, all variables are shown.

pop3-capabilities

Retrieves POP3 email server capabilities.

robots.txt

Checks for disallowed entries in robots.txt.

rpcinfo

Connects to portmapper and fetches a list of all registered programs.

smb-enum-domains

Attempts to enumerate domains on a system, along with their policies. This generally requires credentials, except against Windows 2000. In addition to the actual domain, the "Builtin" domain is generally displayed. Windows returns this in the list of domains, but its policies don't appear to be used anywhere.

smb-enum-groups

Obtains a list of groups from the remote Windows system, as well as a list of the group's users. This works similarly to enum.exe with the /G switch.

smb-enum-processes

Pulls a list of processes from the remote server over SMB. This will determine all running processes, their process IDs, and their parent processes. It is done by querying the remote registry service, which is disabled by default on Vista; on all other Windows versions, it requires Administrator privileges.

smb-enum-sessions

Enumerates the users logged into a system either locally or through an SMB share. The local users can be logged on either physically on the machine, or through a terminal services session. Connections to a SMB share are, for example, people connected to fileshares or making RPC calls. Nmap's connection will also show up, and is generally identified by the one that connected "0 seconds ago".

smb-enum-shares

Attempts to list shares using the srvsvc.NetShareEnumAll MSRPC function and retrieve more information about them using srvsvc.NetShareGetInfo. If access to those functions is denied, a list of common share names are checked.

smb-enum-users

Attempts to enumerate the users on a remote Windows system, with as much information as possible, through two different techniques (both over MSRPC, which uses port 445 or 139; see smb.lua). The goal of this script is to discover all user accounts that exist on a remote system. This can be helpful for administration, by seeing who has an account on a server, or for penetration testing or network footprinting, by determining which accounts exist on a system.

smb-os-discovery

Attempts to determine the operating system, computer name, domain, and current time over the SMB protocol (ports 445 or 139 -- for more information, see smb.lua). This is done by starting a session with the anonymous account (or with a proper user account, if one is given -- likely doesn't make a difference); in response to a session starting, the server will send back all this information.

smb-security-mode

Returns information about the SMB security level determined by SMB.

smb-server-stats

Attempts to grab the server's statistics over SMB and MSRPC, which uses TCP ports 445 or 139.

smb-system-info

Pulls back information about the remote system from the registry. Getting all of the information requires an administrative account, although a user account will still get a lot of it. Guest probably won't get any, nor will anonymous. This goes for all operating systems, including Windows 2000.

smtp-commands

Attempts to use EHLO and HELP to gather the Extended commands supported by an SMTP server.

smtp-open-relay

Attempts to relay mail by issuing a predefined combination of SMTP commands. The goal of this script is to tell if a SMTP server is vulnerable to mail relaying.

sniffer-detect

Checks if a target on a local Ethernet has its network card in promiscuous mode.

snmp-netstat

Attempts to query SNMP for a netstat like output

snmp-processes

Attempts to enumerate running processes through SNMP

snmp-sysdescr

Attempts to extract system information from an SNMP version 1 service.

snmp-win32-services

Attempts to enumerate Windows Services through SNMP

snmp-win32-shares

Attempts to enumerate Windows Shares through SNMP

snmp-win32-software

Attempts to enumerate installed software through SNMP

snmp-win32-users

Attempts to enumerate User Accounts through SNMP

socks-open-proxy

Checks if an open socks proxy is running on the target.

ssl-cert

Retrieves a server's SSL certificate. The amount of information printed about the certificate depends on the verbosity level. With no extra verbosity, the script prints the validity period and the commonName, organizationName, stateOrProvinceName, and countryName of the subject.

ssl-enum-ciphers

This script repeatedly initiates SSL/TLS connections, each time removing whichever cipher or compressor was chosen by the server when making the previous connection. The end result is a list of all the ciphers and compressors that a server accepts.

whois

Queries the WHOIS services of Regional Internet Registries (RIR) and attempts to retrieve information about the IP Address Assignment which contains the Target IP Address.

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]