mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-02 02:43:35 +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]]
|
commonText = firstPage[match[0]:match[0]+match[2]]
|
||||||
commonWords = getPageTextWordsSet(commonText)
|
commonWords = getPageTextWordsSet(commonText)
|
||||||
infoMsg = "static words: "
|
infoMsg = "static words: "
|
||||||
|
|
||||||
|
if commonWords:
|
||||||
|
commonWords = list(commonWords)
|
||||||
|
commonWords.sort(lambda a, b: cmp(a.lower(), b.lower()))
|
||||||
|
|
||||||
for word in commonWords:
|
for word in commonWords:
|
||||||
if len(word) > 2:
|
if len(word) > 2:
|
||||||
infoMsg += "'%s', " % word
|
infoMsg += "'%s', " % word
|
||||||
|
|
||||||
|
infoMsg = infoMsg.rstrip(", ")
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
def decloakToNamedTemporaryFile(filepath, name=None):
|
def decloakToNamedTemporaryFile(filepath, name=None):
|
||||||
|
|
|
@ -1064,7 +1064,7 @@ def __setKnowledgeBaseAttributes():
|
||||||
kb.injPlace = None
|
kb.injPlace = None
|
||||||
kb.injType = None
|
kb.injType = None
|
||||||
kb.injections = xmlobject.XMLFile(path=paths.INJECTIONS_XML)
|
kb.injections = xmlobject.XMLFile(path=paths.INJECTIONS_XML)
|
||||||
kb.keywords = getFileItems(paths.SQLKEYWORDS)
|
kb.keywords = set(getFileItems(paths.SQLKEYWORDS))
|
||||||
kb.nullConnection = None
|
kb.nullConnection = None
|
||||||
|
|
||||||
# Back-end DBMS underlying operating system fingerprint via banner (-b)
|
# Back-end DBMS underlying operating system fingerprint via banner (-b)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user