-1

我想知道连接到 dhcp 服务器的所有设备。我有设备的 IP,它可能是安卓手机或打印机,但我认为 dhcp 拥有这些设备的信息。

我在 dhcp 协议栈中得到了类似“供应商信息”的信息。

我的疑问是我必须至少识别出网络上的安卓手机,这是否可能。或者如何识别安卓手机是网络之一。我也有安卓的 IP,但我没有得到任何信息从任何方面。

我得到了类似nmap的东西,但是这个工具没有给出手机的具体细节。nmap提供的信息令人困惑我无法确定它是手机还是linux系统,因为这两个系统都有linux作为操作系统.

然后我得到了这个 dhcp -vendor 信息:但我不知道如何读取这些数据..

请提出任何建议.....我的项目需要。

谢谢

4

1 回答 1

1

The problem you will have is that modern day switches will stop you sniffing traffic destined for specific MAC addresses so if its hard-wired then you are going to run into trouble. If on the other-hand its a unsecured WiFi connection, or a network with hubs (rare now!) rather than switches then you may have a chance.

You'd need to switch the ethernet controller into promiscuous mode and listen for the DHCP REQUEST and DHCP OFFER commands, inspect the contents and see whats going on.

Another method would be to listen for ARP and RARP requests on the network and use a hardware lookup table for the MAC id to determine who makes the chip-sets, its not going to give you awesome accuracy since a lot of chips are re-used on different devices but it may give you a little bit more info.

In terms of the DHCPd server, unless you have access to that physical machine I'm afraid your probably out of luck, DHCP is a designed as a offering protocol, not a querying protocol.

于 2012-07-26T10:01:38.520 回答