File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1150,9 +1150,16 @@ def showStaticWords(firstPage, secondPage):
11501150 commonText = firstPage [match [0 ]:match [0 ]+ match [2 ]]
11511151 commonWords = getPageTextWordsSet (commonText )
11521152 infoMsg = "static words: "
1153+
1154+ if commonWords :
1155+ commonWords = list (commonWords )
1156+ commonWords .sort (lambda a , b : cmp (a .lower (), b .lower ()))
1157+
11531158 for word in commonWords :
11541159 if len (word ) > 2 :
11551160 infoMsg += "'%s', " % word
1161+
1162+ infoMsg = infoMsg .rstrip (", " )
11561163 logger .info (infoMsg )
11571164
11581165def decloakToNamedTemporaryFile (filepath , name = None ):
Original file line number Diff line number Diff line change @@ -1064,7 +1064,7 @@ def __setKnowledgeBaseAttributes():
10641064 kb .injPlace = None
10651065 kb .injType = None
10661066 kb .injections = xmlobject .XMLFile (path = paths .INJECTIONS_XML )
1067- kb .keywords = getFileItems (paths .SQLKEYWORDS )
1067+ kb .keywords = set ( getFileItems (paths .SQLKEYWORDS ) )
10681068 kb .nullConnection = None
10691069
10701070 # Back-end DBMS underlying operating system fingerprint via banner (-b)
You can’t perform that action at this time.
0 commit comments