ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-users: [Wireshark-users] Lua: detect capture filename and end of captur

Date: Thu, 29 Sep 2011 09:00:55 +0200


Hi all,

I have two short questions concerning lua scripting for wireshark:

1) Is it possible to detect the name of the capture file currently read from within lua?
2) Is it possible to detect the end of the capture from within lua?

The reasoning is quite simple: Want to do some custom statistics for the whole file like "% of DNS requests in capture file" etc.

It's basically about functionality provided by the END block in awk.

Any help is appreciated.

Many thanks in advance,

BR,

Jörg