Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cenab/pidnetdump
Real-time network packet monitoring for a specific PID.
https://github.com/cenab/pidnetdump
Last synced: 19 days ago
JSON representation
Real-time network packet monitoring for a specific PID.
- Host: GitHub
- URL: https://github.com/cenab/pidnetdump
- Owner: cenab
- License: other
- Created: 2024-11-16T23:27:17.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-30T20:27:34.000Z (about 2 months ago)
- Last Synced: 2024-11-30T21:24:53.826Z (about 2 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pidnetdump
Real-time network packet monitoring for a specific PID.
## Features
- Monitor network packets associated with a specific Process ID (PID) in real time.
- Supports IPv4 and IPv6.
- Filter by protocol (TCP, UDP, or both).
- Specify network interface to listen on.
- Option to log output to a file.
- Verbose mode for detailed packet information.## Installation
```bash
git clone https://github.com/yourusername/pidnetdump.git
cd pidnetdump
python3 setup.py install
```_Note: You may need to run the installation command with `sudo` if you encounter permission issues._
## Usage
```bash
pidnetdump [options]
```## Options
- `PID`: Process ID to monitor.
- `-i`, `--interface`: Network interface to listen on (default: all interfaces).
- `-p`, `--protocol`: Protocol to filter (`tcp`, `udp`, or `all`; default: `all`).
- `-l`, `--logfile`: Log output to a file.
- `-v`, `--verbose`: Enable verbose output.## Example
```bash
sudo pidnetdump -i eth0 -p tcp 1234
```## Requirements
- Python 3.x
- [psutil](https://pypi.org/project/psutil/) >= 5.8.0
- [Scapy](https://pypi.org/project/scapy/) >= 2.4.5## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.