mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-10 16:40:36 +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 DBMS
|
||||||
from lib.core.enums import PLACE
|
from lib.core.enums import PLACE
|
||||||
from lib.core.enums import PAYLOAD
|
from lib.core.enums import PAYLOAD
|
||||||
|
from lib.core.enums import SORTORDER
|
||||||
from lib.core.exception import sqlmapDataException
|
from lib.core.exception import sqlmapDataException
|
||||||
from lib.core.exception import sqlmapFilePathException
|
from lib.core.exception import sqlmapFilePathException
|
||||||
from lib.core.exception import sqlmapGenericException
|
from lib.core.exception import sqlmapGenericException
|
||||||
|
@ -1973,16 +1974,16 @@ def getInjectionTests():
|
||||||
retVal = conf.tests
|
retVal = conf.tests
|
||||||
|
|
||||||
def priorityFunction(test):
|
def priorityFunction(test):
|
||||||
retVal = 0
|
retVal = SORTORDER.FIRST
|
||||||
|
|
||||||
if test.stype == PAYLOAD.TECHNIQUE.UNION:
|
if test.stype == PAYLOAD.TECHNIQUE.UNION:
|
||||||
retVal = 3
|
retVal = SORTORDER.LAST
|
||||||
|
|
||||||
elif 'details' in test and 'dbms' in test.details:
|
elif 'details' in test and 'dbms' in test.details:
|
||||||
if test.details.dbms in getErrorParsedDBMSes():
|
if test.details.dbms in getErrorParsedDBMSes():
|
||||||
retVal = 1
|
retVal = SORTORDER.SECOND
|
||||||
else:
|
else:
|
||||||
retVal = 2
|
retVal = SORTORDER.THIRD
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,14 @@ class PRIORITY:
|
||||||
HIGHER = 50
|
HIGHER = 50
|
||||||
HIGHEST = 100
|
HIGHEST = 100
|
||||||
|
|
||||||
|
class SORTORDER:
|
||||||
|
FIRST = 0
|
||||||
|
SECOND = 1
|
||||||
|
THIRD = 2
|
||||||
|
FOURTH = 3
|
||||||
|
FIFTH = 4
|
||||||
|
LAST = 100
|
||||||
|
|
||||||
class DBMS:
|
class DBMS:
|
||||||
ACCESS = "Microsoft Access"
|
ACCESS = "Microsoft Access"
|
||||||
FIREBIRD = "Firebird"
|
FIREBIRD = "Firebird"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user