mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-30 10:00:02 +03:00
Merge 6440fe838b
into 750d57ec96
This commit is contained in:
commit
9bda905715
|
@ -140,6 +140,7 @@ class Task(object):
|
|||
self.options.api = True
|
||||
self.options.taskid = taskid
|
||||
self.options.database = Database.filepath
|
||||
self.cwd = os.getcwd()
|
||||
|
||||
# Enforce batch mode and disable coloring and ETA
|
||||
self.options.batch = True
|
||||
|
@ -161,8 +162,8 @@ class Task(object):
|
|||
self.options = AttribDict(self._original_options)
|
||||
|
||||
def engine_start(self):
|
||||
if os.path.exists("sqlmap.py"):
|
||||
self.process = Popen(["python", "sqlmap.py", "--pickled-options", base64pickle(self.options)], shell=False, close_fds=not IS_WIN)
|
||||
if os.path.exists("%s/sqlmap.py" % (self.cwd)):
|
||||
self.process = Popen(["python", "%s/sqlmap.py" % (self.cwd), "--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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user