Skip to content

Commit

Permalink
Fixes #1394
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed Sep 8, 2015
1 parent 28a60f5 commit 924e31c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ def reset_options(self):
self.options = AttribDict(self._original_options)

def engine_start(self):
self.process = Popen(["python", "sqlmap.py", "--pickled-options", base64pickle(self.options)],
shell=False, close_fds=not IS_WIN)
if os.path.exists("sqlmap.py"):
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):
if self.process:
Expand Down

0 comments on commit 924e31c

Please sign in to comment.