sqlmap/tamper/doubleencode.py
Miroslav Stampar 120d6a4a7c update
2010-10-13 20:59:06 +00:00

16 lines
435 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 '%s' with 'URI' type injections" % __name__
return value