Ticket #182 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Nmap not found but scan still running

Reported by: rcarvalho Owned by: rcarvalho
Priority: high Milestone: UmitWeb 0.1RC1
Component: umitWeb Version: current svn
Keywords: subprocess, nmap Cc:

Description

When I try to perform a scan without nmap installed, an exception is outputted to log file, but the user is not being notified that nmap could not be found.

The exception is as follows:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
   self.run()
  File "/usr/lib/python2.5/threading.py", line 446, in run
   self.__target(*self.__args, **self.__kwargs) 
  File "/usr/lib/python2.5/site-packages/umitCore/nmapCommand.py", line 206, in run_scan
   shell=shell_state)
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
   errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1091, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory

OS: GNU/Linux (Fedora Core 10)

Kernel Version: 2.6.27.7-134.fc10.i686

Change History

Changed 4 years ago by rcarvalho

  • status changed from new to assigned

Changed 4 years ago by rcarvalho

  • keywords subprocess, nmap added

This is a Unix-Only issue and it occurrs inside the subprocess execution. I'll create a custom thread class to try wrapping the subprocess execution to catch this exception.

Changed 4 years ago by rcarvalho

  • status changed from assigned to closed
  • resolution set to fixed

When nmapCommand.command_process is None, the scan raises an Http500 error and alert the user about the error. Resolved in revision 3991.

Note: See TracTickets for help on using tickets.