Giter Club home page Giter Club logo

nids's Introduction

Creating a NIDS using snort which replays its alerts in a syslog server

I am running my syslog server as host

Steps : for the server :

sudo docker run --privileged -it -P --rm --net=host stavroslir/mysyslogserver /bin/bash

sudo service rsyslog restart

for the client :

sudo docker run -it --privileged --rm -P --net=host stavroslir/myclient /bin/bash

snort -i wlp6s0 -s -c /etc/snort/etc/snort.conf -A fast (I use wifi, if using Ethernet ,use ifconfig to check your enps)

Open 2nd container to create the alert:

sudo docker run -it --rm --net=host myclientsys /bin/bash

wget 8.8.8.8:23456/malicious.exe (we want the destination port to be 23456)

we can close the 2nd container whenever we want

In the first container again

sudo service rsyslog restart

logger -n 127.0.0.1 -f alert -P 514

We will find the alert in our /var/log/messages or /var/log/messages file on the server.

tail -f messages

you can pull my docker images from here: server :https://hub.docker.com/r/stavroslir/mysyslogserver client :https://hub.docker.com/r/stavroslir/myclient

UPDATED!!

I have created 3 bash scripts ,one for each container that when you run them,it does automatically the job for you. You can run them on your own with the following steps:

For the server:

cd /var/log

./myshellscript.sh

For the client:

cd /var/log/snort

./myshellscript.sh

and for the 2nd client that creates the traffic:

cd /var/log/snort

./secclient.sh

NOTE! You should make the Server do the restart first ,or this might not work!

You can run the bash script i have uploaded ,the whole process gets done automatically.

nids's People

Contributors

stavroslyr avatar

Watchers

 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.