Monitor network traffic of a group of processes
Project description
Network Monitoring for processes
netmon-proc
is a network monitoring CLI tool designed to monitor network traffic and provide detailed metrics for specified processes. It leverages Scapy for packet sniffing and offers multiple formatting options for the output.
Table of Contents
Features
- Real-time network traffic monitoring for specific processes.
- Metrics aggregation and reporting.
- Support for different output formats, including JSON and tabular formats.
- Threaded implementation for efficient performance.
- Customizable filtering using BPF (Berkeley Packet Filter) syntax.
Installation
You can install netmon-proc
using the provided wheel or source distribution files.
From Source
-
Clone the repository:
git clone https://github.com/0xzer0x/netmon-proc.git cd netmon-proc
-
Install dependencies:
poetry install
-
Build the package:
poetry build
-
Install the package:
pip install dist/netmon_proc-0.x.x-py3-none-any.whl
Usage
Command Line Interface
netmon-proc
provides a CLI for starting the network monitoring tool. Below are some usage examples.
netmon-proc --help
Example Command
To start monitoring network traffic for a specific process with a BPF filter and output the results in a table format:
netmon-proc --filter "tcp port 443" --format table --metrics rx_bytes firefox
License
This project is licensed under the GPL v3 License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file netmon_proc-0.2.1.tar.gz
.
File metadata
- Download URL: netmon_proc-0.2.1.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.6.40-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa06e062ed14824454a2fe9c75ce22267bba98b711ee525469ff505f2c3de6b |
|
MD5 | 7ffebce3016002ce8086b07a14123d7b |
|
BLAKE2b-256 | 6b2ae149dc66d8e7c5d240166b120d4f3cee9a7e889bf8a3653d5bf8d7522ff6 |
File details
Details for the file netmon_proc-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: netmon_proc-0.2.1-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.6.40-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c2c3748cd152c309d853f69dead06c4530ddef78e3cc174c4ba3f5d02843456 |
|
MD5 | ebf379e80bda16da5a4e3a9c6a6b7e65 |
|
BLAKE2b-256 | 882a800b43436b191f40e563488a4db4da4a86371260f4a6d561f4a7af313005 |