def __init__(self, host):
    self.host = host
    self.cnames = host.dns_results.get('CNAME')
    self.request_handler = RequestHandler()
    self.web_server_validator = WebServerValidator()
    self.waf_present = False
    self.waf_cname_map = {'incapdns': 'Incapsula', 'edgekey': 'Akamai', 'akamai': 'Akamai', 'edgesuite': 'Akamai', 'distil': 'Distil Networks', 'cloudfront': 'CloudFront', 'netdna-cdn': 'MaxCDN'}
    self.waf_app_method_map = {'CloudFront': WAFApplicationMethods.detect_cloudfront, 'Cloudflare': WAFApplicationMethods.detect_cloudflare, 'Incapsula': WAFApplicationMethods.detect_incapsula, 'MaxCDN': WAFApplicationMethods.detect_maxcdn, 'Edgecast': WAFApplicationMethods.detect_edgecast, 'Distil Networks': WAFApplicationMethods.detect_distil, 'Sucuri': WAFApplicationMethods.detect_sucuri, 'Reblaze': WAFApplicationMethods.detect_reblaze}
    log_file = HelpUtilities.get_output_path('{}/WAF.txt'.format(self.host.target))
    self.logger = Logger(log_file)
def __init__(self, host):
    self.host = host
    self.cnames = host.dns_results.get('CNAME')
    self.request_handler = RequestHandler()
    self.web_server_validator = WebServerValidator()
    self.waf_present = False
    self.waf_cname_map = {'incapdns': 'Incapsula', 'edgekey': 'Akamai', 'akamai': 'Akamai', 'edgesuite': 'Akamai', 'distil': 'Distil Networks', 'cloudfront': 'CloudFront', 'netdna-cdn': 'MaxCDN'}
    self.waf_app_method_map = {'CloudFront': WAFApplicationMethods.detect_cloudfront, 'Cloudflare': WAFApplicationMethods.detect_cloudflare, 'Incapsula': WAFApplicationMethods.detect_incapsula, 'MaxCDN': WAFApplicationMethods.detect_maxcdn, 'Edgecast': WAFApplicationMethods.detect_edgecast, 'Distil Networks': WAFApplicationMethods.detect_distil, 'Sucuri': WAFApplicationMethods.detect_sucuri, 'Reblaze': WAFApplicationMethods.detect_reblaze}
    log_file = HelpUtilities.get_output_path('{}/WAF.txt'.format(self.host.target))
    self.logger = Logger(log_file)