Name: Anonymous 2013-09-05 22:06
What python hacking tools have you written lately?
#!/usr/bin/env python
import threading
import multiprocessing
class CPUHack(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run (self):
while True:
1+1
for i in range(multiprocessing.cpu_count()*20):
CPUHack().start()
while True:
1+1
"
>bump for technology
"
import os, thread, socket, time
host = ''
port = 80
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
count = 0
s.bind((host, port))
def timer():
global count
while 1:
time.sleep(1)
if count >= 10:
print("DDOS INCOMING!!! : "+ str(count))
count = 0
thread.start_new_thread(timer, ())
while 1:
data, addr = s.recvfrom(1024) # buffer size is 1024 bytes
count += 1