space 2htab tamper added for replacing horizontal space (%9) with spaces in payload string

This commit is contained in:
HeisenbergCipherCracker 2024-01-26 23:47:23 -05:00
parent 90cbaa1249
commit d68ac1b19a

22
tamper/space2htab.py Normal file
View File

@ -0,0 +1,22 @@
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