def scan(self, hosts, options):
import nmap
self.nm = nmap.PortScanner()
if len(options) < 2:
options = '--script nbstat.nse -O -Pn -sV -T3'
self.nm.scan(hosts, arguments=options)
#----------------------------#
# Name: out_csv
# Desc: Returns nmap results in csv string
# Input: None
# Output: Csv string containing all scan data
#----------------------------#
评论列表
文章目录