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