If I want to write a script that uses Wireshark\'s functionality, I use tshark. I hear there is also a libwireshark that can be used when writing a program in C but, for the lif
Even I have written scripts for wireshark functionality as a part of my project for automation of some things.
The best this to do is use wireshark addons like follows:
Please note add-ons work only in Linux and capinfos is written in shell script. So you can use the same shell scripts and create new scripts for better functionality.
Even I had faced a lot of problem initially as there is no proper documentation. But once you start it goes smoothly.