Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <html>
  2. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  3. <script>
  4. var dir = "http://www.thesmokingtire.com/wp-content/uploads/";
  5. var fileextension = ".jpg";
  6. $.ajax({
  7.  
  8. //This will retrieve the contents of the folder if the folder is configured as 'browsable'
  9. url: dir,
  10. success: function (data) {
  11. //Lsit all png file names in the page
  12. $(data).find("a:contains(" + fileextension + ")").each(function () {
  13. var filename = this.href.replace(window.location.host, "").replace("http:///", "");
  14. $("body").append($("<img src=" + dir + filename + "></img>"));
  15. });
  16. }
  17. });
  18. </script>
  19. <body>
  20. </body>
  21. </html>
  22.  
  23. wget -r http://sample.url.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement