This commit is contained in:
Miroslav Stampar 2011-01-13 11:24:03 +00:00
parent af4ee81e62
commit ac5b49f555
2 changed files with 13 additions and 4 deletions

View File

@ -50,6 +50,7 @@ from lib.core.convert import urlencode
from lib.core.enums import DBMS
from lib.core.enums import PLACE
from lib.core.enums import PAYLOAD
from lib.core.enums import SORTORDER
from lib.core.exception import sqlmapDataException
from lib.core.exception import sqlmapFilePathException
from lib.core.exception import sqlmapGenericException
@ -1973,16 +1974,16 @@ def getInjectionTests():
retVal = conf.tests
def priorityFunction(test):
retVal = 0
retVal = SORTORDER.FIRST
if test.stype == PAYLOAD.TECHNIQUE.UNION:
retVal = 3
retVal = SORTORDER.LAST
elif 'details' in test and 'dbms' in test.details:
if test.details.dbms in getErrorParsedDBMSes():
retVal = 1
retVal = SORTORDER.SECOND
else:
retVal = 2
retVal = SORTORDER.THIRD
return retVal

View File

@ -16,6 +16,14 @@ class PRIORITY:
HIGHER = 50
HIGHEST = 100
class SORTORDER:
FIRST = 0
SECOND = 1
THIRD = 2
FOURTH = 3
FIFTH = 4
LAST = 100
class DBMS:
ACCESS = "Microsoft Access"
FIREBIRD = "Firebird"