mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-21 03:03:50 +00:00
Minor code refactoring
This commit is contained in:
parent
041abb56e2
commit
47565f9459
5 changed files with 8 additions and 9 deletions
|
|
@ -2077,8 +2077,8 @@ def getErrorParsedDBMSes():
|
|||
def getIdentifiedDBMS():
|
||||
dbms = None
|
||||
|
||||
if kb.misc.fpDbms is not None:
|
||||
dbms = kb.misc.fpDbms
|
||||
if kb.misc.forcedDbms is not None:
|
||||
dbms = kb.misc.forcedDbms
|
||||
elif kb.dbms is not None:
|
||||
dbms = kb.dbms
|
||||
elif conf.dbms is not None:
|
||||
|
|
|
|||
|
|
@ -1171,7 +1171,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.misc.start = ":%s:" % randomStr(length=3, lowercase=True)
|
||||
kb.misc.stop = ":%s:" % randomStr(length=3, lowercase=True)
|
||||
kb.misc.space = ":%s:" % randomStr(length=1, lowercase=True)
|
||||
kb.misc.fpDbms = None
|
||||
kb.misc.forcedDbms = None
|
||||
|
||||
if flushAll:
|
||||
kb.keywords = set(getFileItems(paths.SQL_KEYWORDS))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue