From 1f6218599f02f0ffbc681d5cfa30e02561566f63 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 28 Jan 2011 18:06:08 +0000 Subject: [PATCH] Add a short section on --script-help to refguide.xml. --- docs/nmap.1 | 16 +++++++++++++--- docs/refguide.xml | 21 +++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/docs/nmap.1 b/docs/nmap.1 index 1e05fc237..bef94f7bf 100644 --- a/docs/nmap.1 +++ b/docs/nmap.1 @@ -1,13 +1,13 @@ '\" t .\" Title: nmap .\" Author: [see the "Author" section] -.\" Generator: DocBook XSL Stylesheets v1.75.2 -.\" Date: 01/21/2011 +.\" Generator: DocBook XSL Stylesheets v1.74.3 +.\" Date: 01/28/2011 .\" Manual: Nmap Reference Guide .\" Source: Nmap .\" Language: English .\" -.TH "NMAP" "1" "01/21/2011" "Nmap" "Nmap Reference Guide" +.TH "NMAP" "1" "01/28/2011" "Nmap" "Nmap Reference Guide" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- @@ -1323,6 +1323,16 @@ pairs\&. Names and values may be strings not containing whitespace or the charac The online NSE Documentation Portal at \m[blue]\fB\%http://nmap.org/nsedoc/\fR\m[] lists the arguments that each script accepts\&. +.PP +\fB\-\-script\-help \fR\fB\fIfilename\fR\fR\fB|\fR\fB\fIcategory\fR\fR\fB|\fR\fB\fIdirectory\fR\fR\fB|\fR\fB\fIexpression\fR\fR\fB|all\fR\fB[,\&.\&.\&.]\fR .\" --script-help +.RS 4 +Shows help about scripts\&. For each script matching the given specification, Nmap prints the script name, its categories, and its description\&. The specifications are the same as those accepted by +\fB\-\-script\fR; so for example if you want help about the +ftp\-anon +script, you would run +\fBnmap \-\-script\-help ftp\-anon\fR\&. In addition to getting help for individual scripts, you can use this as a preview of what scripts will be run for a specification, for example with +\fBnmap \-\-script\-help default\fR\&. +.RE .RE .PP \fB\-\-script\-trace\fR .\" --script-trace diff --git a/docs/refguide.xml b/docs/refguide.xml index a9090e632..6b7dd891b 100644 --- a/docs/refguide.xml +++ b/docs/refguide.xml @@ -2392,6 +2392,27 @@ lists the arguments that each script accepts. + + + + + + + + + Shows help about scripts. For each script matching the given + specification, Nmap prints the script name, its categories, and its + description. The specifications are the same as those accepted by + ; so for example if you want help about + the ftp-anon script, you would run + nmap --script-help ftp-anon. In addition to getting + help for individual scripts, you can use this as a preview of what + scripts will be run for a specification, for example with nmap + --script-help default. + + + +