1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 12:19:02 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
djalal
f0c5e154c3 Merge r18689:r19511 from /nmap-exp/djalal/nse-rules.
o Add two new Script scan phases:
  Script Pre-scanning phase: before any Nmap scan operation, activated by the new "prerule".
  Script Post-scanning phase: after all Nmap scan operations, activated by the new "postrule".
o New environment variables:
  SCRIPT_PATH
  SCRIPT_NAME
  SCRIPT_TYPE: the type of the rule that activated the script.
2010-08-06 16:40:03 +00:00
jah
d67b6d9c10 Fix a test for the return value of ipOps.isPrivate in the hostrule which was
causing an unnecessary debug message: "Error in Hostrule: 127/8".
2010-08-05 20:36:27 +00:00
fyodor
6f22390e45 Remove Jah's email address from two scripts to match what he uses in the other three (If he wants the email addresses, he is welcome to put them on all five--I'm just shooting for consistency 2010-07-24 05:30:36 +00:00
fyodor
35a28ea343 canonicalize some license text that differed in whitespace or quote character or line-ending or (in a couple cases) the slightly older wording 2010-06-11 06:54:56 +00:00
jah
e307ee691e IANA have moved the IPv4 and IPv6 assignments tables and slightly altered their
content.
2010-05-20 19:17:43 +00:00
fyodor
785126a4a9 Some minor canonicalization of the author fileds in NSE scripts 2010-01-19 08:28:30 +00:00
batrick
610bd0a55b Merge from Dependencies branch (nmap-exp/patrick/dependencies)
with modifications from [2].

** Short description from [1] **

I have created a patch to NSE that replaces runlevels with a table of
dependencies that clearly outlines what other scripts the script
depends on. The table is of the form:

dependences = {"script1", script2", ...}

Runlevels become an internal representation of the order of scripts
that are generated by the dependencies. Dependencies only enforce
an execution order and not a requirement for execution.

[1] http://seclists.org/nmap-dev/2009/q4/295
[2] http://seclists.org/nmap-dev/2009/q4/446
2009-12-30 02:34:05 +00:00
jah
d0b41b5cfc Fix the indexing of Globals - found with the help of strict.lua 2009-07-17 21:09:00 +00:00
joao
bfa10a3499 whois.nse now accepts new syntax for table arguments.
comments updated.
2009-07-05 10:00:21 +00:00
jah
55ded906f2 Fix a problem, reported by David, which resulted in an error arising from an
unexpected value for the "data" table after repeating queries at the same
service for the same IP (which should not ever happen).
2009-05-01 23:35:44 +00:00
david
22a77a865c Use host.ip, not just (undefined) ip in whois.nse exception error
messages. Instead of handling an error nicely, it caused a format string
error of its own:
./nselib/stdnse.lua:61: bad argument #3 to 'format' (string expected, got nil)
It seems that a deadlock happens immediately after one of these errors
occurs. This change doesn't fix the deadlock but allows the underlying
error message to be printed.
2009-04-29 23:33:44 +00:00
jah
17595d5f03 Removed an erroneous argument to a print_debug statement. 2008-11-14 20:57:45 +00:00
fyodor
cdfac4d6b2 spell check: recognise -> recognize 2008-11-11 20:33:48 +00:00
david
a709967cdd Spell check script documentation. 2008-11-11 05:16:10 +00:00
david
5f166e19ec Don't use empty parentheses when referring to functions by name in NSE
documentation.
2008-11-07 22:49:49 +00:00
david
4863d506c1 Remove script ids. Scripts are identified by file name in output (just the
basename without ".nse", or the full path with debugging level 2 or higher).
This includes documentation changes in scripting.xml.
2008-11-05 00:52:55 +00:00
david
f8b4fc4cc1 Fix a couple of duplicate words found with the duplicate-words script. 2008-10-30 17:28:14 +00:00
david
84afa54d3a Update and proofread documentation of all the scripts, with the exception of
nbstat.nse and smb-*.nse, which Ron is going to do.
2008-10-25 03:11:25 +00:00
david
3ee17ecb5c Fix NSEDoc error messages, except for some "documenting undefined parameter"
that happen when one function is defined to be another by assignment.
2008-10-24 17:05:40 +00:00
david
b03230218d Commit a few NSE documenation changes I made while testing the new markup
parser; they work now.
2008-10-22 23:31:47 +00:00
david
837c1e95ca Make a few script documentation whitespace changes. 2008-10-20 23:45:33 +00:00
david
ca933f1cbb Use explicit line breaks in the @usage section of scripts/whois.nse. This keeps
the lines from getting too long when rendered verbatim.
2008-10-20 18:53:46 +00:00
david
9568b22e68 Make some NSEDoc updates in scripts/whois.nse. Use <> instead of &lt;&gt; and
use the @field tag in table documentation comments.
2008-10-16 23:29:25 +00:00
david
8bd71aaf43 Normalize NSEDoc documentation of scripts.
I made every script follow a standard form: it starts with the id, followed by
the description. The description is contained in [[ ]] delimiters. The
description is in the global description variable, not in a LuaDoc comment.
Other LuaDoc information such as @args and @usage follows the description in a
comment.

The first paragraph of each description is a a short summary of what the script
does. More detailed information, if any, is given in following paragraphs.

I also improved some wording and formatting in a few cases.
2008-10-14 20:52:50 +00:00
david
06c7264e2e Put the following scripts in the new "external" category:
ASN.nse
dns-safe-recursion-port.nse
dns-safe-recursion-txid.nse
ripeQuery.nse
whois.nse
2008-09-09 05:13:24 +00:00
david
04be9da7ed Remove the duplicated ipOps functions from ASN.nse and whois.nse and have them
use the ipOps library instead.
2008-09-06 03:29:49 +00:00
fyodor
dd1e76c2a7 o Added whois.nse, which queries the Regional Internet Registries
(RIRs) to determine who the target IP addresses are assigned
  to. [Jah]
2008-09-05 18:43:27 +00:00