Giter VIP home page Giter VIP logo

luadissectors's Introduction

LuaDissectors

A bunch of lua dissectors for Wireshark that support iNet-X and IENA packet formats

(c) Diarmuid Collins [email protected]

#Install

Clone this repo into a your Wireshark Configuation Profile directory (Edit -> Configuration Profile -> Blue Link) and call the folder "plugins" Wireshark will pick up all the dissectors automatically

A number of protocols have heuristic checkers so that Wireshark will automatically check if a packet might be a specific format and will attempt to decom that packet.

If you want the dissectors to automatically run on particular ports, then you need to register that port with the dissector, eg port 5566 will receive inetx traffic

-- load the udp.port table
udp_table = DissectorTable.get("udp.port")
-- register our protocol to handle traffic on udp port 5566
udp_table:add(5566,inetx_generic_proto)

You can also dissect specific packets in Wireshark by right-clicking on a packet and selecting Decode As -> INETX

Creating your own dissectors

The included dissectors should give you a good idea on how to create custom dissectors. Generally you

  • Declare a new protocol using the Proto() syntax
  • Declare some new fields that are part of the protocol using ProtoField()
  • Write the dissector function, populating those fields with the payload. Step through each payload byte/word etc and assign it to a field

luadissectors's People

Contributors

diarmuidcwc avatar

Stargazers

Carlos Sarille avatar Joel Pérez avatar  avatar Dan Leedham avatar Chris Ludlow avatar N. Schmidt avatar RegularITCat avatar Christoph avatar nbrains.net avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

manouchehri

luadissectors's Issues

Do you have an example capture file?

Hi,
I'd like to add your Lua plugin scripts to Wireshark's repository (I'm one of the developers).
Do you have an example packet capture(s) to use with the scripts, that you would be willing to have publicly viewable?
-hadriel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.