mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
17 lines
411 B
Python
17 lines
411 B
Python
import re
|
|
|
|
from lib.core.convert import urldecode
|
|
from lib.core.convert import urlencode
|
|
|
|
"""
|
|
' ' -> /**/ (e.g., SELECT id FROM users->SELECT/**/id/**/FROM users)
|
|
"""
|
|
def tamper(place, value):
|
|
if value:
|
|
if place != "URI":
|
|
value = urldecode(value)
|
|
value = value.replace(" ", "/**/")
|
|
if place != "URI":
|
|
value = urlencode(value)
|
|
return value
|