예제 #1
0
def nmapVulnScan(ip, portList):
    nmap = Nmap(ip)
    scanResults = {'vuln-scan': nmap.vulnScan(portList)}
    return scanResults
예제 #2
0
def nmapVulnScan(ip, ports='1-1024'):
    nmap = Nmap(ip)
    scanResults = {'vuln-scan': nmap.vulnScan(ports)}
    return scanResults