I am running a Windows 8.1 system with sqlmap 1.0-dev and Python 2.7.7. When running a scan process via the RESTful API and passing in a request to stop/kill the scan(GET /scan/ID/stop or GET /scan/ID/kill), the scan keeps going.
Example log messages from the RESTful API indicates success:
[16:51:02] [DEBUG] [13d06018167d0e48] Killed scan
[16:51:13] [DEBUG] [13d06018167d0e48] Stopped scan
However, I can poll the logs and it keeps running until it is done. In my tests, this was several minutes to 30+ minutes after attempting to kill/stop the process that it continued to run.
I believe that this is because the process is opened with Shell=True, in which case based on my understanding, kill() and terminate() only kill/terminate the shell and not the actual Python process.
I am running a Windows 8.1 system with sqlmap 1.0-dev and Python 2.7.7. When running a scan process via the RESTful API and passing in a request to stop/kill the scan(GET /scan/ID/stop or GET /scan/ID/kill), the scan keeps going.
Example log messages from the RESTful API indicates success:
[16:51:02] [DEBUG] [13d06018167d0e48] Killed scan
[16:51:13] [DEBUG] [13d06018167d0e48] Stopped scan
However, I can poll the logs and it keeps running until it is done. In my tests, this was several minutes to 30+ minutes after attempting to kill/stop the process that it continued to run.
I believe that this is because the process is opened with Shell=True, in which case based on my understanding, kill() and terminate() only kill/terminate the shell and not the actual Python process.