Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos network security services platform







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

asn-query.nse

Maps IP addresses to autonomous system (AS) numbers.

auth-owners.nse

Attempts to find the owner of an open TCP port by querying an auth (identd - port 113) daemon which must also be open on the target system.

auth-spoof.nse

Checks for an identd (auth) server which is spoofing its replies.

banner.nse

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

daytime.nse

Retrieves the day and time from the UDP Daytime service.

dns-random-srcport.nse

Checks a DNS server for the predictable-port recursion vulnerability. Predictable source ports can make a DNS server vulnerable to cache poisoning attacks (see CVE-2008-1447).

dns-random-txid.nse

Checks a DNS server for the predictable-TXID DNS recursion vulnerability. Predictable TXID values can make a DNS server vulnerable to cache poisoning attacks (see CVE-2008-1447).

dns-recursion.nse

Checks if a DNS server allows queries for third-party names.

dns-zone-transfer.nse

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

finger.nse

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

ftp-anon.nse

Checks if an FTP server allows anonymous logins.

ftp-bounce.nse

Checks to see if an FTP server allows port scanning using the FTP bounce method.

ftp-brute.nse

Tries to get FTP login credentials by guessing usernames and passwords.

html-title.nse

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

http-auth.nse

Retrieves the authentication scheme and realm of a web service that requires authentication.

http-iis-webdav-vuln.nse

Checks for a vulnerability in IIS 5.1/6.0 that allows arbitrary users to access secured WebDAV folders by searching for a password-protected folder and attempting to access it. This vulnerability was patched in Microsoft Security Bulletin MS09-020 <http://www.microsoft.com/technet/security/bulletin/ms09-020.mspx>.

http-open-proxy.nse

Checks if an HTTP proxy is open.

http-passwd.nse

Checks if a web server is vulnerable to directory traversal by attempting to retrieve /etc/passwd using various traversal methods such as requesting ../../../../etc/passwd.

http-trace.nse

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

iax2-version.nse

Detects the UDP IAX2 service.

imap-capabilities.nse

Retrieves IMAP email server capabilities.

irc-info.nse

Gathers information from an IRC server.

ms-sql-info.nse

Attempts to extract information from Microsoft SQL Server instances.

mysql-info.nse

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

nbstat.nse

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

p2p-conficker.nse

Check if a host is infected with Conficker.C or higher, based on Conficker's peer to peer communication.

pop3-brute.nse

Tries to log into a POP3 account by guessing usernames and passwords.

pop3-capabilities.nse

Retrieves POP3 email server capabilities.

pptp-version.nse

Attempts to extract system information from the point-to-point tunneling protocol (PPTP) service.

realvnc-auth-bypass.nse

Checks if a VNC server is vulnerable to the RealVNC authentication bypass (CVE-2006-2369).

robots.txt.nse

Checks for disallowed entries in robots.txt.

rpcinfo.nse

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

skypev2-version.nse

Detects the Skype version 2 service.

smb-brute.nse

Attempts to guess username/password combinations over SMB, storing discovered combinations for use in other scripts. Every attempt will be made to get a valid list of users and to verify each username before actually using them. When a username is discovered, besides being printed, it is also saved in the Nmap registry so other Nmap scripts can use it. That means that if you're going to run smb-brute.nse, you should run other smb scripts you want. This checks passwords in a case-insensitive way, determining case after a password is found, for Windows versions before Vista.

smb-check-vulns.nse

Check for vulnerabilities:

  • MS08-067, a Windows RPC vulnerability
  • Conficker, an infection by the Conficker worm
  • Unnamed regsvc DoS, a denial-of-service vulnerability I accidentically found in Windows 2000

smb-enum-domains.nse

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-processes.nse

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 privilges.

smb-enum-sessions.nse

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.nse

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.nse

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.nse

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-pwdump.nse

This script implements the functionality found in pwdump.exe, written by the Foofus group. Essentially, it works by using pwdump6's modules (servpw.exe and lsremora.dll) to dump the password hashes for a remote machine. This currently works against Windows 2000 and Windows 2003.

smb-security-mode.nse

Returns information about the SMB security level determined by SMB.

smb-server-stats.nse

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

smb-system-info.nse

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.nse

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

smtp-open-relay.nse

Checks if an SMTP server is an open relay.

smtp-strangeport.nse

Checks if SMTP is running on a non-standard port.

sniffer-detect.nse

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

snmp-brute.nse

Attempts to find an SNMP community string by brute force guessing.

snmp-sysdescr.nse

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

socks-open-proxy.nse

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

sql-injection.nse

Spiders an HTTP server looking for URLs containing queries vulnerable to an SQL injection attack.

ssh-hostkey.nse

Shows SSH hostkeys.

sshv1.nse

Checks if an SSH server supports the obsolete and less secure SSH Protocol Version 1.

sslv2.nse

Determines whether the server supports obsolete and less secure SSL-v2, and discovers which ciphers it supports.

telnet-brute.nse

Tries to get Telnet login credentials by guessing usernames and passwords.

upnp-info.nse

Attempts to extract system information from the UPnP service.

whois.nse

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.

Modules

base64

Base64 encoding and decoding. Follows RFC 4648.

bin

Pack and unpack binary data.

bit

Bitwise operations on integers.

comm

Common communication functions for network discovery tasks like banner grabbing and data exchange.

datafiles

Read and parse some of Nmap's data files: nmap-protocols, nmap-rpc, and nmap-services.

dns

Simple DNS library supporting packet creation, encoding, decoding, and querying.

http

Client-side HTTP library.

imap

IMAP functions.

ipOps

Utility functions for manipulating and comparing IP addresses.

listop

Functional-style list operations.

match

Buffered network I/O helper functions.

msrpc

By making heavy use of the 'smb' library, this library will call various MSRPC functions. The functions used here can be accessed over TCP ports 445 and 139, with an established session. A NULL session (the default) will work for some functions and operating systems (or configurations), but not for others.

msrpcperformance

This module is designed to parse the PERF_DATA_BLOCK structure, which is stored in the registry under HKEY_PERFORMANCE_DATA. By querying this structure, you can get a whole lot of information about what's going on.

msrpctypes

This module was written to marshall parameters for Microsoft RPC (MSRPC) calls. The values passed in and out are based on structs defined by the protocol, and documented by Samba developers. For detailed breakdowns of the types, take a look at Samba 4.0's .idl files.

netbios

Creates and parses NetBIOS traffic. The primary use for this is to send NetBIOS name requests.

nmap

Interface with Nmap internals.

nsedebug

Converts an arbitrary data type into a string. Will recursively convert tables. This can be very useful for debugging.

openssl

OpenSSL bindings.

packet

Facilities for manipulating raw packets.

pcre

Perl Compatible Regular Expressions.

pop3

POP3 functions.

shortport

Functions for building short portrules.

smb

Implements functionality related to Server Message Block (SMB, also known as CIFS) traffic, which is a Windows protocol.

smbauth

This module takes care of the authentication used in SMB (LM, NTLM, LMv2, NTLMv2). There is a lot to this functionality, so if you're interested in how it works, read on.

snmp

SNMP functions.

ssh1

Functions for the SSH-1 protocol.

ssh2

Functions for the SSH-2 protocol.

stdnse

Standard Nmap Scripting Engine functions.

strbuf

String buffer facilities.

tab

Arrange output into tables.

unpwdb

Username/password database library.

url

URI parsing, composition, and relative URL resolution.



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 ]