mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
minor revisit of encoding tampering scripts
This commit is contained in:
parent
e957c4400c
commit
33d987805d
|
@ -16,8 +16,8 @@ __priority__ = PRIORITY.LOWEST
|
||||||
|
|
||||||
def tamper(value):
|
def tamper(value):
|
||||||
"""
|
"""
|
||||||
Replaces value with urlencode of non-encoded chars in value
|
Urlencodes all characters in a given value (not processing already encoded)
|
||||||
Example: 'SELECT%20FIELD%20FROM%20TABLE' becomes '%53%45%4c%45%43%54%20%46%49%45%4c%44%20%46%52%4f%4d%20%54%41%42%4c%45'
|
Example: 'SELECT FIELD FROM%20TABLE' becomes '%53%45%4c%45%43%54%20%46%49%45%4c%44%20%46%52%4f%4d%20%54%41%42%4c%45'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
retVal = value
|
retVal = value
|
||||||
|
|
|
@ -16,8 +16,8 @@ __priority__ = PRIORITY.LOWEST
|
||||||
|
|
||||||
def tamper(value):
|
def tamper(value):
|
||||||
"""
|
"""
|
||||||
Replaces value with unicode-urlencode of non-encoded chars in value
|
Replaces value with unicode-urlencode of non-encoded chars in value (not processing already encoded)
|
||||||
Example: 'SELECT%20FIELD%20FROM%20TABLE' becomes '%u0053%u0045%u004c%u0045%u0043%u0054%u0020%u0046%u0049%u0045%u004c%u0044%u0020%u0046%u0052%u004f%u004d%u0020%u0054%u0041%u0042%u004c%u0045'
|
Example: 'SELECT FIELD%20FROM TABLE' becomes '%u0053%u0045%u004c%u0045%u0043%u0054%u0020%u0046%u0049%u0045%u004c%u0044%u0020%u0046%u0052%u004f%u004d%u0020%u0054%u0041%u0042%u004c%u0045'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
retVal = value
|
retVal = value
|
||||||
|
|
Loading…
Reference in New Issue
Block a user