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
|
|
@ -12,7 +12,7 @@ __priority__ = PRIORITY.LOWEST
|
|||
def dependencies():
|
||||
pass
|
||||
|
||||
def tamper(payload, headers):
|
||||
def tamper(payload, headers=None):
|
||||
"""
|
||||
Appends encoded NULL byte character at the end of payload
|
||||
|
||||
|
|
@ -31,4 +31,4 @@ def tamper(payload, headers):
|
|||
Reference: http://projects.webappsec.org/w/page/13246949/Null-Byte-Injection
|
||||
"""
|
||||
|
||||
return "%s%%00" % payload if payload else payload, headers
|
||||
return "%s%%00" % payload if payload else payload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue