GithubHelp home page GithubHelp logo

priyamharsh14 / sniffndetect Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 17.0 58 KB

Advanced DDOS attack detector tool written completely on Python3

License: BSD 3-Clause "New" or "Revised" License

Python 45.53% CSS 19.73% HTML 34.74%
advance-ddos-detector ddos ddos-protection flood-attack python3 scapy

sniffndetect's Introduction

Hello there, I'm Priyam Harsh ๐Ÿ‘‹

sniffndetect's People

Contributors

priyamharsh14 avatar thespeedx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sniffndetect's Issues

Add more attack detection algorithm

Right now, SniffnDetect can identify attacks like:

  • SYN Flood Attack
  • SYN-ACK Flood Attack
  • ICMP Smurf Attack
  • Ping of Death

We need to add some more algorithms to detect other attacks (and possible source of attack)

IndexError: list index out of range

I just install the modules and run the code it give me a error pls help

  File "C:\Users\User\Desktop\SniffnDetect-master\app.py", line 8, in <module>
    sniffer = SniffnDetect()
  File "C:\Users\User\Desktop\SniffnDetect-master\sniffndetect.py", line 16, in __init__
    self.MY_IP = [x[4] for x in conf.route.routes if x[2] != '0.0.0.0' and x[3]==self.INTERFACE][0]
IndexError: list index out of range

How to Fix Lines See Photo Attachment

Exception in thread Thread-3:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator\sniffndetect.py", line 41, in analyze_threader
self.analyze_packet(pkt)
File "C:\Users\Administrator\sniffndetect.py", line 80, in analyze_packet
self.set_flags()
File "C:\Users\Administrator\sniffndetect.py", line 64, in set_flags
self.FILTERED_ACTIVITIES[category]['activities'])
File "C:\Users\Administrator\sniffndetect.py", line 48, in check_avg_time
time += activities[c][0] - activities[c-1][0]
IndexError: list index out of range

image

Sniff Detect does not detect attacks that I send to my web server

Hello, within our university as part of our study projects, our group has been tasked with conducting a study on the SniffnDetect tool. The goal is to be able to launch DDoS attacks and measure the performance of this tool. To achieve this, we decided to set up a standard network architecture with a malicious machine and a web server.

Web Server contains:

  • Apache2
  • SniffnDetect

Malicious Machine:
For the attack, we initially tried the SYN Flood attack using various tools such as hping3, MHDDoS, and even with a Python script. However, SniffnDetect does not detect any attacks.

Could you please explain why the attacks are not being detected, or is there documentation explaining how to test this tool?

Thank you.

AttributeError: 'str' object has no attribute 'ip'

Hey,
It looks like a very interesting project but sadly when I run
sudo python3 app.py
I get the following

~/SniffnDetect# sudo python3 app.py
Traceback (most recent call last):
  File "app.py", line 8, in <module>
    sniffer = SniffnDetect()
  File "/root/SniffnDetect/sniffndetect.py", line 16, in __init__
    self.MY_IP = self.INTERFACE.ip
AttributeError: 'str' object has no attribute 'ip'

Any idea why? Thanks for your help.

IndexError: list index out of range in def check_avg_time

Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/lab702/SniffnDetect/sniffndetect.py", line 41, in analyze_threader
    self.analyze_packet(pkt)
  File "/home/lab702/SniffnDetect/sniffndetect.py", line 80, in analyze_packet
    self.set_flags()
  File "/home/lab702/SniffnDetect/sniffndetect.py", line 63, in set_flags
    self.FILTERED_ACTIVITIES[category]['flag'] = self.check_avg_time(
  File "/home/lab702/SniffnDetect/sniffndetect.py", line 48, in check_avg_time
    time += activities[c][0] - activities[c-1][0]
IndexError: list index out of range

hi~
I just install the modules and run the code it give me a error pls help
I use this code on Ubuntu

How to Fix NameError: name 'check_avg_time' is not defined

ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
[2022-05-24 01:45:00,123] 127.0.0.1:62445 GET /ws 1.1 101 - 1996
Exception in thread Thread-5:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator\sniffndetect.py", line 39, in analyze_threader
self.analyze_packet(pkt)
File "C:\Users\Administrator\sniffndetect.py", line 75, in analyze_packet
self.set_flags()
File "C:\Users\Administrator\sniffndetect.py", line 60, in set_flags
self.FILTERED_ACTIVITIES[category]['flag'] = check_avg_time(self.FILTERED_ACTIVITIES[category]['activities'])
NameError: name 'check_avg_time' is not defined

image

How to attack the website

How to attack the website With DDOs attack so that we can detect which type of attack is happening,is there any demo on how to attack it for testing purpose

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.