mailing list archives
Re: Boolean Operators for --script (again)
From: Patrick Donnelly <batrick () batbytes com>
Date: Thu, 9 Apr 2009 09:37:55 -0600
On Thu, Apr 9, 2009 at 9:33 AM, Patrick Donnelly <batrick () batbytes com> wrote:
Here's a rough draft of the Augmented BNF syntax:
; Note string literals in ABNF are case-insensitive
ruleset = rule *("," rule)
rule = exp
exp = "nil" / "false" / "true" / name / exp binop exp / unop exp
binop = "and" / "or"
unop = "not"
name = %x21-%x2b /
%x3c-%x7e ; All visible characteres except ',' and ';'
While this describes the syntax, the semantics are:
The binary and unary operators follow the same semantics and
precedence as in Lua.
A `name` can be a case-insensitive Category ("intrusive", "default",
etc.), a case-sensitive (is this ok?) filename with optional greedy
"*" (asterisk) wildcards to match many files. A filename may also have
an optional (ignored) .nse extension. Directories are not considered
valid in the above ruleset and are handled separately (we include all
script files in a directory).
Attached is the new patch implementing the above syntax and semantics.
"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."
Sent through the nmap-dev mailing list
Archived at http://SecLists.Org
Re: Boolean Operators for --script (again) Patrick Donnelly (Apr 08)
Re: Boolean Operators for --script (again) Ron (Apr 08)
Re: Boolean Operators for --script (again) Fyodor (Apr 09)