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

Skip to content

Commit 2377714

Browse files
committed
Update related to the #3137
1 parent 9b397f0 commit 2377714

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.2.6.11"
22+
VERSION = "1.2.6.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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def engine_start(self):
159159
self.process = Popen(["python", "sqlmap.py", "--api", "-c", configFile], shell=False, close_fds=not IS_WIN)
160160
elif os.path.exists(os.path.join(os.getcwd(), "sqlmap.py")):
161161
self.process = Popen(["python", "sqlmap.py", "--api", "-c", configFile], shell=False, cwd=os.getcwd(), close_fds=not IS_WIN)
162+
elif os.path.exists(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "sqlmap.py")):
163+
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)
162164
else:
163165
self.process = Popen(["sqlmap", "--api", "-c", configFile], shell=False, close_fds=not IS_WIN)
164166

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4747
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4848
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4949
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
50-
7912a54938f8d43bf6ad4adbd6de392c lib/core/settings.py
50+
276640cf3fa694e3cf7e94c207ba14ef lib/core/settings.py
5151
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5252
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5353
6306284edcccc185b2df085438572b0d lib/core/target.py
@@ -99,7 +99,7 @@ f5fb02487edaf9adaa81d54324c84f8f lib/techniques/error/use.py
9999
1e5532ede194ac9c083891c2f02bca93 lib/techniques/union/__init__.py
100100
94d7a22bb6725a91e84ba2cd9973e96d lib/techniques/union/test.py
101101
11ecf2effbe9f40b361843d546c3c521 lib/techniques/union/use.py
102-
8d99c07416df40350ff8836d9d79ebb5 lib/utils/api.py
102+
3e404b091e698cceadc1b9d2f1dae4d9 lib/utils/api.py
103103
37dfb641358669f62c2acedff241348b lib/utils/brute.py
104104
31b1e7eb489eac837db6a2bc1dcb7da7 lib/utils/crawler.py
105105
de9620f03231d8329ee8434884b6bacd lib/utils/deps.py

0 commit comments

Comments
 (0)