Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php goto mzbAp; xdIPz: $encoded = wordwrap($encoded, 80, "\xa", true); goto Gf5qq; ..
Decoded Output download
<?php
goto mzbAp;
xdIPz:
$encoded = wordwrap($encoded, 80, "\xa", true);
goto Gf5qq;
onlyV:
$license_file = $dir . "/modules/servers/cpanelExtended/license.php";
goto QrZ31;
XYU86:
if ($key != $sellKey) {
die("Invalid "license.php" file!");
}
goto eLRLU;
eLRLU:
function getWhmcsDomain()
{
if (!empty($_SERVER["SERVER_NAME"])) {
return $_SERVER["SERVER_NAME"];
}
}
goto XohCe;
HbjGF:
$license["checkdate"] = date("Ymd");
goto rdA53;
vAP4t:
$keyName = $modleName . "_licensekey";
goto H84tc;
H84tc:
$dir = __DIR__;
goto Xt3V6;
qcIu0:
$encoded = strrev($encoded);
goto TeZoV;
xFeYj:
$license["status"] = "Active";
goto iIetY;
Xt3V6:
$sellKey = "ModulesGarden_CPanelEX_54M02934WH301844E_RicRey";
goto onlyV;
rdA53:
$license["checktoken"] = $checkToken;
goto xFeYj;
yoDCY:
$key_data = WHMCS\Database\Capsule::table("tblconfiguration")->where("setting", "cpanel_extended_localkey")->first();
goto Z7Bxs;
smT2t:
$license = array("licensekey" => $key, "validdomain" => getWhmcsDomain(), "validip" => getIp(), "validdirectory" => $dir . "/modules/servers/cpanelExtended," . $dir . "/modules/addons," . $dir . "/modules/addons/CpanelExtended," . $dir . "/modules/servers/cpanelExtended," . $dir . "/modules/servers," . $dir . "," . $dir . "/modules");
goto kmOwu;
Kpqyj:
$secret = "659c08a59bbb484f3b40591";
goto vAP4t;
mzbAp:
include_once "init.php";
goto OGofQ;
XohCe:
function getIp()
{
return isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : $_SERVER["LOCAL_ADDR"];
}
goto smT2t;
Z7Bxs:
if (!$key_data) {
WHMCS\Database\Capsule::table("tblconfiguration")->insert(array("setting" => "cpanel_extended_localkey", "value" => ''));
}
goto U4sYx;
kmOwu:
$checkToken = time() . md5(rand(1000000000, 0) . $key);
goto HbjGF;
OGofQ:
$modleName = "cpanel_extended";
goto Kpqyj;
TeZoV:
$encoded = $encoded . md5($encoded . $secret);
goto xdIPz;
iIetY:
$encoded = serialize($license);
goto LRMbo;
FLeEs:
preg_match("/cpanel_extended_licensekey\s?=\s?"([A-Za-z0-9_]+)"/", $content, $matches);
goto yoDCY;
a5UVC:
$encoded = md5($license["checkdate"] . $secret) . $encoded;
goto qcIu0;
U4sYx:
$key = $matches[1];
goto XYU86;
LRMbo:
$encoded = base64_encode($encoded);
goto a5UVC;
paeye:
if (file_exists($license_file)) {
$content = file_get_contents($license_file);
} else {
echo "Please Upload "license.php" File Inside: " . $dir . "/modules/servers/cpanelExtended/";
}
goto FLeEs;
QrZ31:
$content = '';
goto paeye;
Gf5qq:
try {
WHMCS\Database\Capsule::table("tblconfiguration")->where("setting", "cpanel_extended_localkey")->update(array("value" => $encoded));
echo "Done!";
} catch (\Throwable $e) {
echo "There is an issue, contact 'Lalbilla' on Babiato.co.";
}
?>
Did this file decode correctly?
Original Code
<?php
goto mzbAp;
xdIPz:
$encoded = wordwrap($encoded, 80, "\xa", true);
goto Gf5qq;
onlyV:
$license_file = $dir . "\x2f\x6d\x6f\x64\165\154\145\163\x2f\x73\x65\162\x76\145\162\163\x2f\143\x70\141\156\x65\154\x45\x78\x74\145\156\144\145\x64\57\154\x69\143\145\x6e\x73\145\x2e\x70\x68\x70";
goto QrZ31;
XYU86:
if ($key != $sellKey) {
die("\x49\x6e\166\x61\x6c\151\x64\40\42\154\x69\143\145\x6e\x73\x65\56\x70\x68\x70\42\x20\x66\151\154\145\x21");
}
goto eLRLU;
eLRLU:
function getWhmcsDomain()
{
if (!empty($_SERVER["\x53\x45\122\x56\x45\x52\137\116\101\x4d\105"])) {
return $_SERVER["\123\105\x52\126\105\122\137\116\x41\115\105"];
}
}
goto XohCe;
HbjGF:
$license["\x63\150\x65\x63\x6b\x64\141\164\145"] = date("\x59\155\x64");
goto rdA53;
vAP4t:
$keyName = $modleName . "\x5f\154\x69\x63\x65\156\x73\145\x6b\x65\x79";
goto H84tc;
H84tc:
$dir = __DIR__;
goto Xt3V6;
qcIu0:
$encoded = strrev($encoded);
goto TeZoV;
xFeYj:
$license["\163\164\141\x74\165\x73"] = "\101\143\164\x69\166\145";
goto iIetY;
Xt3V6:
$sellKey = "\x4d\157\144\x75\x6c\145\x73\107\x61\162\x64\145\x6e\x5f\x43\x50\x61\x6e\x65\154\105\130\137\65\64\x4d\x30\x32\x39\63\64\x57\x48\x33\60\x31\70\x34\64\105\137\122\151\143\x52\145\x79";
goto onlyV;
rdA53:
$license["\143\x68\145\x63\x6b\x74\x6f\x6b\145\x6e"] = $checkToken;
goto xFeYj;
yoDCY:
$key_data = WHMCS\Database\Capsule::table("\164\142\x6c\143\157\156\146\151\x67\165\x72\141\164\x69\157\156")->where("\163\145\x74\164\x69\156\147", "\143\x70\141\x6e\x65\x6c\137\x65\170\164\x65\x6e\x64\145\x64\137\154\157\143\x61\x6c\153\145\x79")->first();
goto Z7Bxs;
smT2t:
$license = array("\154\151\x63\x65\x6e\x73\x65\x6b\145\x79" => $key, "\166\x61\x6c\151\x64\x64\157\x6d\x61\x69\156" => getWhmcsDomain(), "\166\x61\154\151\x64\151\x70" => getIp(), "\x76\141\x6c\x69\144\144\x69\162\x65\143\164\x6f\x72\171" => $dir . "\57\x6d\x6f\x64\x75\x6c\x65\163\57\163\145\x72\166\145\162\x73\57\x63\x70\x61\156\145\154\x45\x78\x74\x65\x6e\x64\x65\x64\x2c" . $dir . "\x2f\x6d\157\144\x75\154\145\163\57\141\144\x64\157\156\x73\54" . $dir . "\57\x6d\x6f\x64\x75\x6c\x65\x73\57\x61\144\144\x6f\156\163\x2f\x43\x70\x61\x6e\145\x6c\x45\x78\164\x65\156\144\145\144\54" . $dir . "\x2f\155\157\144\x75\x6c\145\x73\x2f\163\x65\x72\166\145\162\163\57\x63\160\141\156\x65\x6c\105\x78\164\x65\156\144\x65\x64\54" . $dir . "\57\155\x6f\x64\x75\x6c\145\x73\57\163\145\162\x76\145\x72\163\x2c" . $dir . "\54" . $dir . "\57\x6d\x6f\x64\x75\154\145\163");
goto kmOwu;
Kpqyj:
$secret = "\66\x35\x39\143\x30\x38\x61\65\x39\142\142\142\x34\x38\x34\x66\x33\142\x34\x30\65\x39\61";
goto vAP4t;
mzbAp:
include_once "\151\156\151\x74\56\160\150\x70";
goto OGofQ;
XohCe:
function getIp()
{
return isset($_SERVER["\x53\x45\122\126\x45\x52\x5f\x41\104\104\x52"]) ? $_SERVER["\123\x45\122\126\x45\122\x5f\x41\104\104\122"] : $_SERVER["\x4c\117\103\x41\114\x5f\x41\x44\104\x52"];
}
goto smT2t;
Z7Bxs:
if (!$key_data) {
WHMCS\Database\Capsule::table("\164\142\154\x63\157\156\x66\x69\147\x75\162\141\164\151\x6f\x6e")->insert(array("\x73\145\164\164\x69\156\x67" => "\143\160\x61\156\145\x6c\x5f\x65\x78\x74\x65\156\x64\145\x64\137\154\x6f\x63\x61\154\x6b\145\x79", "\x76\x61\x6c\165\x65" => ''));
}
goto U4sYx;
kmOwu:
$checkToken = time() . md5(rand(1000000000, 0) . $key);
goto HbjGF;
OGofQ:
$modleName = "\x63\160\141\156\145\x6c\137\x65\170\x74\145\156\x64\145\x64";
goto Kpqyj;
TeZoV:
$encoded = $encoded . md5($encoded . $secret);
goto xdIPz;
iIetY:
$encoded = serialize($license);
goto LRMbo;
FLeEs:
preg_match("\57\x63\x70\x61\156\x65\154\137\x65\x78\x74\x65\x6e\144\x65\144\x5f\154\151\x63\x65\x6e\163\145\x6b\x65\x79\134\x73\77\x3d\134\x73\x3f\42\x28\133\x41\55\132\141\x2d\172\x30\55\71\137\x5d\x2b\x29\x22\x2f", $content, $matches);
goto yoDCY;
a5UVC:
$encoded = md5($license["\x63\150\145\143\x6b\144\x61\164\x65"] . $secret) . $encoded;
goto qcIu0;
U4sYx:
$key = $matches[1];
goto XYU86;
LRMbo:
$encoded = base64_encode($encoded);
goto a5UVC;
paeye:
if (file_exists($license_file)) {
$content = file_get_contents($license_file);
} else {
echo "\x50\154\x65\141\x73\145\x20\x55\160\154\x6f\x61\x64\40\x22\x6c\x69\143\x65\x6e\163\x65\56\160\150\160\x22\40\106\x69\154\x65\40\111\x6e\163\x69\x64\x65\x3a\x20" . $dir . "\57\155\157\144\x75\154\x65\x73\x2f\163\x65\162\166\x65\x72\163\57\143\160\141\x6e\145\x6c\x45\x78\164\x65\x6e\x64\145\x64\x2f";
}
goto FLeEs;
QrZ31:
$content = '';
goto paeye;
Gf5qq:
try {
WHMCS\Database\Capsule::table("\x74\142\154\143\157\156\x66\x69\147\x75\162\x61\x74\151\x6f\x6e")->where("\x73\145\x74\164\151\x6e\147", "\143\x70\x61\x6e\x65\154\137\145\170\164\x65\156\144\x65\144\137\x6c\x6f\x63\141\154\x6b\x65\x79")->update(array("\166\141\154\x75\145" => $encoded));
echo "\104\157\x6e\x65\41";
} catch (\Throwable $e) {
echo "\124\150\145\x72\x65\x20\x69\x73\x20\x61\x6e\x20\151\163\x73\165\145\x2c\40\143\157\156\x74\141\143\164\x20\x27\114\x61\154\x62\151\x6c\x6c\x61\47\x20\157\x6e\x20\x42\x61\x62\x69\x61\164\157\56\143\157\x2e";
}
Function Calls
None |
Stats
MD5 | 315d8cafed1dd324c8386dd9b66494db |
Eval Count | 0 |
Decode Time | 40 ms |