priyamharsh14 / sniffndetect Goto Github PK
View Code? Open in Web Editor NEWAdvanced DDOS attack detector tool written completely on Python3
License: BSD 3-Clause "New" or "Revised" License
Advanced DDOS attack detector tool written completely on Python3
License: BSD 3-Clause "New" or "Revised" License
Right now, SniffnDetect can identify attacks like:
We need to add some more algorithms to detect other attacks (and possible source of attack)
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
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
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:
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.
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.
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
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
I would like to ask whether it can be accessed through an IP address, not just a loopback address
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.