MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / getPageWordSet

Function getPageWordSet

lib/core/common.py:2245–2259  ·  view source on GitHub ↗

Returns word set used in page content >>> sorted(getPageWordSet(u' foobar test ')) == [u'foobar', u'test'] True

(page)

Source from the content-addressed store, hash-verified

2243 return retVal
2244
2245def getPageWordSet(page):
2246 """
2247 Returns word set used in page content
2248
2249 >>> sorted(getPageWordSet(u'<html><title>foobar</title><body>test</body></html>')) == [u'foobar', u'test']
2250 True
2251 """
2252
2253 retVal = set()
2254
2255 # only if the page's charset has been successfully identified
2256 if isinstance(page, six.string_types):
2257 retVal = set(_.group(0) for _ in re.finditer(r"\w+", getFilteredPageContent(page)))
2258
2259 return retVal
2260
2261def showStaticWords(firstPage, secondPage, minLength=3):
2262 """

Callers 2

_addPageTextWordsFunction · 0.90
showStaticWordsFunction · 0.85

Calls 1

getFilteredPageContentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…