minor update

This commit is contained in:
Miroslav Stampar 2010-10-14 06:40:56 +00:00
parent 058e1aecb4
commit cf73d9c799
3 changed files with 15 additions and 0 deletions

13
tamper/randomblanks.py Normal file
View File

@ -0,0 +1,13 @@
import re
import string
from lib.core.common import randomRange
from lib.core.exception import sqlmapUnsupportedFeatureException
"""
value -> value with inserted random blanks (e.g., INSERT->IN/**/S/**/ERT)
"""
#TODO: all
#TODO: only do it for deepness = 0 regarding '"
def tamper(place, value):
return value

View File

@ -7,6 +7,7 @@ from lib.core.exception import sqlmapUnsupportedFeatureException
""" """
value -> chars from value with random case (e.g., INSERT->InsERt) value -> chars from value with random case (e.g., INSERT->InsERt)
""" """
#TODO: only do it for deepness = 0 regarding '"
def tamper(place, value): def tamper(place, value):
retVal = value retVal = value
if value: if value:

View File

@ -6,6 +6,7 @@ from lib.core.convert import urlencode
""" """
' ' -> /**/ (e.g., SELECT id FROM users->SELECT/**/id/**/FROM users) ' ' -> /**/ (e.g., SELECT id FROM users->SELECT/**/id/**/FROM users)
""" """
#TODO: only do it for deepness = 0 regarding '"
def tamper(place, value): def tamper(place, value):
if value: if value:
if place != "URI": if place != "URI":