Git Product home page Git Product logo

prodigy_cs_05's Introduction

Packet Sniffer Tool ๐Ÿš€

Overview

The Packet Sniffer Tool is a Python-based utility that captures and analyzes network packets. It extracts and displays relevant information such as source and destination IP addresses, protocols, and payload data. This tool is useful for network administrators and security professionals to monitor and troubleshoot network traffic.

Features โœจ

  • ๐Ÿ“ก Captures network packets in real-time.
  • ๐Ÿ—‚๏ธ Displays source and destination IP addresses.
  • ๐Ÿ” Identifies protocols (TCP, UDP, ICMP, HTTP).
  • ๐ŸŒ Extracts and prints HTTP request details.
  • ๐Ÿ“ฆ Shows payload data for deeper analysis.

Requirements ๐Ÿ› ๏ธ

  • ๐Ÿ Python 3.x
  • ๐Ÿ“ฆ scapy library
  • ๐Ÿ–ฅ๏ธ Npcap (for Windows users)

Installation ๐Ÿ–ฑ๏ธ

  1. Install Python 3.x: If you don't have Python installed, download and install it from the official Python website.

  2. Install Scapy: Install the scapy library using pip.

    pip install scapy
  3. Install Npcap (Windows only): Download and install Npcap from the Npcap website. Ensure to select the option to install Npcap in "WinPcap API-compatible mode."

Usage ๐Ÿš€

  1. Clone or Download the Script: Save the script as packet_sniffer.py.

  2. Run the Script with Administrator Privileges:

    • Open Command Prompt or Terminal with administrator privileges.
    • Navigate to the directory where the script is located.
    • Run the script using Python:
      python packet_sniffer.py
  3. Output: The script will start capturing packets and display the following information for each packet:

    • IP Source and Destination addresses.
    • Protocol type (TCP, UDP, ICMP).
    • Source and Destination ports (for TCP/UDP).
    • HTTP Method, Host, and Path (for HTTP packets).
    • Payload data.

Troubleshooting ๐Ÿ› ๏ธ

  • RuntimeError: Sniffing and sending packets is not available at layer 2: Ensure Npcap is installed correctly in "WinPcap API-compatible mode."
  • Permission Error: Run the script with administrator privileges to allow packet capture.

License ๐Ÿ“œ

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing ๐Ÿค

Contributions are welcome! Please fork the repository and create a pull request with your changes.

Contact ๐Ÿ“ฌ

For issues and inquiries, please open an issue on the GitHub repository or contact the author directly.

prodigy_cs_05's People

Contributors

codeaj001 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.