Nmap不会使用-oN或-oG进行扫描

时间:2016-10-14 17:43:10

标签: nmap

我试图使用nmap端口扫描某些实例,我想让它给我一些更好看的输出。我想使用-oG-oN选项,但似乎都不起作用,并且使用了以下输出:

user@hostname:~$ nmap -oG 1.2.3.4

Starting Nmap 7.30 ( https://nmap.org ) at 2016-10-14 10:36 PDT
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.03 seconds


user@hostname:~$ nmap -oN 1.2.3.4

Starting Nmap 7.30 ( https://nmap.org ) at 2016-10-14 10:36 PDT
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.04 seconds

如何使用此选项扫描我的实例?

1 个答案:

答案 0 :(得分:0)

输出文件选项(-oN-oG-oX-oA)都采用文件名参数。您的命令是,"生成grepable输出并将其保存到名为1.2.3.4的文件中。"然后Nmap查看该行的其余部分并且看不到目标规范(因为它假设1.2.3.4是文件名而不是IP地址。此命令将起作用:nmap -oG myscan.gnmap 1.2.3.4