Little backstory:
They set up a web server for us to work on a project on, and every student group got their own login/password and there were also a few teacher logins. The setup was MySQL/Apache2/PHP. The operating system was lolwindows.
They pretty much failed with the setup and had Apache run a service, and thus PHP also ran as that service, and PHP was not running in safe mode. As the System user. So, pretty much full access for everyone to touch all the files on the machine, and run executable files.
So, uploaded netcat and launched it through PHP for a shell, and uploaded fgdump to dump the password hashes. 5 minutes later with ophcrack and rainbow tables later and had all the passwords.
mfw the administrator account's password is "hippie".
Anyway, next lesson of that class is about security, so that'll be fun.
Oh, also. The teacher did say beforehand we were allowed to play around on the server as long as we wouldn't delete anything or break it.
I did consider changing the apache config to just point everyone's site to that hacked page, but that'd be too much of an impact on the other students.