Skip to main content

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

  1. Clone this repository
  2. Install the required dependencies:

pip install -r requirements.txt

Usage

Run the script with root privileges:

sudo python main.py asciicast

  1. Enter the network interface name when prompted
  2. Use arrow keys to navigate through captured packets
  3. Press 'a' to analyze a specific packet
  4. Press 'q' to quit the application

Functions

  • is_root(): Checks if the script is running with root privileges
  • process_packet(): Extracts and formats packet information
  • sniff_packets(): Captures network packets using Scapy
  • detect_dos(): Identifies potential DoS attacks
  • display_packets(): Manages the main user interface
  • analyze_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)

Source distribution for netsour 0.1.0
File Size Uploaded
netsour-0.1.0.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for netsour 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page