Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea7ba19

Browse files
committed
minor update
1 parent 2724767 commit ea7ba19

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lib/techniques/brute/use.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ def tableExists(tableFile):
3333
infoMsg = "checking table existence using items from '%s'" % tableFile
3434
logger.info(infoMsg)
3535

36-
infoMsg = "adding words used on web page to check list"
36+
infoMsg = "adding words used on web page to name check list"
3737
logger.info(infoMsg)
3838
pageWords = getPageTextWordsSet(kb.originalPage)
3939
for word in pageWords:
40-
word = word.lower()
41-
if len(word) > 1 and not word[0].isdigit() and word not in tableSet:
42-
tables.append(word)
40+
if len(word) > 2 and not word[0].isdigit() and word.lower() not in tableSet:
41+
tables.append(word.lower())
42+
if word.lower() != word:
43+
tables.append(word)
4344

4445
count = [0]
4546
length = len(tables)

0 commit comments

Comments
 (0)