diff --git a/docs/scripting.xml b/docs/scripting.xml index 92b112009..25e796a14 100644 --- a/docs/scripting.xml +++ b/docs/scripting.xml @@ -146,8 +146,8 @@ The reference manual is also and produce results below the port table. shows a typical script scan. Examples of service scripts producing output are: - SSHv1-support.nse, saying that SSH-1 is supported; - and showHTMLTitle.nse, + sshv1.nse, saying that SSH-1 is supported; + and html-title.nse, which simply grabs the title of the root path of any web servers found. A sample host script is ripeQuery.nse, which looks up and reports target IP ownership @@ -164,10 +164,10 @@ Starting Nmap ( http://nmap.org ) Interesting ports on localhost (127.0.0.1): PORT STATE SERVICE 22/tcp open ssh -|_ SSHv1-support: Server supports SSHv1 +|_ sshv1: Server supports SSHv1 23/tcp closed telnet 80/tcp open http -|_ showHTMLTitle: Test Page for Apache Installation +|_ html-title: Test Page for Apache Installation 113/tcp closed auth Host script results: @@ -224,8 +224,8 @@ Nmap done: 1 IP address (1 host up) scanned in 0.91 seconds features) we cannot guarantee that they won't ever cause adverse reactions. Most of these perform general network discovery. Examples are - SSH-hostkey.nse (gets an SSH host key) and - showHTMLTitle.nse (grabs the title from a + ssh-hostkey.nse (gets an SSH host key) and + html-title.nse (grabs the title from a web page). @@ -1222,7 +1222,7 @@ socket:close() threads in NSE mutexes in NSE - Each thread made for a script (e.g. anonFTP.nse) will yield to other + Each thread made for a script (e.g. ftp-anon.nse) will yield to other scripts whenever it makes a call on network objects (sending/receiving data). Some scripts need finer control over threads' execution. An example is the whois.nse script which queries @@ -1475,7 +1475,7 @@ try(socket:send(result)) The description field should contain a sentence or two describing what the script does. If anything about the script results might confuse or mislead users, and you can't eliminate the issue by improving the script or results text, it should be documented in the description string. -showOwner.nse +identd-owners.nse description” script variable description = [[ @@ -1758,7 +1758,7 @@ local localip, localport = try(client_service:get_info()) combination of documentation comments and NSE variables. - + An NSEDoc comment for a script @@ -1773,7 +1773,7 @@ use by Nmap. --- -- @usage --- nmap --script ASN.nse [--script-args dns=<DNS server>] <target> +-- nmap --script asn-query.nse [--script-args dns=<DNS server>] <target> -- @args dns The address of a recursive nameserver to use (optional). -- @output -- Host script results: