$ ./nmap-banners -sV -vvvvv localhost |grep Banners
输出是:
Banner on 127.0.0.1:22/tcp matches ssh: SSH-2.0-OpenSSH_4.3p2 Debian-5ubuntu1.
Banner on 127.0.0.1:25/tcp matches smtp: 220 localhost ESMTP Exim 4.62 Wed, 14 Nov 2007 21:06:10
问题是如何SSH-2.0-OpenSSH_4.3p2 Debian-5ubuntu1
使用 grep 或 awk仅打印 IP 地址