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

Skip to content

Commit 5f3235e

Browse files
committed
Fixes #2551
1 parent dfe4261 commit 5f3235e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,12 +1196,12 @@ def cleanQuery(query):
11961196

11971197
for sqlStatements in SQL_STATEMENTS.values():
11981198
for sqlStatement in sqlStatements:
1199-
sqlStatementEsc = sqlStatement.replace("(", "\\(")
1200-
queryMatch = re.search("(%s)" % sqlStatementEsc, query, re.I)
1199+
queryMatch = re.search("(?i)\b(%s)\b" % sqlStatement.replace("(", "").replace(")", "").strip(), query)
12011200

12021201
if queryMatch and "sys_exec" not in query:
12031202
retVal = retVal.replace(queryMatch.group(1), sqlStatement.upper())
12041203

1204+
12051205
return retVal
12061206

12071207
def setPaths(rootPath):

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.5.16"
22+
VERSION = "1.1.5.17"
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 @@ fec857280fd553ee7e9b49fdfe104402 lib/controller/checks.py
2727
310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py
2828
60599fbb43b7d5e658b84371d3ad0b42 lib/core/agent.py
2929
6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py
30-
6c8507976da31524e7afa3886d13bf4f lib/core/common.py
30+
2fddcfef540e6545e7e315225db9aaa7 lib/core/common.py
3131
5065a4242a8cccf72f91e22e1007ae63 lib/core/convert.py
3232
a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
3333
7936d78b1a7f1f008ff92bf2f88574ba lib/core/datatype.py
@@ -46,7 +46,7 @@ d85f2f63ffcb6135400339f9a7595a7b lib/core/option.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
8c82b503090da324c876065bc1b7338c lib/core/settings.py
49+
5d772fb6c8f4c03f8a8a42166c72761d lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5252
8136241fdbdb99a5dc0e51ba72918f6e lib/core/target.py

0 commit comments

Comments
 (0)