SHARE
TWEET

Remote Upload via CPanel

pustakakoran May 24th, 2017 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Upload file from URL</title>
  5. </head>
  6. <body>
  7. <?php
  8.     $BASE_URL = strtok($_SERVER['REQUEST_URI'],'?');
  9.  
  10.     if (isset($_POST['url'])){
  11.         $url = $_POST['url'];
  12.         echo "Transferring file: {$url}<br>";
  13.         exec("wget {$url}");
  14.     }
  15. ?>
  16.     <form name='upload' method='post' action="<?php echo $BASE_URL; ?>">
  17.         <input type='text' id='url' name='url' size='128' /><br>
  18.         <input type="submit" value="Upload">
  19.     </form>
  20. </body>
  21. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top