mirror of
https://github.com/The-Art-of-Hacking/h4cker
synced 2024-11-21 18:33:03 +00:00
Create pyshark_example.py
This commit is contained in:
parent
90bfcbb327
commit
10f8c78a8c
1 changed files with 15 additions and 0 deletions
15
python_ruby_and_bash/pyshark_example.py
Normal file
15
python_ruby_and_bash/pyshark_example.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/python
|
||||
# Author: Omar Santos @santosomar
|
||||
# version 1.0
|
||||
# This is a quick demonstration on how to use the python pyshark library
|
||||
# * Pre-requisite: pyshark python library.
|
||||
# * Install it with pip install pyshark
|
||||
# PyShark is a Python wrapper for tshark,
|
||||
# allowing python packet parsing using wireshark dissectors.
|
||||
#####################################################################
|
||||
|
||||
import pyshark
|
||||
|
||||
# Sniff from interface
|
||||
capture = pyshark.LiveCapture(interface='eth0')
|
||||
capture.sniff(timeout=10)
|
Loading…
Reference in a new issue