天天看點

使用WinPcap擷取網卡MAC位址

關鍵字:WinPcap 網卡 MAC位址

作者:txw1958

在WpdPack_4_1_2\WpdPack\Examples-remote\PacketDriver\GetMacAddress\目錄下有擷取MAC位址源檔案

GetMacAddress.c

運作後獲得mac位址

Packet.dll test application. Library version:4.0.0.1040

Adapters installed:

1- \Device\NPF_GenericDialupAdapter

2- \Device\NPF_{B797EC79-A74B-40E4-96E7-0786726CC3C2}

3- \Device\NPF_{B513B814-5657-417F-B515-965AEAC13B83}

Select the number of the adapter to open : 2

The MAC address of the adapter is 02:ff:54:55:4e:01

繼續閱讀