File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
import sys
5
5
from argparse import ArgumentParser
6
+ from dns .resolver import Resolver
7
+ from socket import gethostbyaddr
6
8
from lib .core .virtual_host_scanner import *
7
9
from lib .helpers .output_helper import *
8
10
from lib .core .__version__ import __version__
@@ -78,6 +80,12 @@ def main():
78
80
if (arguments .ignore_content_length > 0 ):
79
81
print ("[>] Ignoring Content length: %s" % (arguments .ignore_content_length ))
80
82
83
+ for ip in Resolver ().query (arguments .target_hosts , 'A' ):
84
+ host , aliases , ips = gethostbyaddr (str (ip ))
85
+ wordlist .append (str (ip ))
86
+ wordlist .append (host )
87
+ wordlist .extend (aliases )
88
+
81
89
scanner_args = vars (arguments )
82
90
scanner_args .update ({'target' : arguments .target_hosts , 'wordlist' : wordlist })
83
91
scanner = virtual_host_scanner (** scanner_args )
You can’t perform that action at this time.
0 commit comments