Giter Site home page Giter Site logo

stanleysathler / linux-packet-sniffer Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 2.0 232 KB

:link: • A toy network packet sniffer. Built with Linux sockets. CLI based on tcpdump. Linux-only.

Makefile 7.93% C 92.07%
c-sockets packet-sniffer packet-sniffing c-socket-programming

linux-packet-sniffer's Introduction

Packet Sniffer

What is a Packet Sniffer?

A Packet Sniffer is a program that intercepts the network traffic passing through network interfaces (such as a network board), logging every byte passed through the network.

Packet Sniffers are pretty useful specially for network analyzing and monitoring, and they are often used by network administrators and security specialists.

The most famous Packet Sniffers on the market are Wireshark and tcpdump.

Can I use it professionally?

I wouldn't recommend this. 😞

This was created for learning purposes, to learn more about network protocols and sockets. It's unstable, won't receive updates, and misses lots of features.

Can I contribute?

Please, be my guest! 🚀

This is the main purpose of this project: help students to build their own. Or at least to help them understand how they work. I'm also learning, so I'm pretty sure new PRs can still teach me a lot.

I made an effort to keep the code as simple as possible. Still, if you feel the readability could be improved to make it more friendly, feel free to open a PR. Also, if you feel comfortable to implement a fresh new feature here, you are also welcome. 💎

If you need any help to understand this code, you can contact me at [email protected].

linux-packet-sniffer's People

Contributors

stanleysathler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

linux-packet-sniffer's Issues

Consider incoming UDP datagrams

Currently the Packet Sniffer only captures TCP segments. It would be great if we could also capture incoming UDP datagrams as well.

It follows the same idea behind TCP: each datagram has a specific structure, where each bit (or group of bits) represent a specific information.

Initially it doesn't need to be a complex implementation. Only the most basic fields are enough. Remember: this is a project for learning purposes - we don't need to consider edge cases or implement complex logic. We can have "bugs" or incomplete features, it's okay.

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.