Himasnhu-AT / test_DDOS

testing DDOS prevention attack for personal firewall @OpenEduHq 's FallenAngel
0 stars 1 forks source link

kill non critical and used all possible threads #1

Closed BhuvanSharma0711 closed 2 months ago

BhuvanSharma0711 commented 2 months ago

for now i have used a example of how we can do it stilll not sure about logic of getting non-critical process

Himasnhu-AT commented 2 months ago

@BhuvanSharma0711 resolve this issue in terminal:

(venv) himanshu@Himanshus-3 test_ddos % python3 attack.py https://google.com/
/Users/himanshu/codes/projects/test_DDOS/attack.py:4887: SyntaxWarning: invalid escape sequence '\ '
  print("""
https://google.com/ google.com
Starting the FallenAngel: 
DDOS shotings in webserver Hyper Massive Revolt iDDoS Tool
Created By Himasnhu-at

        _____
       /           | () () |
       \  ^  /
        ||||
        ||||

{'name': 'kernel_task', 'pid': 0, 'cpu_percent': None}
Traceback (most recent call last):
  File "/Users/himanshu/codes/projects/test_DDOS/attack.py", line 4934, in <module>
    main()
  File "/Users/himanshu/codes/projects/test_DDOS/attack.py", line 4918, in main
    killnon_critical()
  File "/Users/himanshu/codes/projects/test_DDOS/attack.py", line 4902, in killnon_critical
    if process_info['cpu_percent'] < 1:  # Assume non-critical if low CPU usage
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'NoneType' and 'int'
(venv) himanshu@Himanshus-3 test_ddos % 

also add dependencies in requirements.txt

Himasnhu-AT commented 2 months ago

related to #3