Giter Club home page Giter Club logo

treebeard-ids's Introduction

TreeBeard IDS

Installation

Download Project & Install Dependencies

git clone https://github.com/iistyler/TreeBeard-IDS.git && cd TreeBeard-IDS  
virtualenv venv && source venv/bin/activate  
pip install -r requirements.txt 

Download KDD datasets

Download the data from the KDD website. Note if you don't plan on training the neural networks downloading the training data is sufficient.

Download both files to Database folder

curl http://kdd.ics.uci.edu/databases/kddcup99/kddcup.data_10_percent.gz > test.gz 
curl http://kdd.ics.uci.edu/databases/kddcup99/kddcup.data.gz > train.gz

gunzip -k test.gz
gunzip -k train.gz

You should now have the data files test & train.

Set up database

Add database credentials if different from current user to databaseLogin.py & Database/FileToDB.py

mysql -e "create database KDD"
mysql KDD < DATABASEFILE.sql

python Database/FileToDB.py

Usage

  • Trained neural nets are stored in NetBinarySaves/

  • Schema for tree layout is located in XMLSchema/

  • Descriptions for neural nets to train are in JSONNetDesc/

The application will go through the tree schema and find any networks not saved in "NetBinarySaves" and train them based on the description located in "JSONNetDesc"

Note: When specifying files in arguments do not include file extensions

Test tree nodes individually

Note: The number of threads can be changed in this file from the THREADS variable

python testingHandlerMultithreaded.py < Schema Name >

Test records running through the entire tree one at a time

python singleTestingHandler.py < Schema Name >

treebeard-ids's People

Contributors

iistyler avatar

Watchers

Liam Hazell 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.