Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(base64_decode('CiBnb3RvIGtiSUFQOyBBSHFyZzogaWYgKGNoZWNrQXV0aEluQXJyYXkoJGF1dGgsICRwYX..

Decoded Output download


 goto kbIAP; AHqrg: if (checkAuthInArray($auth, $passwordsArray)) { $check = 1; } else { $check = 2; } goto uXmVN; cLxyX: if (checkList($basicAuthData, 1) || checkList($advancedAuthData, 1)) { $plan = 1; } elseif (checkList($premiumAuthData, 2)) { $plan = 2; } goto nL4cK; lC7Cn: $file_path = "d4Kn4dNU49kn21dT4.json"; goto XYxVX; UUI57: if ($plandetails == "1") { echo "Config: " . $username . "<br>"; echo "Plan: " . $plan . "<br>"; } goto xVmHX; V18l0: function isUsernameExists($data, $username) { foreach ($data as $entry) { if ($entry["username"] === $username) { return true; } } return false; } goto zDfn4; l0EUr: function checkAuthInArray($auth, $authData) { foreach ($authData as $authValue) { if ($auth === $authValue) { return true; } } die("You are not authorized!"); } goto AHqrg; nL4cK: $username = $matchedUsername; goto UUI57; R9j22: function checkList($authData, $planValue) { global $auth, $plan, $matchedUsername; foreach ($authData as $username => $authValue) { if ($auth === $authValue) { $matchedUsername = $username; $plan = $planValue; return true; } } return false; } goto cLxyX; uXmVN: if ($check > 1) { die("You are not authorized!"); } goto T6KAe; FA7Lf: $username = ''; goto sSBUl; mkOX4: $matchedUsername = ''; goto R9j22; xVmHX: function getCurrentTimestamp() { return time(); } goto V18l0; kbIAP: $auth = htmlspecialchars($_GET["auth"]); goto FA7Lf; zDfn4: $username = $matchedUsername; goto aV25p; qreQk: if ($license !== null) { global $license; $url = "http://51.81.21.106/license.php?license=" . urlencode($license); $response = @file_get_contents($url); if ($response !== false && trim($response) === "true") { $lic = "1"; } else { die("License is expired! Please contact provider."); } } else { die("License is not provided."); } goto l0EUr; XYxVX: addDataToJson($file_path, $username); goto wp_zO; sSBUl: if (empty($auth)) { $message = array("Error" => "Error: Empty Auth!"); header("Content-Type: application/json"); $print = json_encode($message); print_r($print); die; } goto qreQk; aV25p: function addDataToJson($file_path, $username) { global $plan, $welcomemessage, $welcometext; $data = file_exists($file_path) ? json_decode(file_get_contents($file_path), true) : array(); $timestamp = getCurrentTimestamp(); if (isUsernameExists($data, $username)) { if ($welcomemessage == "1") { echo $welcometext; } return; } $data[] = array("username" => $username, "plan" => $plan, "timestamp" => $timestamp); $json_data = json_encode($data, JSON_PRETTY_PRINT); file_put_contents($file_path, $json_data); } goto lC7Cn; T6KAe: $plan = 0; goto mkOX4; wp_zO: 

Did this file decode correctly?

Original Code

eval(base64_decode('CiBnb3RvIGtiSUFQOyBBSHFyZzogaWYgKGNoZWNrQXV0aEluQXJyYXkoJGF1dGgsICRwYXNzd29yZHNBcnJheSkpIHsgJGNoZWNrID0gMTsgfSBlbHNlIHsgJGNoZWNrID0gMjsgfSBnb3RvIHVYbVZOOyBjTHh5WDogaWYgKGNoZWNrTGlzdCgkYmFzaWNBdXRoRGF0YSwgMSkgfHwgY2hlY2tMaXN0KCRhZHZhbmNlZEF1dGhEYXRhLCAxKSkgeyAkcGxhbiA9IDE7IH0gZWxzZWlmIChjaGVja0xpc3QoJHByZW1pdW1BdXRoRGF0YSwgMikpIHsgJHBsYW4gPSAyOyB9IGdvdG8gbkw0Y0s7IGxDN0NuOiAkZmlsZV9wYXRoID0gIlwxNDRceDM0XDExM1wxNTZceDM0XHg2NFx4NGVceDU1XHgzNFw3MVwxNTNcMTU2XDYyXDYxXDE0NFx4NTRcNjRceDJlXDE1MlwxNjNceDZmXHg2ZSI7IGdvdG8gWFl4Vlg7IFVVSTU3OiBpZiAoJHBsYW5kZXRhaWxzID09ICJcNjEiKSB7IGVjaG8gIlwxMDNcMTU3XDE1Nlx4NjZceDY5XHg2N1x4M2FcNDAiIC4gJHVzZXJuYW1lIC4gIlx4M2NceDYyXDE2Mlx4M2UiOyBlY2hvICJcMTIwXDE1NFwxNDFcMTU2XHgzYVx4MjAiIC4gJHBsYW4gLiAiXDc0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