Nmap Development mailing list archives
Re: nmap 5.20 problem with script engine
From: Onur Küçük <onur () delipenguen net>
Date: Thu, 21 Jan 2010 12:32:25 +0200
On Thu, 21 Jan 2010 05:03:13 -0500 Patrick Donnelly <batrick () batbytes com> wrote:
Problem is your distribution is apparently installing the original strict.lua script (included in the Lua sources). We need to force Lua to always load our version first:
You are right, it is coming with the package # pisi info lua -F |grep strict /usr/share/lua/5.1/strict.lua
batrick@batbytes:~/nmap/svn/nmap$ svn diff nse_main.lua Index: nse_main.lua =================================================================== --- nse_main.lua (revision 16447) +++ nse_main.lua (working copy) @@ -89,7 +89,7 @@ do -- Append the nselib directory to the Lua search path local t, path = assert(cnse.fetchfile_absolute("nselib/")); assert(t == "directory", "could not locate nselib directory!"); - package.path = package.path..";"..path.."?.lua"; + package.path = path.."?.lua;"..package.path; end local stdnse = require "stdnse";
and this change fixes the problem for me, thanks :) -- Onur Küçük Knowledge speaks, <onur.--.-.delipenguen.net> but wisdom listens _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- nmap 5.20 problem with script engine Onur Küçük (Jan 21)
- Re: nmap 5.20 problem with script engine Patrick Donnelly (Jan 21)
- Re: nmap 5.20 problem with script engine Onur Küçük (Jan 21)
- Re: nmap 5.20 problem with script engine Patrick Donnelly (Jan 21)