我应该使用 Nmap::Parser 还是 Nmap::Scanner 来审核网络?
我想以最快的方式审核我的大型网络的设备。我应该使用 Nmap::Parser
或 Nmap::Scanner
?
我想创建一个返回 ping 以及相关操作系统占用空间和标识的 IP 地址列表。
示例:
ping 192.168.*.*
然后,当我成功 ping 时,将 IP 地址存储在哈希值中,并猜测操作系统是什么
I'd like to audit the equipment of my large network in the fastest way possible. Should i use Nmap::Parser
or Nmap::Scanner
?
I want to create a list of IP addresses that return a ping as well as a related OS footprint and identification.
Example:
ping 192.168.*.*
Then when I get a successful ping, store the IP address in a hash along with a guess of what the OS is
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
无论您使用
Nmap::Parser
还是Nmap::Scanner
,您都必须与Nmap运行相同的扫描,因此两者之间没有速度差异。下面是一个使用
Nmap::Scanner
的示例,它几乎可以完成您想要的操作,报告主机的状态并尝试在主机启动时对其进行操作系统指纹识别,并将结果存储在哈希中。您应该能够根据需要扩展它。Whether you use
Nmap::Parser
orNmap::Scanner
, you have to run the same scan with Nmap, so there is no speed difference between the two.Here's an example using
Nmap::Scanner
which does approximately what you want, reporting the status of the hosts and attempting to OS fingerprint them if they are up, storing the results in a hash. You should be able to extend it as needed.嗯,其中之一是您已有数据的解析器,其中之一是创建数据的扫描器。使用能够完成您所需工作的产品。任务的哪一部分导致了问题?
Well, one of those is a parser for data you already have, and one of those is a scanner that creates data. Use the one that does the job that you need. Which part of the task is causing the problem?