NetSour
NetSour is a network packet sniffer and analyzer tool built with Python and Scapy.
Features
- Real-time packet capture and display
- Packet analysis and hexdump view
- DoS (Denial of Service) attack detection
- Support for various protocols (TCP, UDP, ARP, etc.)
- Interactive curses-based user interface
Requirements
- Python 3.x
- Scapy
- Root/Administrator privileges (for packet sniffing)
Installation
- Clone this repository
- Install the required dependencies:
pip install -r requirements.txt
Usage
Run the script with root privileges:
- Enter the network interface name when prompted
- Use arrow keys to navigate through captured packets
- Press 'a' to analyze a specific packet
- Press 'q' to quit the application
Functions
is_root(): Checks if the script is running with root privilegesprocess_packet(): Extracts and formats packet informationsniff_packets(): Captures network packets using Scapydetect_dos(): Identifies potential DoS attacksdisplay_packets(): Manages the main user interfaceanalyze_packet(): Provides detailed analysis of a selected packet
Note
This tool is for educational and network administration purposes only. Always obtain proper authorization before monitoring network traffic.
License
Gpl V3
Metadata
Release files for netsour 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netsour-0.1.0.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netsour-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.2 kB
Release files / netsour-0.1.0.tar.gz
| Download URL | netsour-0.1.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0c77a1c23f65e8b0f95ebdb05c19d2589620d8971198ffa685c1e93d3df81a4
|
|
BLAKE2b-256 checksum How to use checksums |
62d490da7cc676b29b36251d19921e53b721376b8a998ba2a6ae80bb970ec8c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / netsour-0.1.0-py3-none-any.whl
| Download URL | netsour-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
765145d232a7a2797e645366d38aaa0f42a3d59e9adfeed56e11df4714ff9d8a
|
|
BLAKE2b-256 checksum How to use checksums |
7fcb5ee7a22145de097beb53e67a8a12c19605af3dc9907549afa7b22b05afd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|