mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
minor update (generic tests now have bigger priority in test queue than parsed DBMS related ones)
This commit is contained in:
parent
1c86ec374e
commit
1a079c62cb
|
@ -1936,10 +1936,17 @@ def getInjectionTests():
|
|||
|
||||
retVal = conf.tests
|
||||
|
||||
def priorityFunction(test):
|
||||
retVal = 0
|
||||
if 'details' in test and 'dbms' in test.details:
|
||||
if test.details.dbms in getErrorParsedDBMSes():
|
||||
retVal = 1
|
||||
else:
|
||||
retVal = 2
|
||||
return retVal
|
||||
|
||||
if getErrorParsedDBMSes():
|
||||
retVal = sorted(retVal, key=lambda test: False \
|
||||
if 'details' in test and 'dbms' in test.details \
|
||||
and test.details.dbms in getErrorParsedDBMSes() else True)
|
||||
retVal = sorted(retVal, key=priorityFunction)
|
||||
|
||||
return retVal
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user