From b03230218de12930f1a72e9449f101dced476452 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 22 Oct 2008 23:31:47 +0000 Subject: [PATCH] Commit a few NSE documenation changes I made while testing the new markup parser; they work now. --- nselib/bin.luadoc | 44 +++++++++++++++++------------------ nselib/openssl.luadoc | 2 ++ scripts/SQLInject.nse | 8 +++---- scripts/smb-security-mode.nse | 6 ++--- scripts/whois.nse | 2 +- 5 files changed, 32 insertions(+), 30 deletions(-) diff --git a/nselib/bin.luadoc b/nselib/bin.luadoc index 55b48fa38..6a84bfb00 100644 --- a/nselib/bin.luadoc +++ b/nselib/bin.luadoc @@ -12,28 +12,28 @@ -- The Binlib functions take a format string to encode and decode binary -- data. Packing and unpacking are controlled by the following operator -- characters:\n --- H: hex string\n --- B: bit string\n --- x: null byte\n --- z: zero-terminated string\n --- p: string preceded by 1-byte integer length\n --- P: string preceded by 2-byte integer length\n --- a: string preceded by 4-byte integer length\n --- A: string\n --- f: float\n --- d: double\n --- n: Lua number\n --- c: char (1-byte integer)\n --- C: byte = unsigned char (1-byte unsigned integer)\n --- s: short (2-byte integer)\n --- S: unsigned short (2-byte unsigned integer)\n --- i: int (4-byte integer)\n --- I: unsigned int (4-byte unsigned integer)\n --- l: long (8-byte integer)\n --- L: unsigned long (8-byte unsigned integer)\n --- <: little endian modifier\n --- >: big endian modifier\n --- =: native endian modifier +-- * H: hex string +-- * B: bit string +-- * x: null byte +-- * z: zero-terminated string +-- * p: string preceded by 1-byte integer length +-- * P: string preceded by 2-byte integer length +-- * a: string preceded by 4-byte integer length +-- * A: string +-- * f: float +-- * d: double +-- * n: Lua number +-- * c: char (1-byte integer) +-- * C: byte = unsigned char (1-byte unsigned integer) +-- * s: short (2-byte integer) +-- * S: unsigned short (2-byte unsigned integer) +-- * i: int (4-byte integer) +-- * I: unsigned int (4-byte unsigned integer) +-- * l: long (8-byte integer) +-- * L: unsigned long (8-byte unsigned integer) +-- * <: little endian modifier +-- * >: big endian modifier +-- * =: native endian modifier -- \n\n -- Note that the endian operators work as modifiers to all the -- characters following them in the format string. diff --git a/nselib/openssl.luadoc b/nselib/openssl.luadoc index 7d5c7e730..4075ceba7 100644 --- a/nselib/openssl.luadoc +++ b/nselib/openssl.luadoc @@ -7,6 +7,7 @@ -- OpenSSL support was enabled at compile time. Scripts using the module should -- be made to fail gracefully using code like the following: -- \n\n +-- -- if not pcall(require, "openssl") then\n -- action = function(host, port)\n -- stdnse.print_debug(2, "Skipping \"%s\" because OpenSSL is missing.", id)\n @@ -15,6 +16,7 @@ -- action = action or function(host, port)\n -- ...\n -- end +-- -- @author Sven Klemm -- @copyright See nmaps COPYING for licence diff --git a/scripts/SQLInject.nse b/scripts/SQLInject.nse index aa85f8a47..7be871a99 100644 --- a/scripts/SQLInject.nse +++ b/scripts/SQLInject.nse @@ -14,10 +14,10 @@ Both meta and HTTP redirects are supported. It is not advisable to run this against unknown hosts. \n\n NOTES\n -* We may not have access to the servers true hostname. - This means we cannot access virtually hosted sites and - cannot follow absolute links when the hostname is - different from the resolved ip address +We may not have access to the servers true hostname. +This means we cannot access virtually hosted sites and +cannot follow absolute links when the hostname is +different from the resolved ip address ]] require('url') diff --git a/scripts/smb-security-mode.nse b/scripts/smb-security-mode.nse index 01cb877f0..c841448e3 100644 --- a/scripts/smb-security-mode.nse +++ b/scripts/smb-security-mode.nse @@ -15,9 +15,9 @@ it is vulnerable to sniffing. \n\n Challenge/response passwords: If enabled, the server can accept any type of password:\n -* Plaintext\n -* LM and NTLM\n -* LMv2 and NTLMv2\n +* Plaintext +* LM and NTLM +* LMv2 and NTLMv2 If it isn't set, the server can only accept plaintext passwords. Most servers are configured to use challenge/response these days. If a server is configured to accept plaintext passwords, it is vulnerable to sniffing. diff --git a/scripts/whois.nse b/scripts/whois.nse index 1036d35bb..78d4f1047 100644 --- a/scripts/whois.nse +++ b/scripts/whois.nse @@ -80,7 +80,7 @@ the RIRs. -- -- @output -- --- Host script results: +-- Host script results: -- \n| Whois: Record found at whois.arin.net -- \n| netrange: 64.13.134.0 - 64.13.134.63 -- \n| netname: NET-64-13-143-0-26