From afc057c0d11990c922c67c060633513902dcb8d8 Mon Sep 17 00:00:00 2001 From: santosomar Date: Sun, 31 Mar 2019 00:58:58 -0400 Subject: [PATCH] Update pyshark_example.py --- python_ruby_and_bash/pyshark_example.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python_ruby_and_bash/pyshark_example.py b/python_ruby_and_bash/pyshark_example.py index ee409f5..233064a 100644 --- a/python_ruby_and_bash/pyshark_example.py +++ b/python_ruby_and_bash/pyshark_example.py @@ -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)