Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: LUA Bug?
From: Michael Pattrick <mpattrick () rhinovirus org>
Date: Sun, 30 Jan 2011 06:11:01 -0500

W.R.T. the wsdd fix, wouldn't it be more reasonable to have calls to
optional libraries like "require openssl" fail quietly in scripts? Or
perhaps this suggestion is a can of worms, as it would require a lot
of effort to implement and fundamentally changes how NSE scripts fail.

-M

On Sun, Jan 30, 2011 at 6:02 AM, Patrik Karlsson <patrik () cqure net> wrote:

On 30 jan 2011, at 12.02, Djalal Harouni wrote:

On 2011-01-30 05:39:57 -0500, Patrick Donnelly wrote:
On Sun, Jan 30, 2011 at 3:38 AM, Michael Pattrick
<mpattrick () rhinovirus org> wrote:
Hello devs,

While playing around with a recent Nmap release I found that scripts
weren't working for me, see the following command line log. It appears
to be a problem with the LUA environment variables. The environment is
a nearly fresh CentOS5 install. I haven't tested this out on other
platforms but a quick google search reveals at least one other person
has had problems with this bug (http://pastebin.com/cFXre59L). Any
ideas?

The SCRIPT_* globals aren't defined until a script is instantiated
(executed against a host:port; see Script.new versus Script.new_thread
in nse_main.lua). This probably should be changed.
Yes they should be loaded in the Script.new function, I'm looking at
this.

Great! While at it, could you please fix the mess I did in ssh-hostkey and change it back from filename to 
SCRIPT_NAME? :)



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


//Patrik
--
Patrik Karlsson
http://www.cqure.net
http://www.twitter.com/nevdull77





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

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


  By Date           By Thread  

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