mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
22 lines
510 B
Python
22 lines
510 B
Python
from lib.core.compat import xrange
|
|
|
|
|
|
|
|
def dependencies():
|
|
pass
|
|
|
|
def tamper(payload:str,**kwargs):
|
|
"""
|
|
Replace payload space characters with horizontal space(%09)
|
|
>>> tamper("SELECT id FROM users")
|
|
'SELECT%09id%09FROM%09users'
|
|
"""
|
|
retVal = payload
|
|
place_space = "%9"
|
|
if payload:
|
|
for i in xrange(len(payload)):
|
|
if payload[i].isspace():
|
|
rm_value = payload[i]
|
|
retVal = retVal.replace(rm_value, place_space)
|
|
|
|
return retVal
|