Skip to main content

A modern Python GUI tool to generate mergecap commands for merging multiple PCAP or CAP files using Wireshark's mergecap.exe. Features an intuitive interface, flexible configuration, and safe command generation for Windows users.

Project description

pymergepcap

A simple Python GUI tool to generate mergecap commands for merging multiple PCAP or CAP files using Wireshark's mergecap.exe.


Screenshot


Features

  • Easy GUI: Built with PySimpleGUI for a user-friendly experience.
  • Configurable: Set and update the path to mergecap.exe via the GUI.
  • Flexible Input: Select a folder containing .cap or .pcap files to merge.
  • Output Selection: Choose your target merged PCAP file.
  • Command Generation: Generates the full Windows command for mergecap.exe with all paths properly quoted.
  • No Execution: For safety, the tool only generates the command; you run it manually in your terminal.
  • Cross-Platform Python: Works with Python 3.12+ on Windows.

Installation

  1. Clone this repository:
    git clone https://github.com/fxyzbtc/pymergepcap.git
    cd pymergepcap
    
  2. Install dependencies:
    pip install -r requirements.txt
    # or, if using PEP 621/pyproject.toml
    pip install .
    

Usage

GUI

  • Run with Python:

  • Or as a module:

    python -m pymergecap
    
  • Or as a CLI script (if installed):

    pymergecap
    

Steps

  1. Set the path to your mergecap.exe (from Wireshark) in the GUI or via config.ini.
  2. Select the folder containing your .cap or .pcap files.
  3. Choose the output file path.
  4. Click Merge to generate the command.
  5. Copy and run the generated command in your Windows Command Prompt.

Configuration

  • The path to mergecap.exe is stored in config.ini under [DEFAULT] MergecapPath.
  • You can update this path anytime using the Change Mergecap button in the GUI.

Example Command

"C:/Program Files/Wireshark/mergecap.exe" -w "D:/py/pymergepcap/merged.cap" "D:/py/pymergepcap/test1.cap" "D:/py/pymergepcap/test2.cap"

Screenshot

GUI Screenshot


License

MIT License


Credits


Happy merging!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymergepcap-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymergepcap-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pymergepcap-0.1.1.tar.gz.

File metadata

  • Download URL: pymergepcap-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.25

File hashes

Hashes for pymergepcap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1c89aeff2225d1193b0e469c0e725229435c0a21389c63a73f52fbe2921ac019
MD5 e77eeed072b80d9233afa0c4a2ae562b
BLAKE2b-256 3f706889dc059ef24685de5cc7fb0bbe215e5ed1b30c32411330f93a4b9982c5

See more details on using hashes here.

File details

Details for the file pymergepcap-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pymergepcap-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c988e8902125b900644582a29927953252e2f71bcaad261b5dac9ed3f141806a
MD5 3e33ead19c8de025c0a1f97dda899acc
BLAKE2b-256 bd2f06a8464a80ed54ba629a156820ae4885fa462162c3eeb39b25b0c4ab0356

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page