Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10594 - nmap cannot run nse scripts anymore

Attached to Project: Arch Linux
Opened by Jason Carr (jason2) - Thursday, 05 June 2008, 15:02 GMT
Last edited by Dan McGee (toofishes) - Thursday, 19 June 2008, 03:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

running nmap with the -A flag causes nmap to run Lua scripts against the target. This had worked with a previous version of nmap. A "not a directory" error occurs when trying to use the -A flag.

$ nmap -A localhost

Starting Nmap 4.65 ( http://nmap.org ) at 2008-06-05 10:55 EDT
SCRIPT ENGINE: error while initializing Lua State:
'nselib-bin/' not a directory

SCRIPT ENGINE: Aborting script scan.
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1710 closed ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 5.0 (protocol 2.0)
25/tcp open smtp Postfix smtpd
80/tcp open http Apache httpd
443/tcp open ssl/http Apache httpd
515/tcp open printer
Service Info: Host: localhost.localdomain

Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 12.218 seconds

$ pacman -Qi nmap
Name : nmap
Version : 4.65-1
URL : http://nmap.org
Licenses : custom:GPL
Groups : None
Provides : None
Depends On : pcre openssl libpcap>=0.9.8 lua
Optional Deps : None
Required By : None
Conflicts With : None
Replaces : None
Installed Size : 7176.00 K
Packager : Dan McGee <dan@archlinux.org>
Architecture : i686
Build Date : Sun 01 Jun 2008 02:08:50 PM EDT
Install Date : Tue 03 Jun 2008 10:12:18 PM EDT
Install Reason : Explicitly installed
Install Script : No
Description : A network exploration tool and security/port scanner

This task depends upon

Closed by  Dan McGee (toofishes)
Thursday, 19 June 2008, 03:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in nmap-4.65-2-i686.pkg.tar.gz
Comment by Dan McGee (toofishes) - Thursday, 05 June 2008, 19:18 GMT
Hmm, this is probably related to my addition of --libexec-dir to the configure options so we aren't using that directory (as is the Arch standard). I bet their program has that hardcoded somewhere or something? If you want to look into this further that would be great.
Comment by Dale Blount (dale) - Friday, 06 June 2008, 18:45 GMT
I can't seem to reproduce this. -A seems to still work for me with 4.65-1
Comment by Dale Blount (dale) - Friday, 06 June 2008, 18:49 GMT
Found why. I was testing on my x86_64 desktop. It is indeed broke on my i686.
Comment by Dan McGee (toofishes) - Tuesday, 17 June 2008, 22:19 GMT
Does a simple rebuild help this, or what is the issue here? Sorry I haven't had time to look into it.
Comment by Jason Carr (jason2) - Thursday, 19 June 2008, 02:38 GMT
I did a rebuild on my i686 box and it worked fine. I'm not sure what the issue was, but the rebuilt worked. I didn't change the PKGBUILD or the zen patch.

If you need it, I can upload the pkg file somewhere.

Loading...