Git Product home page Git Product logo

siddchugh / packet-sniffer Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 28 KB

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

Python 100.00%
packet-sniffer python3 raw-sockets ubuntu

packet-sniffer's Introduction

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

packet-sniffer's People

Contributors

siddharthhchugh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.