zerobyte-id

[PHP CLI] Webshell MassChecker V.2

Oct 27th, 2018
638
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function copyright()
  3. {
  4.     /*
  5.     Zerobyte.id
  6.     Don't remove this copyright please !
  7.     */
  8.     system('clear');
  9.     echo "
  10.  _  __                               ___  _              _            
  11. | |/ / ___  _ _  __ _  _ _   __ _   / __|| |_   ___  __ | |__ ___  _ _
  12. | ' < / -_)| '_|/ _` || ' \ / _` | | (__ | ' \ / -_)/ _|| / // -_)| '_|
  13. |_|\_\\\___||_|  \__,_||_||_|\__, |  \___||_||_|\___|\__||_\_\\\___||_|  
  14.                             |___/      Zerobyte Webshell Mass Checker";
  15. }
  16. copyright();
  17. $green   = "\e[92m";
  18. $red     = "\e[91m";
  19. $keyword = array(
  20.     "Webshell",
  21.     "0Byte",
  22.     "IndoXploit",
  23.     "Shell",
  24.     "shell",
  25.     "wso"
  26. ); // Edit Here
  27. echo "\nEnter Your List : ";
  28. $url      = trim(fgets(STDIN));
  29. $kontorus = file_get_contents($url);
  30. $urls     = explode("\n", $kontorus);
  31. $i        = 1;
  32. foreach ($urls as $list) {
  33.     echo "[" . $i . " / " . count($urls) . "]";
  34.     $i++;
  35.     $shell = explode(PHP_EOL, $list);
  36.     foreach ($shell as $shellchk) {
  37.         $url  = trim($shellchk);
  38.         $keyx = '/' . implode('|', $keyword) . '/i';
  39.         $ch   = curl_init($url);
  40.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  41.         curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  42.         $shellcurl = curl_exec($ch);
  43.         $httpcode  = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  44.         curl_close($ch);
  45.         if ($httpcode == '200' OR preg_match("$keyx", $shellcurl)) {
  46.             echo $green . "[LIVE!] $url\n\033[0m";
  47.             $save = @fopen("live.txt", "a");
  48.             fwrite($save, $url . "\n");
  49.             fclose($save);
  50.         }else{
  51.             echo $red . "[DIE] $url\n\033[0m";
  52.             $save = @fopen("die.txt", "a");
  53.             fwrite($save, $url . "\n");
  54.             fclose($save);
  55.         }
  56.     }
  57. }
  58. ?>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×