Coder Social home page Coder Social logo

sraaronrock / automaticbashtcpdump Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ikfes/automaticbashtcpdump

0.0 1.0 0.0 3 KB

Automatic and configurable minimalistic tcpdump bash script that detects attacks by monitoring interface packets per second value and starts the capture by itself.

Shell 100.00%

automaticbashtcpdump's Introduction

AutomaticBashTCPDump

Requires tcpdump installed in the system.

You are meant to run this bash in screen session or in background and leave it running. Interface name eth0 needs to match your WAN main interface name, so eth0, ens3, eth0:0, etc.. Change it to both lines 2 and 11 if required.

-gt 30000 is the amount of PPS it requires to see in order to start the tcpdump command. Change this to high enough, so that it wont start from normal traffic.

-c 20000 is the amount of packets that tcpdump will capture before ending the process. Default value -c 20000 is about 5-30MB .pcap file.

You can autostart this by adding following cron job: @reboot screen -dmS capture /path/to/file/capture.sh

Above needs screen package installed in the system.

automaticbashtcpdump's People

Contributors

ikfes avatar

Watchers

James Cloos 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.