Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Unhandled NSE exceptions
From: "Patrick Donnelly" <batrick.donnelly () gmail com>
Date: Tue, 3 Jun 2008 18:04:25 -0600

On Tue, Jun 3, 2008 at 10:48 AM, David Fifield <david () bamsoftware com> wrote:
Is there a way to make NSE exceptions work more like exceptions in other
languages? That is, let you catch them if you want, otherwise quit the
script (not the whole Nmap process) safely.

David

If nsock signaled an error which is caught (via pcall), then yes.
Instead the style chosen was similar to assert
(http://www.lua.org/manual/5.1/manual.html#pdf-assert). The problem is
that if the script writer choses to ignore the return values of the
socket methods, the script may go on to do something undesired. Have
you been able to figure out which socket method is causing the
segfault?

-- 
-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

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


  By Date           By Thread  

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