mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Fixes #3634
This commit is contained in:
@@ -37,12 +37,16 @@ def tamper(payload, **kwargs):
|
||||
>>> random.seed(0)
|
||||
>>> tamper('INSERT')
|
||||
'InSeRt'
|
||||
>>> tamper('f()')
|
||||
'f()'
|
||||
>>> tamper('function()')
|
||||
'FuNcTiOn()'
|
||||
"""
|
||||
|
||||
retVal = payload
|
||||
|
||||
if payload:
|
||||
for match in re.finditer(r"\b[A-Za-z_]+\b", retVal):
|
||||
for match in re.finditer(r"\b[A-Za-z_]{2,}\b", retVal):
|
||||
word = match.group()
|
||||
|
||||
if word.upper() in kb.keywords or ("%s(" % word) in payload:
|
||||
|
||||
Reference in New Issue
Block a user