windows - 在 Windows 中使用 InterfaceByName 获取网络接口(interface)名称

标签 windows go winpcap

我正在尝试使用这个 code执行 ARP 扫描。但是在 Windows 中选择我的接口(interface)时(“以太网”)。

我收到以下错误:

interface Ethernet: Ethernet: Error opening adapter ...

我试过 -iface "\Device\NPF_{90C99FE1-3902-4DF4-8710-05539D4A7578}"
但我收到以下错误:
can not get interface \Device\NPF_{90C99FE1-3902-4DF4-8710-05539D4A7578}, route ip+net: no such network interface
有人可以帮忙吗?

最佳答案

我实际上不得不将接口(interface)的名称替换为:pcap.OpenLive

关于windows - 在 Windows 中使用 InterfaceByName 获取网络接口(interface)名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60061263/

相关文章:

windows - 将 Windows PRIVATEKEYBLOB 转换为 Qt 的 QSslKey

java - 在 Windows Server 2012 上安装 TeamCity 时出现错误 "no sqljdbc_auth in java.library.path"

c++ - WideCharToMultiByte - 对于 Shift-JIS 代码页,所需的大小和写入的字节数不同

谷歌/电线 : Is this a use case for the Singleton pattern?

c++ - 如何在代码块中链接 winpcap?

c++ - 获取 Windows 消息名称

postgresql - 对等方重置 Gorm 和 Postgres 连接

unit-testing - 如何断言与 stretr/testify/mock AssertCalled 的部分匹配?

python - 查找已从 pcap 数据传输了多少数据

c - main函数返回导致异常