Skip to content

vedansh2810/Scapy-Packet-Capture-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Prodigy_CS_05

Scapy Packet Capture Tool

Overview

The Scapy Packet Capture Tool is a Python script designed to capture and log details of IP packets using the Scapy library. It captures packets on the default network interface and logs the protocol type, source IP address, destination IP address, and additional protocol-specific details.

Features

  • Captures IP packets on the default network interface.
  • Logs protocol type, source IP, destination IP, and additional details for TCP, UDP, and ICMP packets.
  • Supports logging to a file for better analysis.
  • Includes error handling for robust packet processing.

Requirements

  • Python 3.x
  • Scapy library

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/scapy-packet-capture-tool.git
    cd scapy-packet-capture-tool
    
  2. Install Scapy:

    pip install scapy
    
  3. Run the script:

    python packet_capture.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages