Online PHP and Javascript Decoder decode hidden script to uncover its real functionality



 goto d3e77; d5e79: Cfb31: goto bd868; fc325: echo "var keys = $("#key").val();"; goto c69df; D4ee5: echo "Make a new admin password"; goto fe27f; C3f59: echo "Create"; goto Fbdfd; b2965: if (!(empty($config["password"]) || empty($config["key"]))) { goto Cfb31; } goto cd24f; Dc896: include "../config.php"; goto f80ad; c3edc: $C6fa0->create_password($_POST["password"], $_POST["key"]); goto A6954; Ddc58: Acef5: goto F6c57; Ca21c: echo "              </div>
\xa              </br>
\xa              
\xa\xd
              <div class="d-grid gapj">
\xa                <button type="submit" class="btn btn-primary">"; goto Cb40c; b77a1: goto E1cd2; goto Eb0fa; a12c6: if (!(empty($config["password"]) || empty($config["key"]))) { goto e6cf9; } goto fc325; Ab753: if (!(empty($config["password"]) || empty($config["key"]))) { goto E3dd6; } goto dae50; b0a85: $C6fa0->login($_POST["password"]); goto C456f; cd0ca: $B6e9f = new User(); goto d91e2; B2c61: if (empty($config["password"]) || empty($config["key"])) { goto d6ab9; } goto Ee815; cd24f: echo ", key: keys, type: "create""; goto d5e79; Eb0fa: d6ab9: goto D4ee5; c69df: e6cf9: goto fa1b9; B1287: echo "Login"; goto B36e8; Ee815: echo "Enter your password"; goto b77a1; F6c57: ba2aa: goto cd0ca; E3910: f323a: goto dbfba; f870f: if (!isset($_POST["password"])) { goto f323a; } goto f13bf; C456f: die; goto E3910; b1f52: echo "</button>\xd
                
              </div>\xd

            </div>\xd\xa            \xd

\xa          </form>
\xa          \xd
\xd\xa        </div>\xd\xa\xd
      </div>\xd
      \xd
\xd
    </div>
    
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>\xd
    <script>\xd\xa        $(document).ready(function() {\xd\xa        $("#loginForm").submit(function(event) {\xd
            event.preventDefault(); // Prevent the form from submitting normally
\xa\xd
            var password = $("#password").val();\xd\xa            "; goto a12c6; B36e8: bc69a: goto b1f52; Fbdfd: goto bc69a; goto e6da6; A6954: die; goto Ddc58; c6ff3: echo "</p>\xd
                <span id="span"></span>
\xa                <label class="form-label" for="password">"; goto B2c61; b60cf: E3dd6: goto Ca21c; B2c7a: echo base64_encode($B6e9f->getServerIp()); goto c6ff3; c9255: Bbd88: goto B7d8e; d91e2: echo "<html lang="en"><head>
\xa    <meta charset="utf-8">\xd
    <meta name="viewport" content="width=device-width, initial-scale=1">\xd\xa    <title>Admin Panel</title>\xd\xa
\xa    \xd\xa    <link rel="shortcut icon" href="assets/images/favicon.svg">

    \xd\xa    <link rel="stylesheet" href="assets/fonts/bootstrap/bootstrap-icons.min.css">
    <link rel="stylesheet" href="assets/css/main.min.css">\xd

\xa  </head>\xd\xa\xd\xa  <body>
\xa
    
    <div class="page-wrapper">\xd\xa
      \xd
      <div class="auth-container">\xd

        <div class="d-flex justify-content-center">
\xd\xa          
\xa          <form id="loginForm" action="login-action.php">\xd\xa
\xa            
            <a href="index.html" class="auth-logo mt-5 mb-3">
              
\xa            </a>
            \xd
\xd
            
            <div class="auth-box">\xd
              \xd

              <div class="mb-2">\xd\xa                <p>Register Code : "; goto B2c7a; fe27f: E1cd2: goto a1568; dbfba: goto ba2aa; goto c9255; f80ad: if (isset($_POST["password"]) && isset($_POST["key"]) && isset($_POST["type"])) { goto Bbd88; } goto f870f; fa1b9: echo "\xd
            $.ajax({\xd
                type: "POST",
\xa                url: "login", // The file where your PHP login logic is located
                data: { password: password"; goto b2965; d3e77: include "class.php"; goto Dc896; Cb40c: if (!empty($config["password"])) { goto caede; } goto C3f59; Bbacc: $C6fa0 = new User(); goto c3edc; a1568: echo "</label><br/><br/>\xd\xa                <div class="input-group">\xd\xa                  <span class="input-group-text">\xd\xa                    <i class="bi bi-lock"></i>\xd
                  </span>\xd\xa                  <input type="password" id="password" class="form-control" placeholder="Enter password">\xd
                </div>\xd
                "; goto Ab753; e6da6: caede: goto B1287; f13bf: $C6fa0 = new User(); goto b0a85; B7d8e: if (!(empty($config["password"]) || empty($config["key"]))) { goto Acef5; } goto Bbacc; dae50: echo "</br>\xd\xa                <label class="form-label" for="key">Api Key</label><br/><br/>
\xa                <div class="input-group">\xd
                  <span class="input-group-text">
                    <i class="bi bi-lock"></i>
                  </span>
\xa                  <input type="text" id="key" class="form-control" placeholder="Enter API key">\xd
                </div>\xd
                "; goto b60cf; bd868: echo "},\xd
                success: function(response) {
                  if (typeof response === "string") {
\xa                      response = JSON.parse(response);\xd
                  }\xd

                  if (response.status === 'success') {
\xa                    window.location.href = "index";\xd
                  } else {\xd\xa                    $("#span").html('<div class="alert alert-danger alert-dismissible fade show" role="alert">' + response.message + '<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>');
\xa                  }\xd
              },\xd
              error: function() {\xd\xa                  $("#message").html('<span style="color: red;">An error occurred. Please try again.</span>');
              }
\xa            });
        });
\xa    });\xd
    </script>\xd
  \xd


\xa
\xa</body></html>";



© 2023 Quttera Ltd. All rights reserved.