标签: nmap python
我正在Python中使用Nmap并运行以下命令:
import nmap nm = nmap.PortScanner() nm.all_hosts() # returns 127.0.0.1 nm['127.0.0.1'].all_protocols() # returns an empty list []
我认为网络协议始终必须是TCP或UDP 但是我怎么不能从Nmap中得到什么呢?