mirror of
https://github.com/The-Art-of-Hacking/h4cker
synced 2024-11-24 20:03:02 +00:00
Update pyshark_example.py
This commit is contained in:
parent
10f8c78a8c
commit
afc057c0d1
1 changed files with 2 additions and 3 deletions
|
@ -10,6 +10,5 @@
|
|||
|
||||
import pyshark
|
||||
|
||||
# Sniff from interface
|
||||
capture = pyshark.LiveCapture(interface='eth0')
|
||||
capture.sniff(timeout=10)
|
||||
for packet in capture.sniff_continuously(packet_count=5):
|
||||
print (You just captured a packet:', packet)
|
||||
|
|
Loading…
Reference in a new issue