File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 7
7
from socket import gethostbyaddr
8
8
from lib .core .virtual_host_scanner import *
9
9
from lib .helpers .output_helper import *
10
- from lib .helpers .file_helper import get_combined_word_lists
11
10
from lib .helpers .file_helper import load_random_user_agents
12
11
from lib .helpers .wordlist_helper import WordList
13
12
from lib .core .__version__ import __version__
@@ -33,21 +32,7 @@ def main():
33
32
arguments = parser .parse (sys .argv [1 :])
34
33
35
34
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 )
51
36
52
37
if len (wordlist ) == 0 :
53
38
print ("[!] No words found in provided wordlists, unable to scan." )
You can’t perform that action at this time.
0 commit comments