recent events that have gone on in my favorite website have inspired me to inform people of the dangers of ddos.
there is no anti-virus for ddos. the only cure is knowledge. informing the people is the only way to keep it from happening to them. or a nice firewall^^

i know their are a lot more ways to dos than are shown here, but i'll let you figure them out yourself. if you find any mistake in this tutorial please tell me^^

what is "ddos"?

denial of service attacks(or distributed denial of service attacks[ddos]) are a form of organized attacks with the goal of taking down a server by overloading it. often by sending useless information(packets) to a server in massive amounts.

in-fact about a year ago i found one of my websites was accidentally dos-ing use darksunlight as my webhost) because my php script made an infinite loop that sent the same information over and over and over into darksunlight's sql databases. this one page took this extremely powerful server down twice in less than a minute. that site has since been deleted.
that story demonstrates that it does not take more than a simple "error" in your code to overload a server.

keep in mind that altough spreading knowledge is my main goal, performing ddos attacks is indeed a federal crime in the us.
it is also an international offence and will be punished according to the local laws of the individual's country.

but enough talk. i will now show you a quick example of a dos attack of sorts you can do on your local computer.

keep in mind that this is not a real dos attack, but rather an example to visualize how a dos attack works.

we will take down your computer.
step 1
open up notepad, mousepad, or your favored equivalent.
step 2
type in this simple batch command
goto a
step 3
save as "dossample.bat" making sure you select "all files" from the "file type" dialog.
step 4
run that sucker, but save your work first, as this will crash even the best computers in a matter of minutes.

what did you learn from this?
observe how the file rapidly replicates itself, opening a new cmd right after it opens another.
an infinite loop has been created that has filled the ram with useless and massive amounts of cmds(or terminals for you unix folk)

ddos attacks work much the same way, except instead of replicating an infinite number of cmds, they send information(packets) to the server over and over and over again until the server crashes.

what information you may ask?
anything. your login name, your 'online' status, a new comment, the number of views on a video, your new high score. absolutely any information that could be resent a massive amount of times to the same server.

next we will be discussing the simplest form of ddos.

ddos by ping flood

please note that i will be pinging my localhost. you should too.

perhaps one of the simplest ways to dos is by using the 'ping' command built into most operating systems, including all windows and linux distributions.
step 1
start up your server. mine is apache, but that is beside the point, the server type does not matter. if it has an ip address, it can be pinged.
step 2
type in the ping command
ping -t -a -l 65500 localhost
step 3
press enter and watch it ping the localhost over and over until[/b]
your server crashes, or you get tired of waiting for it to crash.
since most modern servers can take the stress of the ping flood, you will need to get all your friends to help you ping to bring your server down. or even slow it down.

command explained
ping - tells the computer to ping a server
-t - it will continue to ping the server until the command is closed, or stopped.
-a - resolves the adress to host names.
-l - size.

by default the ping will send 32bytes of data to the server, so you must change this to a bigger number. the maximum is 65,500bytes, so that is what we used.

if you send a server any number higher than 65,500bytes it will instantly crash. this is called "ping of death".
like any other thing with the suffix "of death" it is very rare, and hard to accomplish indeed.
in order to learn more about the ping of death, read my huge response to this very thread, here!

ddos by reloading
something as simple as reloading a page can take down a server if done enough times.
step 1
make a page that lets you submit forms. method='get' is better than method='post' for this, but both will work.
(if you do not understand step 1, just find a page that lets you submit information, like a new comment or upload a picture)
step 2
fill out the forms and submit
step 3
reload the page
if the page uses the post method your browser will display a dialog asking if you are sure you want to resend the information, or something to that effect. simply click "continue" or "ok".(see now why get is better?)
step 4
keep reloading until server is down.
their are many add ons and tools that allow you to auto-reload a page. it is a matter of googleing for them. they are widely available and free.

i have just created a program that allows you to auto-refresh a page using ie. if you are interested please download from:
host: | size: 9kb | format: .zip ultra compressed | platform: windows

this method is very primitive as you can see, but it is probably the best way to ddos.
in order to learn more about ddos by reload, read my huge response to this very thread, here!

low-orbit ion cannon
loic (low orbit ion cannon) is an app, written in c# and developed by praetox, that was used by anonymous during project chanology. it attempts to dos the target site by using all its bandwidth, sending tcp, udp, or http requests to the server until it crashes.

loic | host: sourceforge | size: 130kb
step 1
download and extract loic
step 2
open loic.exe and fill out the required information.

[image: 618px-low_orbit_ion_cannon.png]

instructions for filling out:
ip or url = ip or url that you wish to dos
tcp / udp message = information being sent, just write something random. or leave it as default.
port = server's port
method = server's method, leave as tcp if unknown
if you are gonna try to take down a website then use http
speed = set to "<= faster"
threads = how many users it should simulate, the higher the number the faster it will crash. set to 10,000. note that this might make your computer lag, if so, set to a lower amount.
step 3
click on "imma chargin mah lazer"
this starts your the program.
warning: this tool might not seem like much, but many people of all ages have been arrested and convicted for knowingly using this tool. remember dos and ddos are federal crimes, however insignificant it may seem. use at your own discretion.

now you know what a ddos attack is and you can work to better protect your self.

their are still many other ways to attack a server, but these are the basics of dos.
protect your servers xd

like any web developer i hope you will use this information for the good.
sadly i know that their are those among us that are, even now as we read this, plotting how to do harm with this information.
to those, i flip the bird.

you may use this tutorial, in part or as a whole, for whatever purpose.