Nmap Development mailing list archives

Re: mcafee-epo-agent.nse bug


From: Josh Greenwood <jgseclists () gmail com>
Date: Sat, 4 Aug 2012 17:19:21 -0700

Ron,

Your patch fixes the mcafee-epo-agent.nse error for me.  But now I'm
getting another error, this time with xmpp-info.nse.  Scan and error below.
 Let me know if I can provide more info.

Josh

$ sudo ./nmap -sS -n -T4 -sV --version-intensity 9 192.168.0.1

Starting Nmap 6.02 ( http://nmap.org ) at 2012-08-04 17:11 PDT
NSE: Failed to load
/home/user/security/scanners/nmap-ron-patch/scripts/xmpp-info.nse:
/home/user/security/scanners/nmap-ron-patch/nselib/sasl.lua:46: module
'openssl' not found:
NSE failed to find nselib/openssl.lua in search paths.
no field package.preload['openssl']
no file '/usr/local/share/lua/5.2/openssl.lua'
no file '/usr/local/share/lua/5.2/openssl/init.lua'
no file '/usr/local/lib/lua/5.2/openssl.lua'
no file '/usr/local/lib/lua/5.2/openssl/init.lua'
no file './openssl.lua'
no file '/usr/local/lib/lua/5.2/openssl.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './openssl.so'
stack traceback:
[C]: in function 'require'
/home/user/security/scanners/nmap-ron-patch/nselib/sasl.lua:46: in main
chunk
[C]: in function 'require'
/home/user/security/scanners/nmap-ron-patch/nselib/xmpp.lua:36: in main
chunk
[C]: in function 'require'
...r/security/scanners/nmap-ron-patch/scripts/xmpp-info.nse:6: in function
<...r/security/scanners/nmap-ron-patch/scripts/xmpp-info.nse:1>
NSE: failed to initialize the script engine:
/home/user/security/scanners/nmap-ron-patch/nse_main.lua:461: could not
load script
stack traceback:
[C]: in function 'error'
/home/user/security/scanners/nmap-ron-patch/nse_main.lua:461: in function
'new'
/home/user/security/scanners/nmap-ron-patch/nse_main.lua:667: in function
'Entry'
.../user/security/scanners/nmap-ron-patch/scripts/script.db:413: in
function 'db_closure'
/home/user/security/scanners/nmap-ron-patch/nse_main.lua:680: in function
'get_chosen_scripts'
/home/user/security/scanners/nmap-ron-patch/nse_main.lua:1130: in main chunk
[C]: in ?

QUITTING!

On Sat, Aug 4, 2012 at 3:25 PM, Ron <ron () skullsecurity net> wrote:

Hey,

I'm not sure if this is the best solution, but do you want to try the
attached patch and see if it works?

Ron

On 2012-08-03 23:45, Josh Greenwood wrote:
Hi,

If nmap is compiled on a system without libssl-dev installed,
mcafee-epo-agent.nse causes the scan to abort and displays the error
below.
 This problem appears to be similar to the ipv6-node-info.nse issue
described here: http://seclists.org/nmap-dev/2012/q1/209.  Installing
libssl-dev and recompiling fixes the issue.

I'm using revision 29477.

Josh

Error:
Starting Nmap 6.02 ( http://nmap.org ) at 2012-08-03 23:33 PDT
NSE: Failed to load
/home/user/security/scanners/nmap/scripts/mcafee-epo-agent.nse:
/home/user/security/scanners/nmap/nselib/http.lua:108: module 'openssl'
not
found:
NSE failed to find nselib/openssl.lua in search paths.
no field package.preload['openssl']
no file '/usr/local/share/lua/5.2/openssl.lua'
no file '/usr/local/share/lua/5.2/openssl/init.lua'
no file '/usr/local/lib/lua/5.2/openssl.lua'
no file '/usr/local/lib/lua/5.2/openssl/init.lua'
no file './openssl.lua'
no file '/usr/local/lib/lua/5.2/openssl.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './openssl.so'
stack traceback:
[C]: in function 'require'
/home/user/security/scanners/nmap/nselib/http.lua:108: in main chunk
[C]: in function 'require'
...user/security/scanners/nmap/scripts/mcafee-epo-agent.nse:27: in
function
<...user/security/scanners/nmap/scripts/mcafee-epo-agent.nse:1>
NSE: failed to initialize the script engine:
/home/user/security/scanners/nmap/nse_main.lua:461: could not load script
stack traceback:
[C]: in function 'error'
/home/user/security/scanners/nmap/nse_main.lua:461: in function 'new'
/home/user/security/scanners/nmap/nse_main.lua:667: in function 'Entry'
/home/user/security/scanners/nmap/scripts/script.db:232: in function
'db_closure'
/home/user/security/scanners/nmap/nse_main.lua:680: in function
'get_chosen_scripts'
/home/user/security/scanners/nmap/nse_main.lua:1130: in main chunk
[C]: in ?

QUITTING!
_______________________________________________
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/

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


Current thread: