Home page logo

nmap-dev logo Nmap Development 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 /
         %x2d-%x3a /
         %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.

-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant

Attachment: bool3.patch

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]