Nmap Development mailing list archives

Re: Problem with updating script database in Cygwin.


From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 02 Jul 2012 14:48:15 -0500

On 07/02/2012 02:12 PM, Neusbeer wrote:
$ nmap --script-updatedb

Starting Nmap 6.02 ( http://nmap.org ) at 2012-07-02 20:09 ope
NSE: Updating rule database.
NSE: Failed to load C:\cygwin\home\hacking\portscan\nmap6\mswin32\Debug/scripts//distcc-CVE-2004-2687.nse: ...an\nmap6\mswin32\Debug/scripts//distcc-CVE-2004-2687.nse:47: variable 'stdnse' is not declared
stack traceback:
        [C]: in function 'error'
...e\hacking\portscan\nmap6\mswin32\Debug/nselib/strict.lua:80: in function '__index' ...an\nmap6\mswin32\Debug/scripts//distcc-CVE-2004-2687.nse:47: in function <...an\nmap6\mswin32\Debug/sc
ripts//distcc-CVE-2004-2687.nse:1>



$ nmap -V

Nmap version 6.02 ( http://nmap.org )
Platform: i686-pc-windows-windows
Compiled with: nmap-liblua-5.2.1 openssl-1.0.0a nmap-libpcre-7.6 libpcap-4.1.2 nmap-libdnet-1.12 ipv6
Compiled without:




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

There is something wrong with your copy of distcc-CVE-2004-2687.nse. Based on the nonstandard capitalization of the script name, I would guess you downloaded an old copy. It is missing the library requires at the top of the file. In the current revision (http://nmap.org/svn/scripts/distcc-cve2004-2687.nse), the first line that uses stdnse is line 50, not 47 as your error indicates. Download the latest version of the script and see if it works.

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


Current thread: