SiddChugh / Packet-Sniffer

The application outputs source / destination IP address and protocol for each packet transmitted through the provided interface. If the IP protocol for the packet turns out to be either UDP or TCP, then the source / destination port numbers are outputted as well.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Packet Sniffer

Packet sniffer implemented in Python3 that allows users to monitor traffic runnning through the local network. After every 10 seconds, the application outputs the counts of each packet transmitted between the two unique sources in the session are printed to the stdout. When the user decides to close the session, the summary that includes information such as the total number of packets transmitted during the session and a list of all the packets exchanged between two unique sources are also printed.

Usage

sudo python3 sniffer.py interface Press Ctrl + C to stop the application.

Format of Output

Format of packets captured:

Source IP:
Destination IP:
IP Protocol used:
If protocol is TCP or UDP
   Source Port Number:
   Destination Port Number

Format of counts of each packet transmitted between the two unique sources:

Source IP <---> Destination IP : Protocol, Number of packets exchanged

References

About

The application outputs source / destination IP address and protocol for each packet transmitted through the provided interface. If the IP protocol for the packet turns out to be either UDP or TCP, then the source / destination port numbers are outputted as well.

License:Other


Languages

Language:Python 100.0%