Nmap Development mailing list archives

Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug?


From: Ron <ron () skullsecurity net>
Date: Mon, 14 Sep 2009 10:35:00 -0500

On 09/14/2009 10:20 AM, David Fifield wrote:
Would you edit your scripts to check for both nil and false (i.e.,
"not status")? My intention, which is not reflected in the NSEDoc, was
that the first result could be anything that evaluates to false in a
condition. It's sort of like the difference between
        if (cond)
and
        if (cond == 1)
in C; usually you prefer the former because 1 isn't the only "true"
value. We could just standardize on false always, but I like nil because
it's closer to what the standard Lua functions do.

I'll update the NSEDoc.

David Fifield

Sure, I can make that change.

Ron

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: