mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +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
|
|
@ -14,7 +14,7 @@ __priority__ = PRIORITY.LOWEST
|
|||
def dependencies():
|
||||
pass
|
||||
|
||||
def tamper(payload, headers):
|
||||
def tamper(payload, headers=None):
|
||||
"""
|
||||
Base64 all characters in a given payload
|
||||
|
||||
|
|
@ -23,4 +23,4 @@ def tamper(payload, headers):
|
|||
* Output: MScgQU5EIFNMRUVQKDUpIw==
|
||||
"""
|
||||
|
||||
return base64.b64encode(payload) if payload else payload, headers
|
||||
return base64.b64encode(payload) if payload else payload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue