Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Zenmap 5.36TEST4 Crash on Select script screen
From: Rob Nicholls <robert () robnicholls co uk>
Date: Mon, 24 Jan 2011 14:55:39 +0000

On Mon, 24 Jan 2011 08:13:24 -0600, Daniel Miller wrote:
On Sun, Jan 23, 2011 at 1:51 PM, David Fifield <david () bamsoftware com> wrote:
On Sat, Jan 22, 2011 at 05:12:16PM -0600, Daniel Miller wrote:
Hey list,

I'm attaching a screenshot, since the crash didn't let me file the bug
report (modal file select dialog in foreground won't close). Here's
what I can read on the Crash report screen:

Summary: [...] cannot find the path specified:

Zenmap Version: 5.36TEST4
Traceback (most recent call last):
 File "zenmapGUI\ScriptInterface.pyo", line 279, in check_nmap_cb
 File "zenmapGUI\ScriptMetadata.pyo", line 451, in get_script_entries
 File "zenmapGUI\ScriptMetadata.pyo", line 320, in __init__
 File "zenmapGUI\ScriptMetadata.pyo", line 434, in
[... can't scroll down to see the rest ...]

I'm running Windows XP SP3, WinPCAP 4.1.2 installed with Wireshark.
Ran Zenmap from a command line as administrator, while logged in as an
unprivileged user. Working directory was C:\WINDOWS\system32. Ran a
scan with no issues, then went to create a new scan. When I clicked on the Script tab, there were no scripts listed, so I clicked "Add," and
then it crashed.

Thanks for this helpful report. I can't reproduce it. Can you try again,
this time without clicking the "Add" button?
Did so, even from a different directory, and got the same result. This
time I can scroll, though, so here's the traceback:
Zenmap Version: 5.36TEST4
Traceback (most recent call last):
  File "zenmapGUI\ScriptInterface.pyo", line 279, in check_nmap_cb
File "zenmapCore\ScriptMetadata.pyo", line 451, in get_script_entries
  File "zenmapCore\ScriptMetadata.pyo", line 320, in __init__
  File "zenmapCore\ScriptMetadata.pyo", line 434, in
WindowsError: [Error 3] The system cannot find the path specified:
'C:\\Program Files\\Windows Resource Kits\\Tools\\nselib/*.*'

Are you still launching Zenmap as an administrator? When you install Nmap it will add the Nmap data directory to the user's PATH environment variable (should we change that to add it to System rather than the current user?). When you run as an administrator, I suspect it'll stick with the systems's PATH settings and fail to find the Nmap data directory. Quickly looking at ScriptMetadata.py suggests to me that it'll fall back on the line:

return os.getcwd()

So if you launch Zenmap from C:\windows\system32 or C:\Program Files\Windows Resource Kits\Tools then it'll try looking in there first, the current working directory. What surprises me though is the reference to "nselib", as I can't immediately work out why it's looking for anything in there. As David says, it should be trying to list the possible scripts, which I believe involves reading "script.db" from the "scripts" directory.

I would hope that adding Nmap to the administrator user's (or the System's) PATH would work around the issue, if you're able to do that?


Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]