Skip to content

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

Notifications You must be signed in to change notification settings

SiddChugh/Packet-Sniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages