66from lib .core .discovered_host import *
77
88
9-
109class virtual_host_scanner (object ):
1110 """Virtual host scanning class
1211
@@ -20,16 +19,13 @@ class virtual_host_scanner(object):
2019 ignore_content_length: integer value of content length to ignore
2120 output: folder to write output file to
2221 """
23-
22+
23+
2424 def __init__ (self , target , wordlist , ** kwargs ):
2525 self .target = target
2626 self .wordlist = wordlist
27- self .unique_depth = unique_depth
28- self .ssl = ssl
29- self .fuzzy_logic = fuzzy_logic
30- self .rate_limit = rate_limit
31- self .add_waf_bypass_headers = add_waf_bypass_headers
3227 self .base_host = kwargs .get ('base_host' )
28+ self .rate_limit = int (kwargs .get ('rate_limit' , 0 ))
3329 self .port = int (kwargs .get ('port' , 80 ))
3430 self .real_port = int (kwargs .get ('real_port' , 80 ))
3531 self .ignore_content_length = int (kwargs .get ('ignore_content_length' , 0 ))
@@ -56,6 +52,7 @@ def ignore_http_codes(self):
5652 def ignore_http_codes (self , codes ):
5753 self ._ignore_http_codes = [int (code ) for code in codes .replace (' ' , '' ).split (',' )]
5854
55+
5956 def scan (self ):
6057 if not self .base_host :
6158 self .base_host = self .target
@@ -117,7 +114,7 @@ def scan(self):
117114
118115 # add url and hash into array for likely matches
119116 self .results .append (hostname + ',' + page_hash )
120-
117+
121118 #rate limit the connection, if the int is 0 it is ignored
122119 time .sleep (self .rate_limit )
123120
0 commit comments