Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. You can do something like:
  2. # mkfifo url.list ; while sleep 1; do wget -i url.list; done
  3.  
  4. like that wget will indefinitely be waiting around to be fed with URLs and download them automatically as soon as they arrive
  5.  
  6. You can quickly test it's working by sending it download URLs from another terminal:
  7. # url='http://yourpornoranything.com/get.php?file=/xyz.part01.rar'
  8. # echo $url > url.list
  9.  
  10. OK now you need a way to feed it with URLs from a remote browser. Not a problem. Just install some minimal webserver + PHP and create 2 following files at your www directory :
  11.  
  12. index.html
  13. ~ ~ ~
  14. <html>
  15. <head>
  16. <title>My Download Tool</title>
  17. </head>
  18. <body>
  19. <form action="action.php" method="post">
  20. Please enter URL:<br>
  21. <input type="text" name="url"><br>
  22. <input type="submit" value="Submit">
  23. </form>
  24. </body>
  25. </html>
  26. ~ ~ ~
  27.  
  28. action.php
  29.  
  30. ~ ~ ~
  31. <?php
  32. $path = 'url.list';
  33. if (isset($_POST['url'])) {
  34. $fh = fopen($path,"a+");
  35. $string = $_POST['url'];
  36. fwrite($fh,$string); // Write information to the file
  37. fclose($fh); // Close the file
  38. }
  39. ?>
  40. ~ ~ ~
  41.  
  42. Then just open your VPS IP in a browser tab and fill the box with your desired download URL every time.
  43.  
  44. * this is just a quick example sent from smartphone not tested sorry if any stupid error but safe to try ;)
  45.  
  46. * once you got the idea, pipe (a special file) name 'url.list' should also be used at your www directory so full path should be used in variable, so edit accordingly
  47.  
  48. * you may find ways to automate it further (perhaps using AutoHotKey? )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement