Skip to main content

A packet analyzer with enhanced features like Nmap scanning and geolocation

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netsour-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netsour-0.1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file netsour-0.1.0.tar.gz.

File metadata

  • Download URL: netsour-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for netsour-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a0c77a1c23f65e8b0f95ebdb05c19d2589620d8971198ffa685c1e93d3df81a4
MD5 45e91e4bf40f7ada1611d7002721b6b0
BLAKE2b-256 62d490da7cc676b29b36251d19921e53b721376b8a998ba2a6ae80bb970ec8c5

See more details on using hashes here.

File details

Details for the file netsour-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: netsour-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for netsour-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 765145d232a7a2797e645366d38aaa0f42a3d59e9adfeed56e11df4714ff9d8a
MD5 94c82bf8ffb893920ae8795c003567aa
BLAKE2b-256 7fcb5ee7a22145de097beb53e67a8a12c19605af3dc9907549afa7b22b05afd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page