Skip to content

Commit 8910ee3

Browse files
committed
Get wordlist from stdin by wordlist helper
1 parent 657c5b8 commit 8910ee3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

VHostScan.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from lib.helpers.output_helper import *
1010
from lib.helpers.file_helper import get_combined_word_lists
1111
from lib.helpers.file_helper import load_random_user_agents
12+
from lib.helpers.wordlist_helper import WordList
1213
from lib.core.__version__ import __version__
1314
from lib.input import cli_argument_parser
1415

@@ -31,6 +32,7 @@ def main():
3132
parser = cli_argument_parser()
3233
arguments = parser.parse(sys.argv[1:])
3334

35+
wordlist_helper = WordList()
3436
wordlist = []
3537
word_list_types = []
3638

@@ -39,7 +41,7 @@ def main():
3941

4042
if not sys.stdin.isatty():
4143
word_list_types.append('stdin')
42-
wordlist.extend(list(line for line in sys.stdin.read().splitlines()))
44+
wordlist.extend(wordlist_helper.get_stdin_wordlist())
4345

4446
combined = get_combined_word_lists(arguments.wordlists or default_wordlist)
4547
word_list_types.append('wordlists: {}'.format(

0 commit comments

Comments
 (0)