如何将网卡置于混杂模式?

发布于 2024-09-28 17:24:01 字数 163 浏览 11 评论 0原文

你好 我想将我的网卡置于混杂模式。为什么? 因为我编写的应用程序有可能检测本地网络中的嗅探(发送适当修改的以太网数据包)。我现在只想检查一下,所以在我的第二个比较中我想设置混杂模式。 有 Windows 7 和简单的戴尔无线 1397 WLAN 迷你卡...如果它有所作为的话。

我该怎么做?

Hi
I want to put my NIC into promiscuous mode. Why?
Because I wrote app which is able potentially to detect sniffing in my local network (send modyfied appropriately ethernet packets). I just want now check it out, so in my second comp I want to set up promisc mode.
There's Windows 7 and simply Dell Wireless 1397 WLAN Mini-Card...if it makes a difference.

How can I do this?

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

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

发布评论

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

评论(2

八巷 2024-10-05 17:24:01

您可能无法将该适配器置于混杂模式。这是 Windows,适配器是 Wi-Fi 适配器,并且根据 有关 Windows 上 802.11 驱动程序的 Microsoft 文档,“仅当微型端口驱动程序在以下操作系统中运行时,启用 NDIS_PACKET_TYPE_PROMISCUOUS、NDIS_PACKET_TYPE_802_11_PROMISCUOUS_MGMT 或 NDIS_PACKET_TYPE_802_11_PROMISCUOUS_CTRL 数据包筛选器才有效网络监视器 (NetMon) 或可扩展接入点 (AP) 模式。”

如果您的应用程序使用 WinPcap(例如 Wireshark),则它无法将驱动程序置于“网络监视器”模式,因为 WinPcap 目前不支持该模式(因为其内核驱动程序不支持版本 6)网络驱动程序的 NDIS 接口),因此遵循 Microsoft 建议的驱动程序将不允许您将接口置于混杂模式。

如果它可以将其置于监控模式,则可能会禁用传输数据包;根据显示器上的此 Microsoft 页面mode, "在 NetMon 模式下,微型端口驱动程序只能根据当前数据包筛选器设置接收数据包。驱动程序无法自行或通过调用其 MiniportSendNetBufferLists 发送数据包功能。”

You might not be able to put that adapter into promiscuous mode. This is Windows, and the adapter is a Wi-Fi adapter, and, according to this Microsoft documentation on 802.11 drivers on Windows, "It is only valid for the miniport driver to enable the NDIS_PACKET_TYPE_PROMISCUOUS, NDIS_PACKET_TYPE_802_11_PROMISCUOUS_MGMT, or NDIS_PACKET_TYPE_802_11_PROMISCUOUS_CTRL packet filters if the driver is operating in Network Monitor (NetMon) or Extensible Access Point (AP) modes."

If your application uses WinPcap (as does, for example, Wireshark), it can't put the driver into "network monitor" mode, as WinPcap currently doesn't support that (because its kernel driver doesn't support version 6 of the NDIS interface for network drivers), so drivers that follow Microsoft's recommendations won't allow you to put the interface into promiscuous mode.

And if it could put it into monitor mode, that might disable transmitting packets; according to this Microsoft page on monitor mode, "While in NetMon mode, the miniport driver can only receive packets based on the current packet filter settings. The driver cannot send packets either on its own or through a call to its MiniportSendNetBufferLists function."

迎风吟唱 2024-10-05 17:24:01

我过去曾使用 wireshark 来处理此类事情

I`ve used wireshark for this sort of thing in the past

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文