mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-30 03:19:04 +00:00
working on issue #12
This commit is contained in:
@@ -19,7 +19,7 @@ __priority__ = PRIORITY.HIGHER
|
||||
def dependencies():
|
||||
singleTimeWarnMessage("tamper script '%s' is only meant to be run against %s >= 5.1.13" % (os.path.basename(__file__).split(".")[0], DBMS.MYSQL))
|
||||
|
||||
def tamper(payload):
|
||||
def tamper(payload, headers):
|
||||
"""
|
||||
Encloses each keyword with versioned MySQL comment
|
||||
|
||||
@@ -51,4 +51,4 @@ def tamper(payload):
|
||||
retVal = re.sub(r"(?<=\W)(?P<word>[A-Za-z_]+)(?=\W|\Z)", lambda match: process(match), retVal)
|
||||
retVal = retVal.replace(" /*!", "/*!").replace("*/ ", "*/")
|
||||
|
||||
return retVal
|
||||
return retVal, headers
|
||||
|
||||
Reference in New Issue
Block a user