mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-19 11:26:09 +00:00
Update pyshark_example.py
This commit is contained in:
parent
10f8c78a8c
commit
afc057c0d1
@ -10,6 +10,5 @@
|
|||||||
|
|
||||||
import pyshark
|
import pyshark
|
||||||
|
|
||||||
# Sniff from interface
|
for packet in capture.sniff_continuously(packet_count=5):
|
||||||
capture = pyshark.LiveCapture(interface='eth0')
|
print (You just captured a packet:', packet)
|
||||||
capture.sniff(timeout=10)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user