From ea7ba19f6bb0408d7662c8a22255be775a79908b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 25 Dec 2010 09:43:14 +0000 Subject: [PATCH] minor update --- lib/techniques/brute/use.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/techniques/brute/use.py b/lib/techniques/brute/use.py index d912d20ca..e7f102143 100644 --- a/lib/techniques/brute/use.py +++ b/lib/techniques/brute/use.py @@ -33,13 +33,14 @@ def tableExists(tableFile): infoMsg = "checking table existence using items from '%s'" % tableFile logger.info(infoMsg) - infoMsg = "adding words used on web page to check list" + infoMsg = "adding words used on web page to name check list" logger.info(infoMsg) pageWords = getPageTextWordsSet(kb.originalPage) for word in pageWords: - word = word.lower() - if len(word) > 1 and not word[0].isdigit() and word not in tableSet: - tables.append(word) + if len(word) > 2 and not word[0].isdigit() and word.lower() not in tableSet: + tables.append(word.lower()) + if word.lower() != word: + tables.append(word) count = [0] length = len(tables)