File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.7.10.1 "
23
+ VERSION = "1.7.10.2 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 7
7
8
8
from lib .core .compat import xrange
9
9
from lib .core .enums import PRIORITY
10
+ from lib .core .settings import REPLACEMENT_MARKER
10
11
11
12
__priority__ = PRIORITY .HIGHEST
12
13
@@ -36,6 +37,7 @@ def tamper(payload, **kwargs):
36
37
"""
37
38
38
39
if payload and payload .find ("IF" ) > - 1 :
40
+ payload = payload .replace ("()" , REPLACEMENT_MARKER )
39
41
while payload .find ("IF(" ) > - 1 :
40
42
index = payload .find ("IF(" )
41
43
depth = 1
@@ -64,4 +66,6 @@ def tamper(payload, **kwargs):
64
66
else :
65
67
break
66
68
69
+ payload = payload .replace (REPLACEMENT_MARKER , "()" )
70
+
67
71
return payload
You can’t perform that action at this time.
0 commit comments