I haven't try the diff yet, but the (current) package is obvious broken I am running ubuntu jaunty (9.0.4), with nmap version (downloaded from the ubuntu repo) : /usr/bin/nmap -v Starting Nmap 4.76 ( http://nmap.org ) at 2009-07-14 22:29 PDT Read data files from: /usr/share/nmap WARNING: No targets were specified, so 0 hosts scanned. Nmap done: 0 IP addresses (0 hosts up) scanned in 0.16 seconds The following is produced by: /usr/bin/nmap --script ALL 127.0.0.1 -d Scanning 127.0.0.1 [1000 ports] Discovered open port 80/tcp on 127.0.0.1 Increased max_successful_tryno for 127.0.0.1 to 1 (packet drop) Discovered open port 139/tcp on 127.0.0.1 Completed Connect Scan at 22:27, 1.17s elapsed (1000 total ports) Overall sending rates: 930.44 packets / s. SCRIPT ENGINE: Initiating script scanning. SCRIPT ENGINE: Script scanning 127.0.0.1. SCRIPT ENGINE: '/usr/share/nmap/scripts/dns-test-open-recursion.nse' threw a run time error and could not be loaded. /usr/share/nmap/scripts/dns-test-open-recursion.nse:12: module 'comm' not found: no field package.preload['comm'] no file '/usr/share/nmap/nselib/comm.lua' no file './comm.lua' no file '/usr/local/share/lua/5.1/comm.lua' no file '/usr/local/share/lua/5.1/comm/init.lua' no file '/usr/local/lib/lua/5.1/comm.lua' no file '/usr/local/lib/lua/5.1/comm/init.lua' no file './comm.so' no file '/usr/local/lib/lua/5.1/comm.so' no file '/usr/local/lib/lua/5.1/loadall.so' SCRIPT ENGINE: error while initializing script rules: /usr/share/nmap/scripts/script.db:6: dns-safe-recursion-port.nse is not a file! stack traceback: [C]: in function 'Entry' /usr/share/nmap/scripts/script.db:6: in main chunk [C]: ? [C]: ? SCRIPT ENGINE: Script scanning completed. SCRIPT ENGINE: Aborting script scan. Host 127.0.0.1 appears to be up ... good. Scanned at 2009-07-14 22:27:07 PDT for 1s Interesting ports on 127.0.0.1: Not shown: 993 closed ports Reason: 993 conn-refused PORT STATE SERVICE REASON ---edited result --- Final times for host: srtt: 496 rttvar: 232 to: 100000 Read from /usr/share/nmap: nmap-services. Nmap done: 1 IP address (1 host up) scanned in 1.43 seconds I also tried to download source from svn (version 4.90RC2, svn r12639) and made a new build, another (similar) error message appears: nmap --script ALL 127.0.0.1 -d NSE: SMB: Login as \ succeeded NSE: MSRPC: Failed to enumerate users through SAMR: NT_STATUS_ACCESS_DENIED (samr.connect4) NSE: smb-brute: Couldn't enumerate users (normal for Windows XP and higher), using unpwdb initially NSE: smb-brute: Opening password list NSE: smb-brute: Starting the initial SMB session NSE: smb-brute against 192.168.2.3 threw an error! /usr/local/share/nmap/nselib/smb.lua:214: bad argument #2 to 'format' (number expected, got nil) stack traceback: [C]: in function 'format' /usr/local/share/nmap/nselib/smb.lua:214: in function 'get_status_name' /usr/local/share/nmap/nselib/smb.lua:1233: in function (tail call): ? /usr/local/share/nmap/scripts/smb-brute.nse:325: in function 'check_login' /usr/local/share/nmap/scripts/smb-brute.nse:550: in function 'initialize' /usr/local/share/nmap/scripts/smb-brute.nse:896: in function 'go' /usr/local/share/nmap/scripts/smb-brute.nse:1004: in function (tail call): ? Completed NSE at 22:32, 0.05s elapsed NSE: Starting runlevel 1 scan Initiating NSE at 22:32 NSE: NSE Script Threads (26) running: