def __init__(self, root_url, proxy_pool, threads): self.manager = url_manager.UrlManger() self.downloader = html_downloader.HtmlDownloader(proxy_pool) self.parser = html_parser.HtmlParser( urlparse.urlparse(root_url).hostname) self.outputer = html_outputer.HtmlOutputer() # self.proxy_pool = proxy_pool self.dir = dir_scan.DirScan(proxy_pool, self.manager.set_protocol(root_url)) self.cms = cms_scan.CMSScan(proxy_pool) self.sqli = sqli_scan.SqliScan(proxy_pool) self.xss = xss_scan.XSSScan(proxy_pool) self.pool = ThreadPool(threads)
def __init__(self,proxy_pool): self.downloader = html_downloader.HtmlDownloader(proxy_pool) self.manager = url_manager.UrlManger()
def __init__(self): self.urls=url_manager.UrlManger() #初始化url管理器 self.downloader=html_downloader.HtmlDownloader()#初始化url下载器 self.parser=html_parser.HtmlParser()#初始化html解析器 self.outputer=html_output.HtmlOutputer()#初始化html输出器
def __init__(self): self.urls = url_manager.UrlManger() self.downloader = html_downloader.HtmlDownloader() self.parser = html_parser.HtmlParser() self.outputer = html_outputer.HtmlOutputer()