Update pyshark_example.py

This commit is contained in:
santosomar 2019-03-31 13:39:20 -04:00
parent 4ac221710b
commit dfa92be65c

View file

@ -10,5 +10,6 @@
import pyshark import pyshark
capture = pyshark.LiveCapture(interface='eth0')
for packet in capture.sniff_continuously(packet_count=5): for packet in capture.sniff_continuously(packet_count=5):
print ('You just captured a packet:', packet) print ('You just captured a packet:', packet)