Skip to content

Commit 3d244ea

Browse files
committed
Fixes #5549
1 parent 90cbaa1 commit 3d244ea

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

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

tamper/if2case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from lib.core.compat import xrange
99
from lib.core.enums import PRIORITY
10+
from lib.core.settings import REPLACEMENT_MARKER
1011

1112
__priority__ = PRIORITY.HIGHEST
1213

@@ -36,6 +37,7 @@ def tamper(payload, **kwargs):
3637
"""
3738

3839
if payload and payload.find("IF") > -1:
40+
payload = payload.replace("()", REPLACEMENT_MARKER)
3941
while payload.find("IF(") > -1:
4042
index = payload.find("IF(")
4143
depth = 1
@@ -64,4 +66,6 @@ def tamper(payload, **kwargs):
6466
else:
6567
break
6668

69+
payload = payload.replace(REPLACEMENT_MARKER, "()")
70+
6771
return payload

0 commit comments

Comments
 (0)