Nmap Development mailing list archives
Re: [NSE][PATCH] make --script-updatedb skip scripts it cannot load instead of failing
From: "Patrick Donnelly" <batrick.donnelly () gmail com>
Date: Tue, 23 Sep 2008 04:09:05 -0600
On Tue, Sep 23, 2008 at 3:05 AM, Sven Klemm <sven () c3d2 de> wrote:
Hi everyone, currently nmap --script-updatedb fails if it cannot load all scripts. With the attached patch it skips scripts it cannot load. Example output: ./nmap --script-updatedb Starting Nmap 4.76 ( http://nmap.org ) at 2008-09-23 11:07 CEST SCRIPT ENGINE: Skipping script './scripts//ssltest.nse' because it produced errors while loading. SCRIPT ENGINE: Skipping script './scripts//SSH-hostkey.nse' because it produced errors while loading. NSE script database updated successfully. Nmap done: 0 IP addresses (0 hosts up) scanned in 0.13 seconds
This looks ok except pcall's fourth argument is an int (a stack position, usually 0 indicating no error function), not a pointer. Cheers, -- -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
Current thread:
- [NSE][PATCH] make --script-updatedb skip scripts it cannot load instead of failing Sven Klemm (Sep 23)
- Re: [NSE][PATCH] make --script-updatedb skip scripts it cannot load instead of failing Patrick Donnelly (Sep 23)