Skip to content

Repository files navigation

CodeAlpha_Basic_Network_Sniffer

Build a network sniffer in Python that captures and analyzes network traffic.

Network Traffic Analysis Tool This tool provides various functionalities for analyzing network traffic, including packet capture, interface scanning, packet interaction, and advanced features like GeoIP data integration and traceroute visualization.

Features Scan and Display Available Network Interfaces Start Packet Capture on a Selected Interface Send and Receive Packets to a Specified Destination Run Advanced Features (GeoIP, Traceroute, Multiple Interfaces) Exit Requirements Python 3.x Scapy GeoIP Library (Optional for GeoIP features) GeoLite2-City.mmdb file (for GeoIP features) Installation Clone the Repository:

fg1

Then make shell scripts an executable file using chmod u+x <file_name>

image

And run it to install dependencies, ./<file_name>

Setup GeoIP (Optional):

Download the GeoLite2-City.mmdb file from the MaxMind website. Update the path in advanced_features.py to point to the GeoLite2-City.mmdb file

3

Usage Run the main.py script to start the tool:

4

Menu Options

  1. Scan and Display Available Network Interfaces This option scans and lists all available network interfaces on your machine.

Example:

5
  1. Start Packet Capture on a Selected Interface This option allows you to start capturing network packets on a selected interface.

Example:

6
  1. Send and Receive Packets to a Specified Destination This option sends packets to a specified destination and receives responses. The destination can be an IP address or a URL.

Example:

7
  1. Run Advanced Features (GeoIP, Traceroute, Multiple Interfaces) This option provides advanced features including GeoIP-based packet capture, traceroute visualization, and sniffing on multiple interfaces.

  2. Exit This option exits the program.

Contributing If you want to contribute to this project, feel free to fork the repository and submit a pull request with your changes.

About

Build a network sniffer in Python that captures and analyzes network traffic.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages