mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
show static words in a sorted manner
This commit is contained in:
parent
255b21f2f4
commit
f07608ef4d
|
@ -1150,9 +1150,16 @@ def showStaticWords(firstPage, secondPage):
|
|||
commonText = firstPage[match[0]:match[0]+match[2]]
|
||||
commonWords = getPageTextWordsSet(commonText)
|
||||
infoMsg = "static words: "
|
||||
|
||||
if commonWords:
|
||||
commonWords = list(commonWords)
|
||||
commonWords.sort(lambda a, b: cmp(a.lower(), b.lower()))
|
||||
|
||||
for word in commonWords:
|
||||
if len(word) > 2:
|
||||
infoMsg += "'%s', " % word
|
||||
|
||||
infoMsg = infoMsg.rstrip(", ")
|
||||
logger.info(infoMsg)
|
||||
|
||||
def decloakToNamedTemporaryFile(filepath, name=None):
|
||||
|
|
|
@ -1064,7 +1064,7 @@ def __setKnowledgeBaseAttributes():
|
|||
kb.injPlace = None
|
||||
kb.injType = None
|
||||
kb.injections = xmlobject.XMLFile(path=paths.INJECTIONS_XML)
|
||||
kb.keywords = getFileItems(paths.SQLKEYWORDS)
|
||||
kb.keywords = set(getFileItems(paths.SQLKEYWORDS))
|
||||
kb.nullConnection = None
|
||||
|
||||
# Back-end DBMS underlying operating system fingerprint via banner (-b)
|
||||
|
|
Loading…
Reference in New Issue
Block a user