mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Tamper function(s) refactoring (really no need for returning headers as they are passed by reference)
This commit is contained in:
@@ -14,7 +14,7 @@ __priority__ = PRIORITY.NORMAL
|
||||
def dependencies():
|
||||
pass
|
||||
|
||||
def tamper(payload, headers):
|
||||
def tamper(payload, headers=None):
|
||||
"""
|
||||
Replaces quote character (') with a multi-byte combo %bf%27 together with
|
||||
generic comment at the end (to make it work)
|
||||
@@ -48,4 +48,4 @@ def tamper(payload, headers):
|
||||
retVal = re.sub("\s*(AND|OR)[\s(]+'[^']+'\s*(=|LIKE)\s*'.*", "", retVal)
|
||||
retVal += "-- "
|
||||
|
||||
return retVal, headers
|
||||
return retVal
|
||||
|
||||
Reference in New Issue
Block a user