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.
- 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.
- Python 3.x
- Scapy library
-
Clone the repository:
git clone https://github.com/your-username/scapy-packet-capture-tool.git cd scapy-packet-capture-tool
-
Install Scapy:
pip install scapy
-
Run the script:
python packet_capture.py