mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-27 00:13:08 +03:00
update
This commit is contained in:
parent
43a3ac2c3a
commit
120d6a4a7c
|
@ -8,7 +8,6 @@ from lib.core.exception import sqlmapUnsupportedFeatureException
|
||||||
value -> urlencode of nonencoded chars in value
|
value -> urlencode of nonencoded chars in value
|
||||||
"""
|
"""
|
||||||
def tamper(place, value):
|
def tamper(place, value):
|
||||||
raise sqlmapUnsupportedFeatureException, "can't use tampering module 'charencode.py' with 'URI' type injections"
|
|
||||||
retVal = value
|
retVal = value
|
||||||
if value:
|
if value:
|
||||||
if place != "URI":
|
if place != "URI":
|
||||||
|
@ -22,5 +21,5 @@ def tamper(place, value):
|
||||||
retVal += '%%%X' % ord(value[i])
|
retVal += '%%%X' % ord(value[i])
|
||||||
i += 1
|
i += 1
|
||||||
else:
|
else:
|
||||||
raise sqlmapUnsupportedFeatureException, "can't use tampering module 'charencode.py' with 'URI' type injections"
|
raise sqlmapUnsupportedFeatureException, "can't use tampering module '%s' with 'URI' type injections" % __name__
|
||||||
return retVal
|
return retVal
|
||||||
|
|
|
@ -11,5 +11,5 @@ def tamper(place, value):
|
||||||
if place != "URI":
|
if place != "URI":
|
||||||
value = urlencode(value)
|
value = urlencode(value)
|
||||||
else:
|
else:
|
||||||
raise sqlmapUnsupportedFeatureException, "can't use tampering module 'doubleencode.py' with 'URI' type injections"
|
raise sqlmapUnsupportedFeatureException, "can't use tampering module '%s' with 'URI' type injections" % __name__
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in New Issue
Block a user