minor update

This commit is contained in:
Miroslav Stampar 2011-01-13 11:08:29 +00:00
parent ee4727850c
commit ece2eb31ca
2 changed files with 4 additions and 3 deletions

View File

@ -89,8 +89,7 @@ def checkSqlInjection(place, parameter, value):
# Set the flag for sql injection test mode # Set the flag for sql injection test mode
kb.testMode = True kb.testMode = True
#for test in getInjectionTests(): for test in getInjectionTests():
for test in conf.tests:
try: try:
if kb.endDetection: if kb.endDetection:
break break

View File

@ -1974,7 +1974,9 @@ def getInjectionTests():
def priorityFunction(test): def priorityFunction(test):
retVal = 0 retVal = 0
if 'details' in test and 'dbms' in test.details: if test.stype == PAYLOAD.TECHNIQUE.UNION:
retVal = 3
elif 'details' in test and 'dbms' in test.details:
if test.details.dbms in getErrorParsedDBMSes(): if test.details.dbms in getErrorParsedDBMSes():
retVal = 1 retVal = 1
else: else: