Extrait du cours lua scripting in wireshark
Introduction
–I’m working as a senior system developer for Thales Norway, a company focusing on defence, aerospace and security markets worldwide
– Wireshark user since 2003
– Wireshark core member since 2007
– I enjoy parachuting and scuba diving
Introduction to Lua
• Agenda
– Getting started using Lua in Wireshark
• Functions to write a dissector
– Obtaining dissection data
– Presenting information
– Preferences
– Post-dissectors
• Functions to create a Listener
Introduction to Lua
• Lua is a powerful, fast, lightweight, embeddable scripting languagedesigned for extending applications.
• Script language
– Good support for object-oriented programming
• Can be precompiled for
– Faster loading (not faster execution)
– Off-line syntax error detection
– Protecting source code from user changes
• Lua’s official web site
http://www.lua.org/
Lua variables
• Dynamically typed language
• All values are first-class values
• Eight basic types
– nil, boolean, number, string, function, userdata, thread and table
• All variables are global unless using the local keyword
Lua in Wireshark
• Usage in Wireshark
– Dissectors
• Used to decode packet data
– Post-dissectors
• Called after every other dissector has run
– Listeners
• Used to collect information after the packet has been dissected
……..
Télécharger cours: Lua scripting in wireshark (420 KO) (Cours PDF)