minor revisit of encoding tampering scripts

This commit is contained in:
Miroslav Stampar 2011-04-04 08:11:11 +00:00
parent e957c4400c
commit 33d987805d
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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