mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-02-05 23:19:45 +03:00
23 lines
511 B
Python
23 lines
511 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
|