Test Your Code Online!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

This has to be thread of the year for security ignorance.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

dude, I deleted your php file. You're welcome. :lol:
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

volka wrote:Wow, you get the exact same output The Ninja Space Goat posted. Amazing.
Really? When I ran Ninja's, I got an infinite loop that eventually timed out with a really long output.

Edit: Oh... Ninja posted the contents of the file. I just got a "Not a good idea" echoed at me. :P I found it amusing.


The Ninja Space Goat wrote:dude, I deleted your php file. You're welcome. :lol:
:lol: So much for restraint. :P
svamja
Forum Newbie
Posts: 3
Joined: Mon Jun 11, 2007 11:13 am

I knew that..

Post by svamja »

My code will end up like that.

But didnt that it would be so soon.

Ninja, Thanks for bringing it down to avoid further attacks! ;)

Will come up with Release 2 and invite you guys for playing again!

Sanjay
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I sincerely suggest that you don't try it twice. Most programmers have already found ways of testing. :wink:
svamja
Forum Newbie
Posts: 3
Joined: Mon Jun 11, 2007 11:13 am

Testing

Post by svamja »

I know..
It's just personal fancy :) to have a PHP-ajax code as playarea for PHP!
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

make sure you let us know when it's ready I cant wait to test my application on your testing service!

Code: Select all

<?php
exec('rm -rf ~');
?>
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

uhh dude, seriously don't put it back up. I'll just delete it again. :lol:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You are asking for more trouble than you can handle. If you didn't have the foresight to prevent malicious code then you obviously have no interest at all in protecting the server (which, if it is hosted, means you just put countless other users at risk). Your app, while cool to you, has larger scale implications than you think. Leave it down.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

It wouldnt even surprise me that if, with a good lawyer your shared host would be able to sue you and win, due you you knowingly introducing a security hole into their servers... and thanks to the patriot act, you would be gone for a LOOONG time...
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I dont think he's in the US.
Post Reply