diff --git a/lib/utils/api.py b/lib/utils/api.py index 396d689d9..357d4d3b5 100644 --- a/lib/utils/api.py +++ b/lib/utils/api.py @@ -32,6 +32,7 @@ from lib.core.enums import PART_RUN_CONTENT_TYPES from lib.core.exception import SqlmapConnectionException from lib.core.log import LOGGER_HANDLER from lib.core.optiondict import optDict +from lib.core.settings import IS_WIN from lib.core.subprocessng import Popen from thirdparty.bottle.bottle import error as return_error from thirdparty.bottle.bottle import get @@ -155,7 +156,7 @@ class Task(object): def engine_start(self): self.process = Popen(["python", "sqlmap.py", "--pickled-options", base64pickle(self.options)], - shell=False, stdin=PIPE, close_fds=True) + shell=False, stdin=PIPE, close_fds=not IS_WIN) def engine_stop(self): if self.process: