Skip to content Skip to sidebar Skip to footer

Scapy Sniff() Doesn't Accept The Iface Strings

After a new installation of Python2.7.14 and scapy(Version git-archive.dev254ab6d5a) i cant define my LAN-card as interface. As long iface=None the sniff function works fine. If i

Solution 1:

I had this same issue for hours. Here's what I did to solve it.

Be sure you have the latest version of scapy and the latest version of npcap. When you install npcap click the option to turn monitor mode on. I also found this on the scapy documentation site

Winpcap/Npcap conflicts

As Winpcap is becoming old, it’s recommended to use Npcap instead. Npcap is part of the Nmap project.

If you get the message ‘Winpcap is installed over Npcap.’ it means that you >have installed both winpcap and npcap versions, which isn’t recommended. You may uninstall winpcap from your Program Files, then you will need to remove:

C:/Windows/System32/wpcap.dllC:/Windows/System32/Packet.dll

And if you are on a x64 machine:

C:/Windows/SysWOW64/wpcap.dllC:/Windows/SysWOW64/Packet.dll

To use npcap instead. Those files are not removed by the Winpcap un-installer.

after I did that I listed the interfaces using

    show_interfaces()
    iface = raw_input("Enter the interface to sniff on: ")

copy and paste the interface into the input

Solution 2:

My problem is solved by downgrading the Wireshark version. But i guess the real problem is the compatibility between npcap(v0.98) and Python(v2.7.14). Unfortunately i dont understand the usage of the "ismonitor=True" parameter, but if it should be a compatibility problem, we will read soon more about it:)

Post a Comment for "Scapy Sniff() Doesn't Accept The Iface Strings"