From 4b2ff4339ae3c3a0d4852aed25b6764d864ba9df Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 7 May 2015 12:36:23 +0200 Subject: [PATCH] Fixes #1243 --- lib/utils/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: