我想使用Python脚本来使用nmap。我意识到有一个用于python-nmap的软件包。但是我想创建一个简单的脚本来解释nmap命令的输出,然后根据它的输出做更多的事情。 尝试使用check_output( “NMAP”)像这个链接: Running shell command from Python and capturing the output 通过运行这个: sp.check_outpu
我有一个运行在EMR中的YARN群集。当SSH到主节点,并运行nmap 10.0.0.254我得到以下结果 Starting Nmap 5.51 (http://nmap.org) at 2015-06-10 00:17 UTC
Nmap scan report for ip-10-0-0-254.ec2.internal (10.0.0.254)
Host is up (0.00045s l