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 ${"\x47L\x4f\x42\x41\x4c\x53"}["t\x75\x72t\x72\x67\x70y\x76b"] = "fl\x67"; ${"G\x4..
Decoded Output download
<?php
${"GLOBALS"}["turtrgpyvb"] = "flg";
${"GLOBALS"}["dwjmlbc"] = "prop";
${"GLOBALS"}["qmmiibhttegs"] = "cert";
${"GLOBALS"}["rbxsqsjry"] = "cert_path";
${"GLOBALS"}["fquedbm"] = "args";
${"GLOBALS"}["phibvlitvn"] = "data";
${"GLOBALS"}["jlguujjqfzt"] = "filename";
${"GLOBALS"}["ryimgphvlnwh"] = "fqdn";
class Cache
{
var $fqdn = false;
var $exists = false;
var $pending = false;
var $expire = false;
public function configure($fqdn = false)
{
$this->fqdn = ${${"GLOBALS"}["ryimgphvlnwh"]
};
${
${
"GLOBALS"
}
["jlguujjqfzt"]
} = SSLSTORE_LOCK . "/" . ${${"GLOBALS"}["ryimgphvlnwh"]
};
$rsdfqkznoq = "filename";
if (file_exists(${$rsdfqkznoq})) {
${"GLOBALS"}["vwpriyfk"] = "result";
$keddjplez = "line";
${${"GLOBALS"}["vwpriyfk"]
} = array();
${${"GLOBALS"}["phibvlitvn"]
} = file(
${${"GLOBALS"}["jlguujjqfzt"]
}
);
foreach (${${"GLOBALS"}["phibvlitvn"]
} as ${$keddjplez}) {
$pmembjrhm = "line";
${${"GLOBALS"}["fquedbm"]
} = explode(",", ${$pmembjrhm});
${"GLOBALS"}["ajuojxyxjk"] = "args";
if (${${"GLOBALS"}["fquedbm"]
}
[0] == "pending") {
$this->pending = (int)${${"GLOBALS"}["fquedbm"]
}
[1];
}
if (${${"GLOBALS"}["ajuojxyxjk"]
}
[0] == "expire") {
${"GLOBALS"}["lralyv"] = "args";
$this->expire = strlen(
${${"GLOBALS"}["lralyv"]
}
[1]
) == 10 ? ${${"GLOBALS"}["fquedbm"]
}
[1] : false;
}
}
$this->exists = true;
}
return $this->exists;
}
public function setPending($flg = false)
{
$opxrxv = "flg";
$this->pending = (int)${$opxrxv};
return $this->update();
}
public function setExpire($expire = false)
{
${"GLOBALS"}["mvjyfg"] = "expire";
$this->expire = substr(
${${"GLOBALS"}["mvjyfg"]
},
0,
10
);
return $this->update();
}
private function update()
{
$ekhrxdeyvc = "data";
$heqhvt = "data";
${$ekhrxdeyvc} = "pending," . $this->pending . "," . "
" . "expire," . $this->expire . "," . "
";
return Fhandle::createFile(SSLSTORE_LOCK . "/" . $this->fqdn, ${$heqhvt});
}
public function initialize($cert_path = false, $pending = false)
{
${"GLOBALS"}["uytonloir"] = "pending";
${"GLOBALS"}["jwyllye"] = "cert_path";
${${"GLOBALS"}["phibvlitvn"]
} = "pending," . (int)${${"GLOBALS"}["uytonloir"]
} . "," . "
" . "expire,," . "
";
if (${${"GLOBALS"}["rbxsqsjry"]
} != false && file_exists(
${${"GLOBALS"}["jwyllye"]
}
)) {
${${"GLOBALS"}["qmmiibhttegs"]
} = Openssl::pullCert(
${${"GLOBALS"}["rbxsqsjry"]
}
);
${"GLOBALS"}["xejydyaavyu"] = "pending";
${${"GLOBALS"}["dwjmlbc"]
} = Openssl::x509Parse(
${${"GLOBALS"}["qmmiibhttegs"]
}
);
if (${${"GLOBALS"}["dwjmlbc"]
} == false) {
${"GLOBALS"}["xqrkibl"] = "cert_path";
throw new Exception(
"(" . ${${"GLOBALS"}["xqrkibl"]
} . ")"
);
}
${${"GLOBALS"}["phibvlitvn"]
} = "pending," . (int)${${"GLOBALS"}["xejydyaavyu"]
} . "," . "
" . "expire," . ${${"GLOBALS"}["dwjmlbc"]
}
["Valid"]["To"] . "," . "
";
}
if (Fhandle::createFile(
SSLSTORE_LOCK . "/" . $this->fqdn,
${${"GLOBALS"}["phibvlitvn"]
}
)) {
return $this->configure($this->fqdn);
}
return false;
}
public function isExists()
{
return $this->exists;
}
public function isPending()
{
$nunkuthja = "flg";
${$nunkuthja} = (int)$this->pending;
if (${${"GLOBALS"}["turtrgpyvb"]
} > 0) {
return true;
}
return false;
}
public function getExpire()
{
return $this->expire;
}
}
?>
Did this file decode correctly?
Original Code
<?php
${"\x47L\x4f\x42\x41\x4c\x53"}["t\x75\x72t\x72\x67\x70y\x76b"] = "fl\x67";
${"G\x4c\x4f\x42\x41\x4c\x53"}["d\x77\x6am\x6cb\x63"] = "pr\x6fp";
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x6d\x6d\x69\x69\x62h\x74\x74\x65gs"] = "\x63\x65\x72\x74";
${"GL\x4fBA\x4c\x53"}["\x72\x62\x78\x73q\x73\x6a\x72\x79"] = "\x63er\x74_p\x61th";
${"\x47L\x4fB\x41\x4c\x53"}["\x66\x71\x75\x65db\x6d"] = "\x61r\x67s";
${"\x47\x4c\x4fB\x41L\x53"}["\x70\x68\x69\x62v\x6c\x69\x74\x76\x6e"] = "\x64\x61t\x61";
${"\x47\x4c\x4f\x42\x41L\x53"}["\x6al\x67\x75\x75\x6ajq\x66\x7a\x74"] = "filena\x6d\x65";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x79\x69\x6d\x67p\x68vln\x77\x68"] = "\x66q\x64\x6e";
class Cache
{
var $fqdn = false;
var $exists = false;
var $pending = false;
var $expire = false;
public function configure($fqdn = false)
{
$this->fqdn = ${${"\x47\x4c\x4fBA\x4cS"}["\x72\x79\x69\x6dgp\x68\x76\x6cnw\x68"]
};
${
${
"\x47L\x4f\x42ALS"
}
["\x6a\x6c\x67u\x75jjq\x66\x7a\x74"]
} = SSLSTORE_LOCK . "/" . ${${"\x47L\x4f\x42A\x4c\x53"}["r\x79\x69\x6dg\x70\x68v\x6cn\x77h"]
};
$rsdfqkznoq = "\x66i\x6ce\x6e\x61\x6d\x65";
if (file_exists(${$rsdfqkznoq})) {
${"\x47\x4c\x4f\x42\x41\x4cS"}["\x76wpr\x69\x79\x66k"] = "\x72esu\x6ct";
$keddjplez = "li\x6ee";
${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x77\x70r\x69yf\x6b"]
} = array();
${${"\x47\x4c\x4fB\x41\x4cS"}["\x70h\x69\x62\x76\x6ci\x74\x76\x6e"]
} = file(
${${"GL\x4f\x42A\x4c\x53"}["\x6a\x6c\x67uu\x6a\x6aq\x66\x7a\x74"]
}
);
foreach (${${"G\x4cOB\x41L\x53"}["p\x68\x69\x62\x76\x6c\x69\x74v\x6e"]
} as ${$keddjplez}) {
$pmembjrhm = "\x6cin\x65";
${${"\x47L\x4f\x42A\x4c\x53"}["f\x71\x75\x65\x64\x62\x6d"]
} = explode(",", ${$pmembjrhm});
${"GL\x4f\x42\x41\x4c\x53"}["a\x6auo\x6a\x78\x79x\x6a\x6b"] = "\x61r\x67s";
if (${${"GL\x4f\x42\x41LS"}["\x66qu\x65\x64\x62\x6d"]
}
[0] == "\x70\x65\x6edi\x6e\x67") {
$this->pending = (int)${${"GLOBALS"}["fque\x64\x62m"]
}
[1];
}
if (${${"G\x4cO\x42\x41\x4c\x53"}["ajuo\x6a\x78\x79\x78\x6a\x6b"]
}
[0] == "\x65xpi\x72\x65") {
${"G\x4c\x4fB\x41\x4c\x53"}["\x6c\x72\x61\x6c\x79\x76"] = "a\x72g\x73";
$this->expire = strlen(
${${"\x47L\x4fB\x41\x4c\x53"}["\x6c\x72a\x6c\x79\x76"]
}
[1]
) == 10 ? ${${"\x47L\x4fBALS"}["\x66\x71\x75\x65\x64\x62\x6d"]
}
[1] : false;
}
}
$this->exists = true;
}
return $this->exists;
}
public function setPending($flg = false)
{
$opxrxv = "\x66l\x67";
$this->pending = (int)${$opxrxv};
return $this->update();
}
public function setExpire($expire = false)
{
${"G\x4cOB\x41L\x53"}["m\x76\x6a\x79\x66\x67"] = "\x65\x78p\x69\x72\x65";
$this->expire = substr(
${${"G\x4c\x4fB\x41\x4cS"}["\x6dv\x6a\x79f\x67"]
},
0,
10
);
return $this->update();
}
private function update()
{
$ekhrxdeyvc = "data";
$heqhvt = "dat\x61";
${$ekhrxdeyvc} = "pendi\x6e\x67," . $this->pending . "," . "\n" . "\x65xp\x69re," . $this->expire . "," . "\n";
return Fhandle::createFile(SSLSTORE_LOCK . "/" . $this->fqdn, ${$heqhvt});
}
public function initialize($cert_path = false, $pending = false)
{
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75\x79\x74\x6fn\x6c\x6f\x69r"] = "\x70\x65n\x64ing";
${"\x47LOB\x41\x4c\x53"}["j\x77\x79\x6c\x6c\x79\x65"] = "\x63\x65\x72\x74\x5f\x70\x61t\x68";
${${"\x47\x4cO\x42\x41\x4c\x53"}["p\x68ib\x76\x6c\x69t\x76\x6e"]
} = "\x70e\x6e\x64i\x6eg," . (int)${${"GL\x4fBA\x4c\x53"}["\x75\x79t\x6f\x6e\x6co\x69\x72"]
} . "," . "\n" . "\x65\x78\x70\x69r\x65,," . "\n";
if (${${"\x47\x4c\x4f\x42A\x4cS"}["\x72\x62\x78\x73\x71\x73j\x72\x79"]
} != false && file_exists(
${${"\x47\x4cOB\x41LS"}["\x6a\x77\x79\x6cly\x65"]
}
)) {
${${"G\x4c\x4f\x42A\x4c\x53"}["\x71\x6dm\x69i\x62h\x74\x74egs"]
} = Openssl::pullCert(
${${"\x47\x4c\x4fB\x41L\x53"}["\x72b\x78s\x71\x73\x6a\x72\x79"]
}
);
${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x65\x6a\x79\x64\x79\x61\x61\x76\x79u"] = "\x70\x65\x6e\x64\x69\x6eg";
${${"\x47\x4c\x4fB\x41\x4c\x53"}["d\x77\x6a\x6d\x6c\x62\x63"]
} = Openssl::x509Parse(
${${"\x47\x4cOB\x41\x4c\x53"}["\x71m\x6d\x69\x69\x62htt\x65gs"]
}
);
if (${${"\x47\x4c\x4fBA\x4c\x53"}["\x64\x77j\x6d\x6c\x62\x63"]
} == false) {
${"\x47LO\x42\x41L\x53"}["\x78qr\x6b\x69\x62\x6c"] = "\x63e\x72t\x5f\x70a\x74h";
throw new Exception(
"(" . ${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x71\x72\x6bi\x62l"]
} . ")"
);
}
${${"\x47\x4cO\x42AL\x53"}["\x70\x68\x69\x62\x76l\x69\x74\x76\x6e"]
} = "\x70en\x64ing," . (int)${${"\x47L\x4fBA\x4cS"}["\x78e\x6ay\x64\x79a\x61v\x79\x75"]
} . "," . "\n" . "\x65xpi\x72\x65," . ${${"\x47\x4c\x4f\x42\x41LS"}["\x64w\x6am\x6c\x62\x63"]
}
["\x56a\x6ci\x64"]["\x54o"] . "," . "\n";
}
if (Fhandle::createFile(
SSLSTORE_LOCK . "/" . $this->fqdn,
${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70h\x69\x62\x76\x6ci\x74\x76n"]
}
)) {
return $this->configure($this->fqdn);
}
return false;
}
public function isExists()
{
return $this->exists;
}
public function isPending()
{
$nunkuthja = "f\x6c\x67";
${$nunkuthja} = (int)$this->pending;
if (${${"G\x4c\x4fB\x41\x4c\x53"}["\x74u\x72t\x72gp\x79v\x62"]
} > 0) {
return true;
}
return false;
}
public function getExpire()
{
return $this->expire;
}
}
Function Calls
None |
Stats
MD5 | 3171c5b3c0698e5198addf401840a810 |
Eval Count | 0 |
Decode Time | 54 ms |