pymergepcap
A simple Python GUI tool to generate mergecap commands for merging multiple PCAP or CAP files using Wireshark's mergecap.exe.
Features
- Easy GUI: Built with PySimpleGUI for a user-friendly experience.
- Configurable: Set and update the path to
mergecap.exevia the GUI. - Flexible Input: Select a folder containing
.capor.pcapfiles to merge. - Output Selection: Choose your target merged PCAP file.
- Command Generation: Generates the full Windows command for
mergecap.exewith all paths properly quoted. - Cross-Platform Python: Works with Python 3.12+ on Windows.
Installation
- Clone this repository:
git clone https://github.com/fxyzbtc/pymergepcap.git cd pymergepcap
- 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
- Set the path to your
mergecap.exe(from Wireshark) in the GUI or viaconfig.ini. - Select the folder containing your
.capor.pcapfiles. - Choose the output file path.
- Click Merge to generate the command.
- Copy and run the generated command in your Windows Command Prompt.
Configuration
- The path to
mergecap.exeis stored inconfig.iniunder[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
License
MIT License
Credits
- Wireshark for
mergecap.exe - PySimpleGUI
- loguru
Happy merging!
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.2.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymergepcap-0.1.2.tar.gz.
File metadata
- Download URL: pymergepcap-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19a83521894b54af09a8bb437fe3e0c50e9bc61f8fbce42ef9a7ea2c13453088
|
|
| MD5 |
d44fa830fbee70ff71d310802d9d1e93
|
|
| BLAKE2b-256 |
92562441c687b5fb2fb8da17635d01b1e164f330d6c56c1ec474bdbc655931f1
|
File details
Details for the file pymergepcap-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pymergepcap-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f320987bcdc88ba1f8d3c9ff4639ff85953c2653c56b2ba378ffee596e6f5bb
|
|
| MD5 |
7e5eb16041cfae805e2764051618a194
|
|
| BLAKE2b-256 |
05cdb63cf274a9fe77eefbcbc476e5d0464513dd65aaf51b137d611296a8329d
|