Nmap Development mailing list archives

rdp-enum-encryption


From: Adam Zuber <h3rt3q () gmail com>
Date: Wed, 12 Sep 2012 16:49:54 +0800

Hi,

I googled around and found that nmap have a new nse script
called rdp-enum-encryption.nse. I see that the script is not installed by
default, so i had to copy the nse script into scripts/ folder and the
rdp.lua into nselib/ folder. However when I try to run the script, it
throws me a funny error. At first I thought my nmap was outdated since im
using Bactrack5R2 which comes with nmap 5.61TEST4. I downloaded the latest
nmap 6.01 src and compiled on the same machine. Turns out the result are
still the same.

configure opts:
root@bt:~/nmap-6.01# ./configure --with-liblua=included
root@bt:~/nmap-6.01#  make

running nmap with rdp-enum-encryption.nse installed.
root@bt:~/nmap-6.01# ./nmap -V

Nmap version 6.01 ( http://nmap.org )
Platform: i686-pc-linux-gnu
Compiled with: liblua-5.1.3 nmap-libpcre-7.6 libpcap-1.0.0
nmap-libdnet-1.12 ipv6
Compiled without: openssl
root@bt:~/nmap-6.01#
root@bt:~/nmap-6.01# ./nmap -n -Pn -sS 192.168.2.220 --script
rdp-enum-encryption

Starting Nmap 6.01 ( http://nmap.org ) at 2012-09-12 04:44 EDT
NSE: Failed to load /root/nmap-6.01/scripts/rdp-enum-encryption.nse:
/root/nmap-6.01/nselib/rdp.lua:13: attempt to call field 'module' (a nil
value)
stack traceback:
        /root/nmap-6.01/nselib/rdp.lua:13: in main chunk
        [C]: in function 'require'
        /root/nmap-6.01/scripts/rdp-enum-encryption.nse:36: in main chunk
NSE: failed to initialize the script engine:
/root/nmap-6.01/nse_main.lua:442: could not load script
stack traceback:
        [C]: in function 'error'
        /root/nmap-6.01/nse_main.lua:442: in function 'new'
        /root/nmap-6.01/nse_main.lua:675: in function 'get_chosen_scripts'
        /root/nmap-6.01/nse_main.lua:1103: in main chunk
        [C]: ?

QUITTING!
root@bt:~/nmap-6.01#
root@bt:~/nmap-6.01# ls -al scripts/| grep rdp-enum
-rw-r--r--  1 root root  4132 2012-09-12 04:29 rdp-enum-encryption.nse
root@bt:~/nmap-6.01# ls -al nselib/| grep rdp.lua
-rw-r--r--  1 root root  10724 2012-09-12 04:29 rdp.lua
root@bt:~/nmap-6.01#

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


Current thread: