mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
21 lines
544 B
Python
21 lines
544 B
Python
import re
|
|
import string
|
|
|
|
from lib.core.convert import urlencode
|
|
from lib.core.common import randomRange
|
|
from lib.core.exception import sqlmapUnsupportedFeatureException
|
|
|
|
"""
|
|
value -> random case of chars in value
|
|
"""
|
|
def tamper(place, value):
|
|
retVal = value
|
|
if value:
|
|
retVal = ""
|
|
for i in xrange(len(value)):
|
|
if value[i].isalpha():
|
|
retVal += value[i].upper() if randomRange(0,1) else value[i].lower()
|
|
else:
|
|
retVal += value[i]
|
|
return retVal
|