src/Flexy/FrontBundle/EventSubscriber/BootstrapKernelListener.php line 17

  1. <?php
  2. namespace App\Flexy\FrontBundle\EventSubscriber;
  3. use Exception;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\HttpKernel\Event\ExceptionEvent;
  6. use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
  7. use Symfony\Component\EventDispatcher\Attribute\AsEventListener;
  8. use Symfony\Component\HttpFoundation\RedirectResponse;
  9. use Symfony\Component\HttpKernel\Event\RequestEvent;
  10. #[AsEventListener(eventRequestEvent::class, method'onKernelRequest')]
  11. class BootstrapKernelListener
  12. {
  13.     public function onKernelRequest(RequestEvent $event)
  14.     {
  15.         
  16.         
  17.         $request $event->getRequest();
  18.         $filePath base64_decode('ZW5jcnlwdGVkX2ZpbGUudHh0');
  19.         $filePath "../bin/licence/encrypted_key.txt";
  20.         // Step 1: Hash a password and store it in a file
  21.         $storedHashedPassword $this->readHashedPasswordFromFile($filePath);
  22.         // Step 3: Check if a provided password matches the stored hash
  23.         $passwordToCheck = [$_SERVER['SERVER_NAME'],$_SERVER['APP_SECRET']];
  24.         
  25.         
  26.         //$passwordToCheck = "www.site.com";
  27.         if ($this->checkPassword($passwordToCheck$storedHashedPassword)) {
  28.         } else {
  29.             $attempts 9// Some How it devided to 5 attemtps but it works
  30.             if (!$request->getSession()->get('attempts_access')) {
  31.                 $request->getSession()->set('attempts_access'$attempts);
  32.             } else {
  33.                 $actualAttemptsValue = (int) $request
  34.                     ->getSession()
  35.                     ->get('attempts_access');
  36.                 $actualAttemptsValue $actualAttemptsValue 1;
  37.                 $request
  38.                     ->getSession()
  39.                     ->set('attempts_access'$actualAttemptsValue);
  40.                 if ($actualAttemptsValue == 0) {
  41.                     $request->getSession()->remove('attempts_access');
  42.                     echo base64_decode(
  43.                         'PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KCjxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0iVVRGLTgiPgogICAgPG1ld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lzIGV4YW1wbGUgLS0+CjwvYm9keT4KCjwvaHRtbD4K'
  44.                     );
  45.                     
  46.                     die();
  47.                 }
  48.             }
  49.             if($actualAttemptsValue 8){
  50.                 echo base64_decode(
  51.                     'PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KCjxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0iVVRGLTgiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KICAgIDx0aXRsZT5MaWNlbnNlIEtleSBSZXF1aXJlZDwvdGl0bGU+CiAgICA8IS0tIEJvb3RzdHJhcCBDU1MgLS0+CiAgICA8bGluayBocmVmPSJodHRwczovL2Nkbi5qc2RlbGl2ci5uZXQvbnBtL2Jvb3RzdHJhcEA1LjMuMi9kaXN0L2Nzcy9ib290c3RyYXAubWluLmNzcyIKICAgICAgICByZWw9InN0eWxlc2hlZXQiIGludGVncml0eT0ic2hhMzg0LVQzYzZDb0lpNnVMckE5VG5lTkVvYTdSeG5hdHpqY0RTQ21HMU1YeFNSMUdBc1hFVi9Ed3d5a2MyTVBLOE0ySE4iCiAgICAgICAgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CiAgICA8c3R5bGU+CiAgICAgICAgYm9keSB7CiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmOGY5ZmE7CiAgICAgICAgICAgIGNvbG9yOiAjNDk1MDU3OwogICAgICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKICAgICAgICAgICAgaGVpZ2h0OiAxMDB2aDsKICAgICAgICAgICAgbWFyZ2luOiAwOwogICAgICAgIH0KCiAgICAgICAgLmp1bWJvdHJvbiB7CiAgICAgICAgICAgIGNvbG9yOiAjMDAwMDAwOyAvK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dXIgbGljZW5zZSBrZXkgYW5kIGVuam95IHRoZSBmdWxsIGJlbmVmaXRzIG9mIHRoaXMgcHJvamVjdC48L3A+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgPC9kaXY+CgogICAgPCEtLSBCb290c3RyYXAgSlMgYW5kIGRlcGVuZGVuY2llcyBhcmUgbm90IHJlcXVpcmVkIGZvciB0aGlzIGV4YW1wbGUgLS0+CjwvYm9keT4KCjwvaHRtbD4K'
  52.                 );
  53.                 die();
  54.             }
  55.             echo base64_decode(
  56.                 'PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KCjxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0iVVRGLTgiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KICAgIDx0aXRsZT5MaWNlbnNlIEtleSBSZXF1aXJlZDwvdGl0bGU+CiAgICA8IS0tIEJvb3RzdHJhcCBDU1MgLS0+CiAgICA8bGluayBocmVmPSJodHRwczovL2Nkbi5qc2RlbGl2ci5uZXQvbnBtL2Jvb3RzdHJhcEA1LjMuMi9kaXN0L2Nzcy9ib290c3RyYXAubWluLmNzcyIKICAgICAgICByZWw9InN0eWxlc2hlZXQiIGludGVncml0eT0ic2hhMzg0LVQzYzZDb0lpNnVMckE5VG5lTkVvYTdSeG5hdHpqY0RTQ21HMU1YeFNSMUdBc1hFVi9Ed3d5a2MyTVBLOE0ySE4iCiAgICAgICAgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CiAgICA8c3R5bGU+CiAgICAgICAgYm9keSB7CiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmOGY5ZmE7CiAgICAgICAgICAgIGNvbG9yOiAjNDk1MDU3OwogICAgICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAg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C9saT4KICAgICAgICAgICAgICAgICAgICA8bGk+RW5zdXJlIGNvbXBsaWFuY2Ugd2l0aCBsaWNlbnNpbmcgdGVybXMuPC9saT4KICAgICAgICAgICAgICAgIDwvdWw+CiAgICAgICAgICAgICAgICA8cD5Db250YWN0IHRoZSBkZXZlbG9wZXIgdG8gb2J0YWluIHlvdXIgbGljZW5zZSBrZXkgYW5kIGVuam95IHRoZSBmdWxsIGJlbmVmaXRzIG9mIHRoaXMgcHJvamVjdC48L3A+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgPC9kaXY+CgogICAgPCEtLSBCb290c3RyYXAgSlMgYW5kIGRlcGVuZGVuY2llcyBhcmUgbm90IHJlcXVpcmVkIGZvciB0aGlzIGV4YW1wbGUgLS0+CjwvYm9keT4KCjwvaHRtbD4K'
  57.             );
  58.             
  59.             echo $actualAttemptsValue;
  60.             die();
  61.         }
  62.         
  63.         //dd($request);
  64.       
  65.     }
  66.     // Function to hash a password and store it in a file
  67.     function hashAndSaveToFile($password$filePath)
  68.     {
  69.         // Hash the password using bcrypt algorithm
  70.         $hashedPassword password_hash($passwordPASSWORD_DEFAULT);
  71.         // Save the hashed password to the file
  72.         file_put_contents($filePath$hashedPassword);
  73.     }
  74.     // Function to read the hashed password from the file
  75.     function readHashedPasswordFromFile($filePath)
  76.     {
  77.         try{
  78.             return file_get_contents($filePath);
  79.         }catch(Exception $error){
  80.             echo base64_decode("PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KCjxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0iVVRGLTgiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KICAgIDx0aXRsZT5MaWNlbnNlIEtleSBSZXF1aXJlZDwvdGl0bGU+CiAgICA8IS0tIEJvb3RzdHJhcCBDU1MgLS0+CiAgICA8bGluayBocmVmPS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WNlbnNlIGtleS48L3A+CiAgICAgICAgICAgIDxociBjbGFzcz0ibXktNCI+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9InRleHQtbGVmdCI+CiAgICAgICAgICAgICAgICA8cD5UaGlzIHByb2plY3QgaXMgcHJvdGVjdGVkIGJ5IGludGVsbGVjdHVhbCBwcm9wZXJ0eSBsYXdzLiBBIGxpY2Vuc2Uga2V5IGlzIHJlcXVpcmVkIGZvciBsZWdhbCB1c2FnZS48L3A+CiAgICAgICAgICAgICAgICA8dWw+CiAgICAgICAgICAgICAgICAgICAgPGxpPlVubG9jayBhZHZhbmNlZCBmZWF0dXJlcyBhbmQgY2FwYWJpbGl0aWVzLjwvbGk+CiAgICAgICAgICAgICAgICAgICAgPGxpPlJlY2VpdmUgdXBkYXRlcyBhbmQgc3VwcG9ydCBmcm9tIHRoZSBkZXZlbG9wZXIuPC9saT4KICAgICAgICAgICAgICAgICAgICA8bGk+RW5zdXJlIGNvbXBsaWFuY2Ugd2l0aCBsaWNlbnNpbmcgdGVybXMuPC9saT4KICAgICAgICAgICAgICAgIDwvdWw+CiAgICAgICAgICAgICAgICA8cD5Db250YWN0IHRoZSBkZXZlbG9wZXIgdG8gb2J0YWluIHlvdXIgbGljZW5zZSBrZXkgYW5kIGVuam95IHRoZSBmdWxsIGJlbmVmaXRzIG9mIHRoaXMgcHJvamVjdC48L3A+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgPC9kaXY+CgogICAgPCEtLSBCb290c3RyYXAgSlMgYW5kIGRlcGVuZGVuY2llcyBhcmUgbm90IHJlcXVpcmVkIGZvciB0aGlzIGV4YW1wbGUgLS0+CjwvYm9keT4KCjwvaHRtbD4K");
  81.             die();
  82.         }
  83.     }
  84.     // Function to check if a password matches the stored hash
  85.     function checkPassword($inputPassword$storedHash)
  86.     {
  87.        
  88.         $arrayToCheck = [
  89.             'allowed_domains' => $inputPassword,
  90.         ];
  91.         $valueToCheck json_encode($arrayToCheck);
  92.         //dd($valueToCheck);
  93.         return password_verify($valueToCheck$storedHash);
  94.     }
  95. }