mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Fixes #3391)
This commit is contained in:
parent
560ff4154b
commit
e7ed2bbcbb
|
@ -41,6 +41,9 @@ def tamper(payload, **kwargs):
|
||||||
retVal = payload
|
retVal = payload
|
||||||
|
|
||||||
if payload:
|
if payload:
|
||||||
|
prefix, suffix = '+' * len(re.search(r"\A(\+*)", payload).group(0)), '+' * len(re.search(r"(\+*)\Z", payload).group(0))
|
||||||
|
retVal = retVal.strip('+')
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
indexes = zeroDepthSearch(retVal, '+')
|
indexes = zeroDepthSearch(retVal, '+')
|
||||||
|
|
||||||
|
@ -76,4 +79,6 @@ def tamper(payload, **kwargs):
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
retVal = "%s%s%s" % (prefix, retVal, suffix)
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
|
@ -42,6 +42,9 @@ def tamper(payload, **kwargs):
|
||||||
retVal = payload
|
retVal = payload
|
||||||
|
|
||||||
if payload:
|
if payload:
|
||||||
|
prefix, suffix = '+' * len(re.search(r"\A(\+*)", payload).group(0)), '+' * len(re.search(r"(\+*)\Z", payload).group(0))
|
||||||
|
retVal = retVal.strip('+')
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
indexes = zeroDepthSearch(retVal, '+')
|
indexes = zeroDepthSearch(retVal, '+')
|
||||||
|
|
||||||
|
@ -89,4 +92,6 @@ def tamper(payload, **kwargs):
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
retVal = "%s%s%s" % (prefix, retVal, suffix)
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user