Skip to content Skip to sidebar Skip to footer

How Do I Send An Arp Packet Through Python On Windows Without Needing Winpcap?

Is there any way to send ARP packet on Windows without the use of another library such as winpcap? I have heard that Windows XP SP2 blocks raw ethernet sockets, but I have also hea

Solution 1:

There is no way to do that in the general case without the use of an external library.

If there are no requirements on what the packet should contain (i.e., if any ARP packet will do) then you can obviously send an ARP request if you're on an Ethernet network simply by trying to send something to any IP on your own subnet (ensuring beforehand that the destination IP is not in the ARP cache by running an external arp -d tar.get.ip.address command), but this will probably not be what you want.

For more information about raw socket support see the TCP/IP Raw Sockets Docs page, specifically the Limitations on Raw Sockets section.

Post a Comment for "How Do I Send An Arp Packet Through Python On Windows Without Needing Winpcap?"