scapy
scapy copied to clipboard
Sniffign in Monitor Mode on Windows Throws Exception - libpcap & WLanHelper path issue
Brief description
On a windows machine, with scapy 2.5.0 and npcap 1.79, when calling sniff like this:
a=sniff(iface="Valid Wifi Interface Name",monitor=True,count=5)
Scapy throws an exception due to a path formulation error for WLanHelper.
Scapy version
2.5
Python version
3.12
Operating system
Windows LATEST
Additional environment information
pip show scapy
Name: scapy Version: 2.5.0 Summary: Scapy: interactive packet manipulation tool Home-page: https://scapy.net Author: Philippe BIONDI Author-email: [email protected] License: GPL-2.0-only Location: C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages Requires: Required-by:
How to reproduce
- Install scapy 2.5 per docs
- Install npcap 1.79
- Call "sniff" - either interactively or in code - sniff(iface="Valid Wifi Interface Name",monitor=True,count=5)
Actual result
'\WlanHelper.exe' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "
Expected result
<Sniffed: TCP:0 UDP:0 ICMP:0 Other:5>
Related resources
No response