mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
introducing new style for copyright header
This commit is contained in:
parent
f07608ef4d
commit
d970e260b9
7 changed files with 44 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2006-2010 sqlmap project (http://sqlmap.sourceforge.net/)
|
||||
# See the file doc/COPYING for copying permission.
|
||||
|
||||
import re
|
||||
import string
|
||||
|
||||
|
|
@ -8,10 +11,12 @@ value -> urlencode of nonencoded chars in value (e.g., SELECT%20FIELD%20FROM%20T
|
|||
"""
|
||||
def tamper(place, value):
|
||||
retVal = value
|
||||
|
||||
if value:
|
||||
if place != "URI":
|
||||
retVal = ""
|
||||
i = 0
|
||||
|
||||
while i < len(value):
|
||||
if value[i] == '%' and (i < len(value) - 2) and value[i+1] in string.hexdigits and value[i+2] in string.hexdigits:
|
||||
retVal += value[i:i+3]
|
||||
|
|
@ -21,4 +26,5 @@ def tamper(place, value):
|
|||
i += 1
|
||||
else:
|
||||
raise sqlmapUnsupportedFeatureException, "can't use tampering module '%s' with 'URI' type injections" % __name__
|
||||
|
||||
return retVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue