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

Skip to content

Commit cadba37

Browse files
committed
Proper implementation for #2350
1 parent 750d57e commit cadba37

3 files changed

Lines changed: 5 additions & 3 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.1.1.5"
22+
VERSION = "1.1.1.6"
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def reset_options(self):
163163
def engine_start(self):
164164
if os.path.exists("sqlmap.py"):
165165
self.process = Popen(["python", "sqlmap.py", "--pickled-options", base64pickle(self.options)], shell=False, close_fds=not IS_WIN)
166+
elif os.path.exists(os.path.join(os.getcwd(), "sqlmap.py")):
167+
self.process = Popen(["python", "sqlmap.py", "--pickled-options", base64pickle(self.options)], shell=False, cwd=os.getcwd(), close_fds=not IS_WIN)
166168
else:
167169
self.process = Popen(["sqlmap", "--pickled-options", base64pickle(self.options)], shell=False, close_fds=not IS_WIN)
168170

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ e544108e2238d756c94a240e8a1ce061 lib/core/optiondict.py
4545
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4646
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4747
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
48-
c0f283aee64a229f44dc3a525a7f86fa lib/core/settings.py
48+
86510a37f093d11348c30b888c1e0b75 lib/core/settings.py
4949
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5050
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5151
afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py
@@ -99,7 +99,7 @@ d3da4c7ceaf57c4687a052d58722f6bb lib/techniques/dns/use.py
9999
310efc965c862cfbd7b0da5150a5ad36 lib/techniques/union/__init__.py
100100
4bed3ed51faad9b910899cacf56e8eac lib/techniques/union/test.py
101101
8cd5655c60a638caa30ca1220896aeda lib/techniques/union/use.py
102-
b3afde39a56dd767f5338ba6464b9f43 lib/utils/api.py
102+
9cf3d94f692ce036459b9aa13968cf65 lib/utils/api.py
103103
6842092e1d27b71d28acd0e421f90693 lib/utils/crawler.py
104104
ba12c69a90061aa14d848b8396e79191 lib/utils/deps.py
105105
3b9fd519164e0bf275d5fd361c3f11ff lib/utils/getch.py

0 commit comments

Comments
 (0)