Skip to content Skip to sidebar Skip to footer

Scapy - Srp Doesnt Send My Packet To The Correct Network Interface

I work on windows 10 machine and I am using scapy for some project I am doing. When I use the sniff function to sniff packets form my ethernet interface it is working as expected b

Solution 1:

If you open a Scapy shell and type IFACES (Windows only ATM), you will be shown the exact list of interfaces.

You can then use the interface object, rather than the name. (see help(IFACES) for the various util functions such as IFACES.dev_from_id()... to get it).

Example:

from scapy.arch.windows importIFACESa= IFACES.dev_from_id(5)
sr1(IP(dst="www.google.com")/ICMP(), iface=a)

See also https://stackoverflow.com/a/55093154/5459467

Post a Comment for "Scapy - Srp Doesnt Send My Packet To The Correct Network Interface"