mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-23 22:49:50 +03:00
space 2htab tamper added for replacing horizontal space (%9) with spaces in payload string
This commit is contained in:
parent
90cbaa1249
commit
d68ac1b19a
22
tamper/space2htab.py
Normal file
22
tamper/space2htab.py
Normal 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
|
Loading…
Reference in New Issue
Block a user