KimiNewt / pyshark

Python wrapper for tshark, allowing python packet parsing using wireshark dissectors
MIT License
2.26k stars 422 forks source link

Specifying a configuration profile #515

Open metedestan opened 2 years ago

metedestan commented 2 years ago

Hi,

One can normally run tshark with a specific configuration profile by using the option -C. Is it possible to use this with pyshark?

Thanks!

dspen commented 2 months ago

Looking at file_capture.py, there are undocumented "custom parameters" you can pass to tshark.

cap = pyshark.FileCapture('file.pcapng', custom_parameters={'-C': 'my_profile'})