mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
update
This commit is contained in:
parent
af4ee81e62
commit
ac5b49f555
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user