示例#1
0
 def analyze(self):
     self.exposed_services = []
     nmap = Nmap()
     results = nmap.nmap_version_detection(self.ip, args="-Pn")
     for r in results:
         if 'service' in r:
             service_info = r['service']
             if 'product' in service_info:
                 service = service_info['product']
                 if 'version' in service_info:
                     service += " " + service_info['version']
                 self.exposed_services.append(service)
示例#2
0
def web_service(target):
    from nmap3 import Nmap
    nmap = Nmap()
    version_result = nmap.nmap_version_detection(target)
    return(version_result)