apihook网卡MAC地址返回自定义MAC、GetAdaptersInfo、SendARP

易语言 2020-06-15 16:53:53

apihook2.暂停 (“IPHLPAPI.DLL”, “SendARP”)
' ret = API_SendARP (DestIP, SrcIP, pMacAddr, PhyAddrLen)
addr = 取变量地址 (pMacAddr)
自定义MAC = { “AA”, “BB”, “CC”, “DD”, “EE”, “FF” }
.计次循环首 (6, i)
MAC [i] = 进制_十六到十 (自定义MAC [i])
.计次循环尾 ()
写到内存 (MAC, addr, 6)
apihook2.继续 (“IPHLPAPI.DLL”, “SendARP”)