mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
16 lines
437 B
Python
16 lines
437 B
Python
import re
|
|
|
|
from lib.core.convert import urlencode
|
|
from lib.core.exception import sqlmapUnsupportedFeatureException
|
|
|
|
"""
|
|
Tampering value -> urlencode(value)
|
|
"""
|
|
def tamper(place, value):
|
|
if value:
|
|
if place != "URI":
|
|
value = urlencode(value)
|
|
else:
|
|
raise sqlmapUnsupportedFeatureException, "can't use tampering module 'doubleencode.py' with 'URI' type injections"
|
|
return value
|