mirror of
https://github.com/nmap/nmap.git
synced 2026-07-11 18:55:08 +00:00
Catch exceptions when running a sub-Nmap in the profile editor.
This commit is contained in:
parent
8e5bfd5fa7
commit
be24e6d5c4
2 changed files with 9 additions and 1 deletions
|
|
@ -251,7 +251,12 @@ There was an error getting the list of scripts from Nmap. Try upgrading Nmap.\
|
|||
stderr = tempfile.TemporaryFile(mode = "rb", prefix = APP_NAME + "-script-help-stderr-")
|
||||
log.debug("Script interface: running %s" % repr(command_string))
|
||||
nmap_process = NmapCommand(command_string)
|
||||
nmap_process.run_scan(stderr = stderr)
|
||||
try:
|
||||
nmap_process.run_scan(stderr = stderr)
|
||||
except Exception, e:
|
||||
callback(False, None)
|
||||
stderr.close()
|
||||
return
|
||||
stderr.close()
|
||||
|
||||
self.script_list_widget.set_sensitive(False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue