mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Tamper function(s) refactoring (really no need for returning headers as they are passed by reference)
This commit is contained in:
parent
54fbb22ab8
commit
12fc9442b9
36 changed files with 70 additions and 72 deletions
|
|
@ -13,7 +13,7 @@ from lib.core.enums import PRIORITY
|
|||
|
||||
__priority__ = PRIORITY.LOW
|
||||
|
||||
def tamper(payload, headers):
|
||||
def tamper(payload, headers=None):
|
||||
"""
|
||||
Add random comments to SQL keywords
|
||||
Example: 'INSERT' becomes 'IN/**/S/**/ERT'
|
||||
|
|
@ -37,4 +37,4 @@ def tamper(payload, headers):
|
|||
_ += word[-1]
|
||||
retVal = retVal.replace(word, _)
|
||||
|
||||
return retVal, headers
|
||||
return retVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue