A quick packet Sniffer developed using python v3 with scapy to capture TCP, UDP and ICMP Packets in linux .This script is tested on linux Operating System on python version3. The script captures all the incoming and outgoing packets from all interface of the machine. Once the packets are captures they are classfies into TCP, UDP and ICMP packets based on their header.Under each classification the packets are categorized into incoming and outgoing packets.Some of the information captures by Packet Sniffer is Time Stamp, Source Mac,Destination Mac,source IP Address, Destination IP Address, . The dependent modules are Builtin os, datetime,socket, time, and external Scapy . Scapy is not pre-installed in Linux hence, needs to be installed.
sudo apt install scapy
git clone https://github.com/Roshan-Poudel/Python-Scapy-Packet-Sniffer.git
cd Python-Scapy-Packet-Sniffer/
sudo python3 python-packet-sniffer.py