Nmap Development mailing list archives

Re: variable 'ssl' is not declared


From: m k <mpmab1 () gmail com>
Date: Wed, 20 Jul 2011 20:49:00 +1000

Hi All,

Based on your feedback I undertook the following steps:

Using the following command  to get the version:  nmap -V
The result was this: Nmap version 5.51 ( http://nmap.org )

And using the -d2 option the following output shown below was produced
(If there is anything else i can do at my end please let me know).
Also while the error message below is for the dns-zone-transfer.nse
script,  this error occurs in a number of the nmap scripts :


Starting Nmap 5.51 ( http://nmap.org ) at 2011-07-20 06:44 EDT
Fetchfile found /usr/local/share/nmap/nmap-services
PORTS: Using top 1000 ports found open (TCP:1000, UDP:0, SCTP:0)
The max # of sockets we are using is: 0
--------------- Timing report ---------------
  hostgroups: min 1, max 100000
  rtt-timeouts: init 1000, min 100, max 10000
  max-scan-delay: TCP 1000, UDP 1000, SCTP 1000
  parallelism: min 0, max 0
  max-retries: 10, host-timeout: 0
  min-rate: 0, max-rate: 0
---------------------------------------------
Fetchfile found /usr/local/share/nmap/nse_main.lua
Fetchfile found /usr/local/share/nmap/nselib/
Fetchfile found /usr/local/share/nmap/scripts/script.db
Fetchfile found ./auth-owners.nse
Fetchfile found ./dhcp-discover.nse
Fetchfile found ./dns-recursion.nse
Fetchfile found ./dns-service-discovery.nse
Fetchfile found ./dns-zone-transfer.nse
Fetchfile found ./finger.nse
Fetchfile found ./ftp-anon.nse
Fetchfile found ./ftp-bounce.nse
Fetchfile found ./gopher-ls.nse
Fetchfile found ./hddtemp-info.nse
Fetchfile found ./http-auth.nse
Fetchfile found ./http-favicon.nse
Fetchfile found ./http-methods.nse
Fetchfile found ./http-open-proxy.nse
Fetchfile found ./http-robots.txt.nse
Fetchfile found ./http-title.nse
Fetchfile found ./http-vmware-path-vuln.nse
Fetchfile found ./imap-capabilities.nse
Fetchfile found ./irc-info.nse
Fetchfile found ./mongodb-databases.nse
Fetchfile found ./mongodb-info.nse
Fetchfile found ./ms-sql-info.nse
Fetchfile found ./mysql-info.nse
Fetchfile found ./nat-pmp-info.nse
Fetchfile found ./nbstat.nse
Fetchfile found ./netbus-info.nse
Fetchfile found ./ntp-info.nse
Fetchfile found ./p2p-conficker.nse
Fetchfile found ./pop3-capabilities.nse
Fetchfile found ./realvnc-auth-bypass.nse
Fetchfile found ./rmi-dumpregistry.nse
Fetchfile found ./smb-os-discovery.nse
Fetchfile found ./smbv2-enabled.nse
Fetchfile found ./smtp-commands.nse
Fetchfile found ./snmp-interfaces.nse
Fetchfile found ./snmp-netstat.nse
Fetchfile found ./snmp-processes.nse
Fetchfile found ./snmp-sysdescr.nse
Fetchfile found ./snmp-win32-services.nse
Fetchfile found ./snmp-win32-shares.nse
Fetchfile found ./snmp-win32-software.nse
Fetchfile found ./snmp-win32-users.nse
Fetchfile found ./socks-open-proxy.nse
Fetchfile found ./ssh-hostkey.nse
Fetchfile found ./sshv1.nse
Fetchfile found ./sslv2.nse
NSE: failed to initialize the script engine:
/usr/local/share/nmap/nse_main.lua:384:
/usr/local/share/nmap/nselib/strict.lua:65: variable 'ssl' is not
declared
stack traceback:
        [C]: in function 'assert'
        /usr/local/share/nmap/nse_main.lua:384: in function 'new'
        /usr/local/share/nmap/nse_main.lua:546: in function 'Entry'
        /usr/local/share/nmap/scripts/script.db:166: in function 'db_closure'
        /usr/local/share/nmap/nse_main.lua:566: in function 'get_chosen_scripts'
        /usr/local/share/nmap/nse_main.lua:1006: in main chunk
        [C]: ?

QUITTING!

Thanks for your time


On Wed, Jul 20, 2011 at 8:15 PM, Djalal Harouni <tixxdz () opendz org> wrote:
On Wed, Jul 20, 2011 at 04:17:34PM +1000, m k wrote:
Dear All,

I'm coming across the error message below when attempting to execute
nmap scripts.

My question is how do I go about solving this?
You can run Nmap with debug level -d2 or more and send us the full output.
Just to get the list of the loaded scripts.

Also I only got this message after using the -sC option . using the
--script option did not produce the error mesg. Should they not both
do the same?
No, -sC is just an alias to --script=default

PS. I'm not writing a new script but using existing ones.

SE: failed to initialize the script engine:
/usr/local/share/nmap/nse_main.lua:384:
/usr/local/share/nmap/nselib/strict.lua:65: variable 'ssl' is not
declared
stack traceback:
      [C]: in function 'assert'
      /usr/local/share/nmap/nse_main.lua:384: in function 'new'
      /usr/local/share/nmap/nse_main.lua:546: in function 'Entry'
      /usr/local/share/nmap/scripts/script.db:166: in function 'db_closure'
      /usr/local/share/nmap/nse_main.lua:566: in function 'get_chosen_scripts'
      /usr/local/share/nmap/nse_main.lua:1006: in main chunk
      [C]: ?

QUITTING!
Please send the full output as it seems that you are running an old version
of Nmap.

Thanks for the bug report.

--
tixxdz
http://opendz.org

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


Current thread: