Skip to content

Commit b0048c0

Browse files
committed
Get wordlist and wordlist types from wordlist helper
1 parent f3e0c58 commit b0048c0

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

VHostScan.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from socket import gethostbyaddr
88
from lib.core.virtual_host_scanner import *
99
from lib.helpers.output_helper import *
10-
from lib.helpers.file_helper import get_combined_word_lists
1110
from lib.helpers.file_helper import load_random_user_agents
1211
from lib.helpers.wordlist_helper import WordList
1312
from lib.core.__version__ import __version__
@@ -33,21 +32,7 @@ def main():
3332
arguments = parser.parse(sys.argv[1:])
3433

3534
wordlist_helper = WordList()
36-
wordlist = []
37-
word_list_types = []
38-
39-
default_wordlist = DEFAULT_WORDLIST_FILE \
40-
if sys.stdin.isatty() else None
41-
42-
if not sys.stdin.isatty():
43-
word_list_types.append('stdin')
44-
wordlist.extend(wordlist_helper.get_stdin_wordlist())
45-
46-
combined = get_combined_word_lists(arguments.wordlists or default_wordlist)
47-
word_list_types.append('wordlists: {}'.format(
48-
', '.join(combined['file_paths']),
49-
))
50-
wordlist.extend(combined['words'])
35+
wordlist, word_list_types = wordlist_helper.get_wordlist(arguments.wordlist)
5136

5237
if len(wordlist) == 0:
5338
print("[!] No words found in provided wordlists, unable to scan.")

0 commit comments

Comments
 (0)