mailing list archives
Re: [NSE] Lua 5.2 Upgrade
From: Fyodor <fyodor () insecure org>
Date: Mon, 9 Apr 2012 16:04:56 -0700
On Wed, Apr 04, 2012 at 01:43:38AM -0400, Patrick Donnelly wrote:
Over the past few months I've been working on a branch that upgrades
NSE to use Lua 5.2. I'll start off by giving you the location of the
branch so you can try it out:
Thanks Patrick, this is exciting stuff! I'm pretty sure we will want
to upgrade to Lua 5.2. I tested your branch
(https://svn.nmap.org/nmap-exp/patrick/nse-lua52) on Linux and it
seems to be working fine. On Windows, it compiled, but I haven't been
able to get it to work. It gives me this message:
$ ./nmap -A -T4 scanme.nmap.org
Starting Nmap 5.61TEST5 ( http://nmap.org ) at 2012-04-09 15:56 Pacific Daylight Time
NSE: Script Engine Scan Aborted.
An error was thrown by the engine: ...ome\fyodor\nse-lua52\mswin32\nmap-5.61TEST5/nse_main.lua:902: attempt to call
upvalue 'unpack' (a nil value)
...ome\fyodor\nse-lua52\mswin32\nmap-5.61TEST5/nse_main.lua:902: in function 'run'
...ome\fyodor\nse-lua52\mswin32\nmap-5.61TEST5/nse_main.lua:1238: in function
[C]: in ?
Nmap scan report for scanme.nmap.org (18.104.22.168)
[Rest of Nmap report cut. It was fine except that there wasn't any
I haven't tried it on Mac OS X yet. Hopefully someone will give it a
try on that platform once the Windows issue is fixed.
Am I correct in assuming that this branch won't work with older
versions of Lua? If so, can you update configure.ac so that it will
always include the included (with Nmap) version of Liblua unless the
system already has 5.2 or later? Normal users won't know to specify
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/