dumpcap
dumpcap copied to clipboard
Provides an interface to Wireshark's "dumpcap" for the go programming language
dumpcap
Provides an interface to Wireshark's dumpcap
tool for the go programming language (golang).
You can use dumpcap
to
- find out about available network interfaces and their supported capabilities. See here for an example.
- Receive live statistics about traffic seen on each interface. See here for example.
- Capture traffic and save it to disk for further processing. See here for an example.
On most BSD/Linux distributions dumpcap
comes suid'd so one can capture traffic using this isolated single-purpose process and does not need root credibilities to dissect captured traffic.
You may be interested in gopacket to dissect network data from within go.