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

File banner

Script types: portrule
Categories: discovery, safe
Download: https://svn.nmap.org/nmap/scripts/banner.nse

User Summary

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

The banner will be truncated to fit into a single line, but an extra line may be printed for every increase in the level of verbosity requested on the command line.

Script Arguments

banner.timeout

How long to wait for a banner. Default: 5s

banner.ports

Which ports to grab. Same syntax as -p option. Use "common" to only grab common text-protocol banners. Default: all ports.

Example Usage

nmap -sV --script=banner <target>

Script Output

21/tcp open  ftp
|_ banner: 220 FTP version 1.0\x0D\x0A

Requires


Author:

  • jah

License: Same as Nmap--See https://nmap.org/book/man-legal.html

action

action (host, port)

Grabs a banner and outputs it nicely formatted.

Parameters

  • host:
  • port:

portrule

portrule (host, port)

Script is executed for any TCP port.

Parameters

  • host:
  • port:

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 ]