[工具使用] nmap输出格式_Nmap输出

110 0
Honkers 2025-5-23 07:25:30 来自手机 | 显示全部楼层 |阅读模式

nmap输出格式

[rps-include post=6632]

[rps-include post = 6632]

Output is important part of a scan because all gathered information will be shown. According to output next steps will be decided. In this chapter we will look nmap output features.

输出是扫描的重要部分,因为将显示所有收集的信息。 根据输出,将决定下一步。 在本章中,我们将介绍nmap输出功能。

正常输出到文件 (Normal Output To A File)

Normal output is the default output which is normally written to the console. This output can be saved into  file with -oN option.

普通输出是通常写入控制台的默认输出。 可以使用-oN选项将该输出保存到文件中。

  1. $ nmap -oN myscan localhost
复制代码
Normal Output To A File
正常输出到文件

XML输出到文件(XML Output To A File)

XML output is an other option for output. XML is very useful while using Zenmap. Zenmap is tool for nmap that provides GUI.

XML输出是输出的另一种选择。 使用Zenmap时,XML非常有用。 Zenmap是用于nmap的提供GUI的工具。

  1. $ nmap -oX myscan localhost
复制代码
XML Output To A File
XML输出到文件

可复制输出到文件(Grep-able Output To A File)

Grep is a tool used to filter text file with normal or regular expressions. Grep-able output will produce output which is very easy to use with Grep tool.

Grep是用于过滤带有正则表达式或正则表达式的文本文件的工具。 可以使用Grep的输出将产生输出,该输出非常容易与Grep工具一起使用。

  1. $ nmap -oG myscan localhost
复制代码
Grepable Output To A File
可复制的输出到文件

以所有格式输出到文件(Output To A File In All Formats)

up to now we have used 3 output format one by one . In some situations we may need to get all of them for single scan. Nmap provides -oA to output in all 3 format just adding some extension to the end of files.

到目前为止,我们已经使用了三种输出格式。 在某些情况下,我们可能需要将它们全部进行一次扫描。 Nmap提供-oA以所有3种格式输出,只是在文件末尾添加了一些扩展名。

  1. $ nmap -oA myscan localhost
复制代码
Output To A File In All Formats
以所有格式输出到文件

As we see after scan 3 files are created to save output.

如我们在扫描后看到的,创建了3个文件以保存输出。

  • gnmap is grepable output file

    gnmap是可输出的文件

  • nmap is normal output file

    nmap是正常的输出文件

  • xml is xml output file

    xml是xml输出文件

仅显示开放端口(Show Only Open Ports)

While port scan there is different type of port status. Open, Closed, Filtered etc. . Nmap will provides all of this status information with port results. We can omit other than Open port status to make things clear.

在进行端口扫描时,存在不同类型的端口状态。 打开,关闭,过滤等。 Nmap将提供所有这些状态信息以及端口结果。 除了打开端口状态以外,我们可以省略其他内容以使情况更清楚。

  1. $ nmap --open localhost
复制代码
Show Only Open Ports
仅显示开放端口

There will be no result with filtered or closed.

过滤或关闭将不会有结果。

LEARN MORE  How To Use Grep Command Recursively Through Sub-Directories In Linux? 了解更多如何在Linux中通过子目录递归使用Grep命令?

定期打印扫描状态 (Print Scan Status Periodically)

While scanning especially big networks scanning time will be very long. We may want to get information about scan status. Here how we can do

在扫描特别大的网络时,扫描时间将非常长。 我们可能想要获取有关扫描状态的信息。 这里我们该怎么办

  1. $ nmap --open --stats-every 1 192.168.122.0/24
复制代码
Print Scan Status Periodically
定期打印扫描状态

[rps-include post=6632]

[rps-include post = 6632]

翻译自: https://www.poftut.com/nmap-output/

nmap输出格式

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行