Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
oversteer
Jun 6, 2005

UserNotFound posted:

Unix Admin:
It didn't crash. A student was intentionally exhausting memory, but eventually it recovered. The student's account has been disabled for now.

I managed to do this entirely accidentally while in my university summer holiday in 1999. I wanted to get to the top of a "top sites" banner list (when you got ranked on a portal by the number of downloads of a banner placed on your site). I was running a ringtones/logos portal and the higher I was, the more money I made.

So having had a term of UNIX lessons I had the bright idea to use our university servers to run a script once a minute (from cron)

#!/bin/bash
lynx -s http://bannersites/siteid=1234 > /dev/null

This was good, but not enough. (No idea why I didn't use wget). So I ran the cron script from a second server.

Still not enough.

So I duplicated the wget's a bit. Still not enough.

Next was to use my newly found BASH for/next loops to run a new script every minute, calling that script each time..

#!/bin/bash
for ((i=1;i<=10;i+=1)); do
bannerscript.sh &
done

For some reason this still wasn't enough. So I increased the for() to 100 times. I was climbing the rankings neatly so I left it to it.

Sadly the banner script took a few seconds to run each time, and within a few minutes I'd managed to tie up all the processes for each server, causing the network admins to send me rather irritable emails while they worked out what was going on, then when they realised what I was doing! Still, I didn't get banned or anything..

Adbot
ADBOT LOVES YOU