Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b42c081

Browse files
committed
Fixes #3475
1 parent 441a40e commit b42c081

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.3.2.11"
22+
VERSION = "1.3.2.12"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ def engine_start(self):
160160
saveConfig(self.options, configFile)
161161

162162
if os.path.exists("sqlmap.py"):
163-
self.process = Popen(["python", "sqlmap.py", "--api", "-c", configFile], shell=False, close_fds=not IS_WIN)
163+
self.process = Popen([sys.executable or "python", "sqlmap.py", "--api", "-c", configFile], shell=False, close_fds=not IS_WIN)
164164
elif os.path.exists(os.path.join(os.getcwd(), "sqlmap.py")):
165-
self.process = Popen(["python", "sqlmap.py", "--api", "-c", configFile], shell=False, cwd=os.getcwd(), close_fds=not IS_WIN)
165+
self.process = Popen([sys.executable or "python", "sqlmap.py", "--api", "-c", configFile], shell=False, cwd=os.getcwd(), close_fds=not IS_WIN)
166166
elif os.path.exists(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "sqlmap.py")):
167-
self.process = Popen(["python", "sqlmap.py", "--api", "-c", configFile], shell=False, cwd=os.path.join(os.path.abspath(os.path.dirname(sys.argv[0]))), close_fds=not IS_WIN)
167+
self.process = Popen([sys.executable or "python", "sqlmap.py", "--api", "-c", configFile], shell=False, cwd=os.path.join(os.path.abspath(os.path.dirname(sys.argv[0]))), close_fds=not IS_WIN)
168168
else:
169169
self.process = Popen(["sqlmap", "--api", "-c", configFile], shell=False, close_fds=not IS_WIN)
170170

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ d5ef43fe3cdd6c2602d7db45651f9ceb lib/core/readlineng.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
cb31ee4773d12d0041a2fabb1bbc9291 lib/core/settings.py
53+
17a9ca024712c5621e8c1d79ce798ad3 lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
5656
43772ea73e9e3d446f782af591cb4eda lib/core/target.py
@@ -102,7 +102,7 @@ fb6be55d21a70765e35549af2484f762 lib/techniques/__init__.py
102102
fb6be55d21a70765e35549af2484f762 lib/techniques/union/__init__.py
103103
9d9a6148f10693aaab5fac1273d981d4 lib/techniques/union/test.py
104104
e141fb96f2a136bafd6bb2350f02d33b lib/techniques/union/use.py
105-
936e5cb1bc25c69f0716df1c2900f52a lib/utils/api.py
105+
8e9ddc7220f6beda89cc45c65e51e72b lib/utils/api.py
106106
544dee96e782560fe4355cbf6ee19b8c lib/utils/brute.py
107107
b27421eb57cea711050135f84be99258 lib/utils/crawler.py
108108
da4bc159e6920f1f7e45c92c39941690 lib/utils/deps.py

0 commit comments

Comments
 (0)