mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
minor update
This commit is contained in:
parent
a71fcfbcc9
commit
4b641afc46
|
@ -1,11 +1,15 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from lib.core.convert import urlencode
|
from lib.core.convert import urlencode
|
||||||
|
from lib.core.exception import sqlmapUnsupportedFeatureException
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Tampering value -> urlencode(value)
|
Tampering value -> urlencode(value)
|
||||||
"""
|
"""
|
||||||
def tamper(place, value):
|
def tamper(place, value):
|
||||||
if value:
|
if value:
|
||||||
|
if place != "URI":
|
||||||
value = urlencode(value)
|
value = urlencode(value)
|
||||||
|
else:
|
||||||
|
raise sqlmapUnsupportedFeatureException, "can't use tampering module 'doubleencode.py' with 'URI' type injections"
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in New Issue
Block a user