Reputation: 53
Hi I'm trying to sniff network with pyshark. I just want to capture the packet but pyshark does not capture any packet
Hi is the basic code and result
>>> cap = pyshark.LiveCapture(interface="wlan0")
>>> cap.sniff(timeout=20)
>>> cap
<LiveCapture (0 packets)>
Please help
Upvotes: 1
Views: 2227
Reputation: 108
Are you using windows 10? it may be late but the LiveCapture feature of pyshark 3.7.9 has some problems in windows 10.
You can roll back to pyshark 0.3.6.2 with,
pip install pyshark==0.3.6.2
Upvotes: 2