Tamper function(s) refactoring (really no need for returning headers as they are passed by reference)

This commit is contained in:
Miroslav Stampar
2012-10-25 10:10:23 +02:00
parent 54fbb22ab8
commit 12fc9442b9
36 changed files with 70 additions and 72 deletions

View File

@@ -9,7 +9,7 @@ from lib.core.enums import PRIORITY
__priority__ = PRIORITY.HIGH
def tamper(payload, headers):
def tamper(payload, headers=None):
"""
Appends 'sp_password' to the end of the payload for automatic obfuscation from DBMS logs
@@ -30,4 +30,4 @@ def tamper(payload, headers):
if payload:
retVal = "%s%ssp_password" % (payload, "-- " if not any(_ if _ in payload else None for _ in ('#', "-- ")) else "")
return retVal, headers
return retVal