mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
18 lines
405 B
Python
18 lines
405 B
Python
|
import re
|
||
|
|
||
|
from lib.core.convert import urldecode
|
||
|
from lib.core.convert import urlencode
|
||
|
|
||
|
"""
|
||
|
Tampering ' ' -> /**/
|
||
|
"""
|
||
|
def tamper(place, value):
|
||
|
if value:
|
||
|
if place != "URI":
|
||
|
value = urldecode(value)
|
||
|
while value.find(" ") > -1:
|
||
|
value = value.replace(" ", "/**/")
|
||
|
if place != "URI":
|
||
|
value = urlencode(value)
|
||
|
return value
|