Skip to content

Repository files navigation

Task 1: Basic Network Sniffer

Objective

To build a Python-based network sniffer that captures and analyzes Ethernet, IP, and TCP traffic.

Tools Used

  • Python
  • socket module
  • struct module

Features

  • Captures raw packets
  • Extracts Ethernet, IP, and TCP headers
  • Displays:
    • Source & Destination MAC Addresses
    • Source & Destination IP Addresses
    • Protocol Type (TCP, UDP, ICMP)
    • Source & Destination Ports (for TCP)

How to Run

This script requires Linux and root access to capture packets.

sudo python3 network_sniffer.py

About

CodeAlpha Internship Task 1. BASIC NETWORK SNIFFER

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages