def test_analyze_no_apps(self): analyzer = Wappalyzer(categories={}, apps={}) webpage = WebPage('http://example.com', '<html></html>', {}) detected_apps = analyzer.analyze(webpage) self.assertEquals(detected_apps, set())
def test_analyze_no_technologies(): analyzer = Wappalyzer(categories={}, technologies={}) webpage = WebPage('http://example.com', '<html></html>', {}) detected_technologies = analyzer.analyze(webpage) assert detected_technologies == set()
def get(self): try: if self.debug != 0: print( "\033[96m [+] \033[97mPerforming \033[96mTechnology \033[97mscan" ) result = {} w = Wappalyzer() data = w.analyze(self.schema + self.hostname) if isinstance(data, dict) and len(data) > 0: result = data return result except Exception: raise Exception("error recovering used technology")