Creating a Wireshark dissector in Lua (2017)
mika-s.github.io
mika-s.github.io
It's hard to overstate how great it is to have a dissector for your protocol in Wireshark. It can make troubleshooting obscure opaque issues a breeze.
Ended up implementing a stand alone tool just leveraging libpcap to parse the pcap files and then process the according TCP packets from there, dumping information to stdout. Definitely not as nice as interactively examining packets in wireshark, but at least got it done in two days and actually found the underlying problem we were trying to find.
Wonder how much easier it would've been with this.
It's incredibly powerful, and a useful feature in Wireshark. Being able to reload/rerun the dissector over packets was amazing and made development really quick and easy, especially in an emergency.
The wireshark docs though, as a bit rough to read, so have a walkthrough is great.