mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
minor beautification (WordsSet is considered as a bad english)
This commit is contained in:
parent
4b94ef2b7c
commit
83af83da9e
|
@ -1418,7 +1418,7 @@ def getFilteredPageContent(page, onlyText=True):
|
|||
|
||||
return retVal
|
||||
|
||||
def getPageTextWordsSet(page):
|
||||
def getPageWordSet(page):
|
||||
retVal = None
|
||||
|
||||
# only if the page's charset has been successfully identified
|
||||
|
@ -1436,7 +1436,7 @@ def showStaticWords(firstPage, secondPage):
|
|||
secondPage = getFilteredPageContent(secondPage)
|
||||
match = SequenceMatcher(None, firstPage, secondPage).find_longest_match(0, len(firstPage), 0, len(secondPage))
|
||||
commonText = firstPage[match[0]:match[0]+match[2]]
|
||||
commonWords = getPageTextWordsSet(commonText)
|
||||
commonWords = getPageWordSet(commonText)
|
||||
|
||||
infoMsg = "static words: "
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ from lib.core.common import dataToStdout
|
|||
from lib.core.common import filterListValue
|
||||
from lib.core.common import getFileItems
|
||||
from lib.core.common import Backend
|
||||
from lib.core.common import getPageTextWordsSet
|
||||
from lib.core.common import getPageWordSet
|
||||
from lib.core.common import popValue
|
||||
from lib.core.common import pushValue
|
||||
from lib.core.common import randomInt
|
||||
|
@ -41,7 +41,7 @@ def __addPageTextWords():
|
|||
|
||||
infoMsg = "adding words used on web page to the check list"
|
||||
logger.info(infoMsg)
|
||||
pageWords = getPageTextWordsSet(kb.originalPage)
|
||||
pageWords = getPageWordSet(kb.originalPage)
|
||||
|
||||
for word in pageWords:
|
||||
word = word.lower()
|
||||
|
|
Loading…
Reference in New Issue
Block a user