mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
trivial code cleanup
This commit is contained in:
parent
383929c0c2
commit
475cc8b24b
|
@ -277,8 +277,8 @@ def checkSqlInjection(place, parameter, value):
|
|||
infoMsg = "testing '%s'" % title
|
||||
logger.info(infoMsg)
|
||||
|
||||
# Force back-end DBMS according to the current
|
||||
# test value for proper payload unescaping
|
||||
# Force back-end DBMS according to the current test DBMS value
|
||||
# for proper payload unescaping
|
||||
Backend.forceDbms(dbms[0] if isinstance(dbms, list) else dbms)
|
||||
|
||||
# Parse test's <request>
|
||||
|
|
|
@ -462,9 +462,9 @@ class Backend:
|
|||
elif Backend.getForcedDbms() is not None:
|
||||
dbms = Backend.getForcedDbms()
|
||||
elif Backend.getDbms() is not None:
|
||||
dbms = kb.dbms
|
||||
dbms = Backend.getDbms()
|
||||
elif conf.get("dbms"):
|
||||
dbms = conf.dbms
|
||||
dbms = conf.get("dbms")
|
||||
elif Backend.getErrorParsedDBMSes():
|
||||
dbms = unArrayizeValue(Backend.getErrorParsedDBMSes())
|
||||
elif kb.get("injection") and kb.injection.dbms:
|
||||
|
|
Loading…
Reference in New Issue
Block a user