NetSour is a network packet sniffer and analyzer tool built with Python and Scapy.
- 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
- Python 3.x
- Scapy
- Root/Administrator privileges (for packet sniffing)
- Clone this repository
- Install the required dependencies:
pip install -r requirements.txt
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
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
This tool is for educational and network administration purposes only. Always obtain proper authorization before monitoring network traffic.
Gpl V3