module 'citrixxml' not found

Bug #1080363 reported by TJ
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nmap (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The following two commands run at the command-line (the latter generated by zenmap's "Slow comprehensive scan" option) cause a failure due to missing script and library support. Apt suggests the scripts aren't in the Ubuntu archives.

Details of the missing script are at http://nmap.org/nsedoc/lib/citrixxml.html

The original script plus my attached patch are required to solve the issue.

$ apt-file search citrix | grep nselib
$

$ sudo nmap -T4 -A -v --script all 192.168.0.20
$ sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all 192.168.0.20

Starting Nmap 5.21 ( http://nmap.org ) at 2012-11-18 14:30 GMT
NSE: failed to initialize the script engine:
/usr/share/nmap/nse_main.lua:276: /usr/share/nmap/scripts/citrix-brute-xml.nse:35: module 'citrixxml' not found:
 no field package.preload['citrixxml']
 no file '/usr/share/nmap/nselib/citrixxml.lua'
 no file './citrixxml.lua'
 no file '/usr/local/share/lua/5.1/citrixxml.lua'
 no file '/usr/local/share/lua/5.1/citrixxml/init.lua'
 no file '/usr/local/lib/lua/5.1/citrixxml.lua'
 no file '/usr/local/lib/lua/5.1/citrixxml/init.lua'
 no file '/usr/share/lua/5.1/citrixxml.lua'
 no file '/usr/share/lua/5.1/citrixxml/init.lua'
 no file './citrixxml.so'
 no file '/usr/local/lib/lua/5.1/citrixxml.so'
 no file '/usr/lib/x86_64-linux-gnu/lua/5.1/citrixxml.so'
 no file '/usr/lib/lua/5.1/citrixxml.so'
 no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
 [C]: in function 'assert'
 /usr/share/nmap/nse_main.lua:276: in function 'new'
 /usr/share/nmap/nse_main.lua:434: in function 'Entry'
 /usr/share/nmap/scripts/script.db:5: in function 'db_closure'
 /usr/share/nmap/nse_main.lua:454: in function 'get_chosen_scripts'
 /usr/share/nmap/nse_main.lua:766: in main chunk
 [C]: ?

QUITTING!

Installing the script directly doesn't completely solve the issue:

$ sudo wget -O /usr/share/nmap/nselib/citrixxml.lua http://nmap.org/svn/nselib/citrixxml.lua

$ sudo nmap -T4 -A -v --script all 192.168.0.20

Starting Nmap 5.21 ( http://nmap.org ) at 2012-11-18 14:40 GMT
NSE: failed to initialize the script engine:
/usr/share/nmap/nse_main.lua:276: /usr/share/nmap/nselib/citrixxml.lua:25: attempt to call field 'module' (a nil value)
stack traceback:
 [C]: in function 'assert'
 /usr/share/nmap/nse_main.lua:276: in function 'new'
 /usr/share/nmap/nse_main.lua:434: in function 'Entry'
 /usr/share/nmap/scripts/script.db:5: in function 'db_closure'
 /usr/share/nmap/nse_main.lua:454: in function 'get_chosen_scripts'
 /usr/share/nmap/nse_main.lua:766: in main chunk
 [C]: ?

QUITTING!

Applying the attached patch to the manually downloaded script allows nmap to run.

Tags: patch precise
Revision history for this message
TJ (tj) wrote :
TJ (tj)
description: updated
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix for citrixxml.lua" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Logan Rosen (logan) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - Raring Ringtail.

This is a significant bug in Ubuntu. If you need a fix for the bug in previous versions of Ubuntu, please do steps 1 and 2 of the SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Changed in nmap (Ubuntu):
status: New → Fix Released
Revision history for this message
Gaurish Sharma (gslive) wrote :

Facing this issue on 12.04 LTS. What's the fix/workaround?

Revision history for this message
Chucky (lechuck) wrote :

This is blocking as simply can't run the "slow comprehensive test" under 12.04 LTS too !
I don't get the point about the SRU Procedure : steps 1 and 2 are OK, but I don't see any fix for 12.04 LTS.

Revision history for this message
Norbert (nrbrtx) wrote :

Bug still exist in 12.04.5 LTS.
Please fix it!

Norbert (nrbrtx)
tags: added: precise
Revision history for this message
Norbert (nrbrtx) wrote :

As temporary solution I added BackBox PPA

     ppa:backbox/three ( https://launchpad.net/~backbox/+archive/ubuntu/three )

to my Precise Pangolin system.
It installs Nmap 6.40-0.1backbox1.

But please fix this bug by SRU.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.