mar0ls / wireshark_plugin

wireshark app plugins (lua scripts)

Repository from Github https://github.commar0ls/wireshark_pluginRepository from Github https://github.commar0ls/wireshark_plugin

Wireshark Lua Plugins

This repository contains a collection of Lua scripts designed to extend Wireshark's functionality. These plugins facilitate enhanced packet analysis and provide additional insights into network traffic.

Plugins Overview

  1. check_asn.lua:

    • Uses an external ASN (Autonomous System Number) database in TSV format to enrich packet data with ASN information.
    • The required database file can be downloaded from this link and extracted before use.
    • You must indicate the path to the tsv file with the ASN database in the script.
    • Once the plugin is loaded, it is ready for use without additional actions, automatically adding an asn field to packet details.
  2. check_ipinfo.lua:

    • Enhances packet details by fetching comprehensive IP information from external services (https://ipinfo.io), including geolocation, ISP details, and more.
    • Requires an internet connection for real-time lookups.
  3. rtp_h265_typ33_extractor.lua:

    • A specialized dissector that processes RTP packets carrying H.265 streams (payload type 33).
    • Extracts h.265 stream from pcap file and saves to new file. Can be played later e.g. in VLC.

Installation

To utilize these plugins in Wireshark, place the Lua scripts in the appropriate directory based on your operating system:

  • macOS: /Applications/Wireshark.app/Contents/PlugIns/wireshark/
  • Windows: C:\Program Files\Wireshark\Plugins\
  • Linux: /usr/lib/wireshark/plugins/

Applying Changes Without Restarting

Instead of restarting Wireshark, you can reload the Lua plugins dynamically:

  • Go to Analyze -> Reload Lua Plugins to apply changes without restarting.

Usage

  • Once installed, the plugins will automatically process relevant packets during capture or analysis.
  • For check_ipinfo.lua, a Check IPinfo button will appear in the Tools menu to activate its functionality.
  • For rtp_h265_typ33_extractor.lua, an Extract H265 from RTP button will appear in the Tools menu to enable extraction.
  • check_asn.lua automatically adds an asn field to packet details and is ready for use immediately after loading, requiring no additional actions beyond placing the pre-downloaded database in the correct location.

Compatibility

These scripts are developed and tested for Wireshark versions 4.4.3 or later.

Contributing

Contributions are welcome! If you have improvements or additional scripts to share:

  1. Fork this repository.
  2. Create a new branch for your feature or fix.
  3. Commit your changes with clear descriptions.
  4. Push to your branch and submit a pull request.

Note: These plugins are provided as-is. Ensure you understand the functionality of each script before use, especially in production environments.

About

wireshark app plugins (lua scripts)


Languages

Language:Lua 100.0%