Giter VIP home page Giter VIP logo

peershark's Introduction

PeerShark

Peer-to-Peer botnet detection by tracking conversations

Contributors

  • Pratik Narang
  • Subhajit Ray
  • Chittaranjan Hota

PeerShark requires Python v2.7.* and Tshark installed, and has been tested only for Linux environment.

Modules to be used in the following order:

  1. FilterPackets.py : Take inputdir or input files from PCAPFILES. The module runs tshark on each file in inputdir and extracts the fields mention in TsharkOptions.txt such as src-ip,dst-ip, protocol, payload length. One new file is created per pcap file which contains only the fields we want for future analysis. The new files are stored in PCAPDATADIR.

usage : python FilterPackets.py

  1. GenerateFlows.py : Take each file from PCAPDATADIR -> generate flow information -> store processed data for each file in FLOWDATADIR.

usage : python GenerateFlows.py

  1. generateSuperFlows.py : Take each file from FLOWDATADIR -> merge flows into superflows based on input parameters -> store in SUPERFLOWDATADIR.

usage: python generateSuperFlows.py start(in hrs) increment(in hrs) end(in hrs)

Number of files generated = (end - start)/increment

One file is generated for each value of timegap ranging from start to end.

####OPTIONAL:

  1. plotGraphs.py: for generating graphs

  2. createTrainingData.py: use this file to create labelled training data set. It reads folders (not files) residing in SUPERFLOWDATADIR, and creates one labelled file (weka style minus the header) per folder (with required attributes only- no. of pkts, no. of bytes, iat, duration, label) with the folder name appended as last column.

After generating a labelled 'training dataset', supervised machine learning algorithms can be used to generate models for P2P botnet detection.

peershark's People

Contributors

pratiknarang avatar

Watchers

James Cloos avatar Praveen Kumar Kolla 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.