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:Did so, even from a different directory, and got the same result. ThisOn 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 bugreport (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: 'C:\\WINDOWS\\system32\\nselib/*.*' ---- CRASH REPORTED: SYS.PLATFORM: win32 OS.NAME: nt Zenmap Version: 5.36TEST4 TRACEBACK: Traceback (most recent call last): File "zenmapGUI\ScriptInterface.pyo", line 279, in check_nmap_cbFile "zenmapGUI\ScriptMetadata.pyo", line 451, in get_script_entriesFile "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 anunprivileged user. Working directory was C:\WINDOWS\system32. Ran ascan 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," andthen it crashed.Thanks for this helpful report. I can't reproduce it. Can you try again,this time without clicking the "Add" button?time I can scroll, though, so here's the traceback: ---- CRASH REPORTED: SYS.PLATFORM: win32 OS.NAME: nt Zenmap Version: 5.36TEST4 TRACEBACK: Traceback (most recent call last): File "zenmapGUI\ScriptInterface.pyo", line 279, in check_nmap_cbFile "zenmapCore\ScriptMetadata.pyo", line 451, in get_script_entriesFile "zenmapCore\ScriptMetadata.pyo", line 320, in __init__ File "zenmapCore\ScriptMetadata.pyo", line 434, in construct_library_arguments 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?
Rob _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Zenmap 5.36TEST4 Crash on Select script screen Daniel Miller (Jan 22)
- Re: Zenmap 5.36TEST4 Crash on Select script screen David Fifield (Jan 23)
- Re: Zenmap 5.36TEST4 Crash on Select script screen Daniel Miller (Jan 24)
- Re: Zenmap 5.36TEST4 Crash on Select script screen Rob Nicholls (Jan 24)
- Re: Zenmap 5.36TEST4 Crash on Select script screen David Fifield (Jan 31)
- Re: Zenmap 5.36TEST4 Crash on Select script screen Daniel Miller (Jan 24)
- Re: Zenmap 5.36TEST4 Crash on Select script screen David Fifield (Jan 23)