Linux/Bash ARP 查找

发布于 2024-12-28 23:01:02 字数 260 浏览 3 评论 0原文

很简单,我希望获取特定子网上所有设备的列表,以便识别其 MAC 地址,以查找该网络上特定供应商的所有设备。

目前我正在使用 nmap 来完成此操作,但是它使我指定一个主机,例如 10.0.0.0/24,这对于 10.0.0.0 很有用code> 地址,但是我希望能够获取 10.0.1.0 设备和 10.1.1.0 设备。

有什么想法吗?

Very simply I am looking to get a list of all devices on a specific subnet for the purpose of identifying their mac address to find all devices by a particular vendor on that network.

Presently I am using nmap to accomplish this, however it makes me specify a host, example 10.0.0.0/24, which is good for 10.0.0.0 addresses, however I would like to be able to get the 10.0.1.0 devices and 10.1.1.0 devices as well.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手长情犹 2025-01-04 23:01:02

试试这个:

nmap -TAggressive -n -sS -p80 10.0.0.0/24 &>/dev/null
nmap -TAggressive -n -sS -p80 10.0.1.0/24 &>/dev/null
nmap -TAggressive -n -sS -p80 10.1.1.0/24 &>/dev/null
arp -an | awk 'BEGIN {print "MAC               IP"}{++i;print $4, $2} END { print i,"hosts found"}' | tr -d '()'

try this:

nmap -TAggressive -n -sS -p80 10.0.0.0/24 &>/dev/null
nmap -TAggressive -n -sS -p80 10.0.1.0/24 &>/dev/null
nmap -TAggressive -n -sS -p80 10.1.1.0/24 &>/dev/null
arp -an | awk 'BEGIN {print "MAC               IP"}{++i;print $4, $2} END { print i,"hosts found"}' | tr -d '()'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文