Giter Site home page Giter Site logo

elihe999 / net2pcap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nbareil/net2pcap

0.0 2.0 0.0 161 KB

Net2PCAP is a simple network-to-pcap capture file for Linux. Its goal is to be as simple as possible to be used in hostile environments

Makefile 2.11% Shell 0.40% M4 3.63% C 93.86%

net2pcap's Introduction

Net2PCAP is a simple network to pcap capture file for Linux. Its goal
is to be as simple as possible (hence auditable) so that good
confidence can be reached, for it to be used in hostile
environments.

It does not require any library except a bit of libc. It does not do
anything except dumping network traffic from an interface to a pcap
file. It is less than 600 lines of C. Please audit it !

Comparison with tcpdump

  * Yes, tcpdump -w capfile can do almost the same. But the goal of
    tcpdump is network debugging (thus, lot of options, packet
    disassembly, etc.). The goal of net2pcap is to capture traffic into
    a file in hostile environments (honeypots, internet, etc.) for
    future analysis.
  * net2pcap can run in daemon mode
  * net2pcap can reopen its capture file (SIGHUP) (used for capture file rotation)
  * net2pcap does not do anything else than reading from network and dumping to file
  * net2pcap does not use libpcap
  * net2pcap drops its privileges
  * net2pcap sandboxes itself (if libseccomp is available)
  * net2pcap runs only on Linux
  * net2pcap is auditable (less than 600 lines)

Original code from Philippe Biondi, bugs added by Nicolas Bareil :)

net2pcap's People

Contributors

nbareil avatar phil777 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.