added concept of tamper script priority

This commit is contained in:
Miroslav Stampar 2010-11-04 10:29:40 +00:00
parent 303359e8b1
commit 18aea251b3
13 changed files with 85 additions and 1 deletions

View file

@ -7,6 +7,10 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.HIGHEST
def tamper(value):
"""
Replaces '>' with 'NOT BETWEEN 0 AND #'

View file

@ -10,6 +10,9 @@ See the file 'doc/COPYING' for copying permission
import string
from lib.core.exception import sqlmapUnsupportedFeatureException
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.LOWEST
def tamper(value):
"""

View file

@ -10,6 +10,9 @@ See the file 'doc/COPYING' for copying permission
import string
from lib.core.exception import sqlmapUnsupportedFeatureException
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.LOWEST
def tamper(value):
"""

View file

@ -7,6 +7,10 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.HIGHEST
def tamper(value):
"""
Replaces 'IFNULL(A, B)' with 'IF(ISNULL(A), B, A)'

View file

@ -11,6 +11,9 @@ import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.NORMAL
def tamper(value):
"""

View file

@ -11,6 +11,9 @@ import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(value):
"""

View file

@ -7,6 +7,10 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(value):
"""
Replaces ' ' with '/**/'

View file

@ -7,6 +7,10 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(value):
"""
Replaces ' ' with '+'

View file

@ -9,6 +9,10 @@ See the file 'doc/COPYING' for copying permission
import random
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(value):
"""
Replaces ' ' with a random blank char from a set ('\r', '\n', '\t')

View file

@ -9,6 +9,9 @@ See the file 'doc/COPYING' for copying permission
from lib.core.convert import urlencode
from lib.core.exception import sqlmapUnsupportedFeatureException
from lib.core.priority import PRIORITY
__priority__ = PRIORITY.LOWER
def tamper(value):
"""