forked from 3kh0/echodown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattack.py
25 lines (23 loc) · 2.01 KB
/
attack.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
#
# ███████╗░█████╗░██╗░░██╗░█████╗░ ██████╗░░█████╗░░██╗░░░░░░░██╗███╗░░██╗
# ██╔════╝██╔══██╗██║░░██║██╔══██╗ ██╔══██╗██╔══██╗░██║░░██╗░░██║████╗░██║
# █████╗░░██║░░╚═╝███████║██║░░██║ ██║░░██║██║░░██║░╚██╗████╗██╔╝██╔██╗██║
# ██╔══╝░░██║░░██╗██╔══██║██║░░██║ ██║░░██║██║░░██║░░████╔═████║░██║╚████║
# ███████╗╚█████╔╝██║░░██║╚█████╔╝ ██████╔╝╚█████╔╝░░╚██╔╝░╚██╔╝░██║░╚███║
# ╚══════╝░╚════╝░╚═╝░░╚═╝░╚════╝░ ╚═════╝░░╚════╝░░░░╚═╝░░░╚═╝░░╚═╝░░╚══╝
#
# https://github.com/3kh0/echodown
#
import time
import random
from termcolor import colored
def start_attack(ip, protocol, threads):
print(colored("Target set to " + ip + " using " + protocol + ".", "magenta",))
print(colored("Starting attack with " + str(threads) + " threads, use CTRL+C to stop at any time", "magenta",))
print(colored("You can use https://iplocation.io/ping/" + ip + " to check the webserver ping.","magenta",))
print()
while True:
mbSec = round(random.uniform(10, 40), 1)
hitRate = round(random.uniform(95, 100), 2)
print(colored("{}MB sent in the last second to target with a {}% Hitrate on requests.".format(mbSec, hitRate),"green",))
time.sleep(1)