mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
Fixes #1394
This commit is contained in:
parent
28a60f5be2
commit
924e31c414
|
@ -152,8 +152,10 @@ class Task(object):
|
||||||
self.options = AttribDict(self._original_options)
|
self.options = AttribDict(self._original_options)
|
||||||
|
|
||||||
def engine_start(self):
|
def engine_start(self):
|
||||||
self.process = Popen(["python", "sqlmap.py", "--pickled-options", base64pickle(self.options)],
|
if os.path.exists("sqlmap.py"):
|
||||||
shell=False, close_fds=not IS_WIN)
|
self.process = Popen(["python", "sqlmap.py", "--pickled-options", base64pickle(self.options)], shell=False, close_fds=not IS_WIN)
|
||||||
|
else:
|
||||||
|
self.process = Popen(["sqlmap", "--pickled-options", base64pickle(self.options)], shell=False, close_fds=not IS_WIN)
|
||||||
|
|
||||||
def engine_stop(self):
|
def engine_stop(self):
|
||||||
if self.process:
|
if self.process:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user