コード例 #1
0
 def wappalyzing_webpage(self, domain):
     log.console_log("{}[*] Wapplyzing on domain {}{}".format(G, domain, W))
     wappalyzing = Wappalyzer()
     targeturl = self.url_req.ssl_checker(domain)
     try:
         wappalyzing.run_wappalyze(targeturl)
     except urllib2.URLError as exc:
         log.console_log('URL Error: {0}'.format(str(exc)))
     except urllib2.HTTPError as exc:
         log.console_log('HTTP Error: {0}'.format(str(exc)))
     except Exception as exc:
         log.console_log('Unknow error: {0}'.format(str(exc)))
コード例 #2
0
    def wapplyzing_webpage(self, domain):
        wappalyzing = Wappalyzer()
        log.console_log(G + "[*] Wapplyzing HTTP on domain " + domain + W)
        try:
            targeturl = "http://" + domain
            wappalyzing.run_wappalyze(targeturl)
        except:
            log.console_log(R + "[-] HTTP connection was unavailable" + W)

        log.console_log(G + "[*] Wapplyzing HTTPS on domain " + domain + W)
        try:
            targeturl = "https://" + domain
            wappalyzing.run_wappalyze(targeturl)
        except:
            log.console_log(R + "[-] HTTPS connection was unavailable" + W)