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

Skip to content

Commit 5efe322

Browse files
committed
Patch related to the #3282
1 parent e005ba3 commit 5efe322

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/core/agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ def prefixQuery(self, expression, prefix=None, where=None, clause=None):
246246
else:
247247
query = kb.injection.prefix or prefix or ""
248248

249+
if "SELECT '[RANDSTR]'" in query: # escaping of pre-WHERE prefixes
250+
query = query.replace("'[RANDSTR]'", unescaper.escape(randomStr(), quote=False))
251+
249252
if not (expression and expression[0] == ';') and not (query and query[-1] in ('(', ')') and expression and expression[0] in ('(', ')')) and not (query and query[-1] == '('):
250253
query += " "
251254

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.10.13"
22+
VERSION = "1.2.10.14"
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)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ c1bccc94522d3425a372dcd57f78418e extra/wafdetectify/wafdetectify.py
2727
d6deacb76e1f479b3c690c215fad1c08 lib/controller/controller.py
2828
c7443613a0a2505b1faec931cee2a6ef lib/controller/handler.py
2929
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
30-
effd6e6a07b13fd8b3803ed4b89b06e2 lib/core/agent.py
30+
6f9bc9a98821572b68819b8f12de6b59 lib/core/agent.py
3131
c347f085bd561adfa26d3a9512e5f3b9 lib/core/bigarray.py
3232
11448f59efbfdceff2437239e36d9dc5 lib/core/common.py
3333
0d082da16c388b3445e656e0760fb582 lib/core/convert.py
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
d3595e4cbdf8fa81c648a8caa339a444 lib/core/settings.py
52+
2e35f0241f73d87a34eb070faa227244 lib/core/settings.py
5353
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
62bc180e3e828949ffb342a8f756c183 lib/core/target.py

0 commit comments

Comments
 (0)