我有这个网址www.southernct.edu
。使用nmap
如何将输出重定向到文件nmap.out
nmap www.southernct.edu > nmap.out
上面的命令可以工作吗?
答案1
是的,它会起作用。
[vonedaddy@uscita TEMP]$ nmap www.southernct.edu > nmap.out
[vonedaddy@uscita TEMP]$ cat nmap.out
Starting Nmap 7.80 ( https://nmap.org ) at 2020-05-15 20:57 EDT
Nmap scan report for www.southernct.edu (52.87.65.167)
Host is up (0.013s latency).
rDNS record for 52.87.65.167: ec2-52-87-65-167.compute-1.amazonaws.com
Not shown: 997 filtered ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
Nmap done: 1 IP address (1 host up) scanned in 6.56 seconds
[vonedaddy@uscita TEMP]$