mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-22 06:09:02 +00:00
Another update for an Issue #352 and couple of fixes
This commit is contained in:
@@ -18,9 +18,8 @@ def tamper(payload, **kwargs):
|
||||
"""
|
||||
Base64 all characters in a given payload
|
||||
|
||||
Example:
|
||||
* Input: 1' AND SLEEP(5)#
|
||||
* Output: MScgQU5EIFNMRUVQKDUpIw==
|
||||
>>> tamper("1' AND SLEEP(5)#")
|
||||
'MScgQU5EIFNMRUVQKDUpIw=='
|
||||
"""
|
||||
|
||||
return base64.b64encode(payload) if payload else payload
|
||||
|
||||
Reference in New Issue
Block a user