Decoded Output
Download<?php
class mo_Propic_Util
{
public static function is_customer_registered()
{
$kj = get_option("mo_local_admin_email");
$IC = get_option("mo_local_admin_customer_key");
if (!$kj || !$IC || !is_numeric(trim($IC))) {
goto H5;
}
return 1;
goto HB;
H5:
return 0;
HB:
}
public static function check_empty_or_null($J7)
{
if (!(!isset($J7) || empty($J7))) {
goto KF;
}
return true;
KF:
return false;
}
public static function encrypt($TE)
{
if (mo_Propic_Util::is_extension_installed("openssl")) {
goto GK;
}
return;
GK:
$zs = get_option("mo_local_customer_token");
$yd = "AES-128-ECB";
$d_ = openssl_cipher_iv_length($yd);
$wj = openssl_random_pseudo_bytes($d_);
$qr = openssl_encrypt($TE, $yd, $zs, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $wj);
return base64_encode($wj . $qr);
}
public static function decrypt($J7)
{
if (mo_Propic_Util::is_extension_installed("openssl")) {
goto nH;
}
return;
nH:
$d5 = base64_decode($J7);
$zs = get_option("mo_local_customer_token");
$yd = "AES-128-ECB";
$d_ = openssl_cipher_iv_length($yd);
$wj = substr($d5, 0, $d_);
$Q8 = substr($d5, $d_);
$Fb = openssl_decrypt($Q8, $yd, $zs, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $wj);
return $Fb;
}
public static function is_curl_installed()
{
if (in_array("curl", get_loaded_extensions())) {
goto ue;
}
return 0;
goto Dg;
ue:
return 1;
Dg:
}
public static function is_extension_installed($UE)
{
if (in_array($UE, get_loaded_extensions())) {
goto z3;
}
return false;
goto Vz;
z3:
return true;
Vz:
}
}
?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | 3d62177a6f44d645 |
|---|---|
| Eval Count | 0 |
| Decode Time | 43 ms |
Original Code
<?php
class mo_Propic_Util
{
public static function is_customer_registered()
{
$kj = get_option("\155\157\x5f\154\x6f\x63\141\x6c\137\141\144\155\x69\x6e\x5f\x65\155\141\151\x6c");
$IC = get_option("\x6d\157\x5f\x6c\157\x63\x61\154\137\141\x64\155\x69\156\137\143\165\x73\164\157\x6d\x65\162\137\153\145\171");
if (!$kj || !$IC || !is_numeric(trim($IC))) {
goto H5;
}
return 1;
goto HB;
H5:
return 0;
HB:
}
public static function check_empty_or_null($J7)
{
if (!(!isset($J7) || empty($J7))) {
goto KF;
}
return true;
KF:
return false;
}
public static function encrypt($TE)
{
if (mo_Propic_Util::is_extension_installed("\157\160\145\156\163\x73\x6c")) {
goto GK;
}
return;
GK:
$zs = get_option("\x6d\x6f\137\154\157\x63\x61\154\x5f\x63\165\x73\164\157\155\x65\162\137\164\x6f\x6b\x65\x6e");
$yd = "\101\105\123\55\61\x32\x38\55\105\103\x42";
$d_ = openssl_cipher_iv_length($yd);
$wj = openssl_random_pseudo_bytes($d_);
$qr = openssl_encrypt($TE, $yd, $zs, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $wj);
return base64_encode($wj . $qr);
}
public static function decrypt($J7)
{
if (mo_Propic_Util::is_extension_installed("\157\160\145\156\163\x73\x6c")) {
goto nH;
}
return;
nH:
$d5 = base64_decode($J7);
$zs = get_option("\155\x6f\137\x6c\x6f\143\x61\x6c\x5f\x63\165\x73\x74\157\155\x65\162\137\164\157\153\x65\156");
$yd = "\x41\x45\123\55\x31\x32\x38\55\x45\103\x42";
$d_ = openssl_cipher_iv_length($yd);
$wj = substr($d5, 0, $d_);
$Q8 = substr($d5, $d_);
$Fb = openssl_decrypt($Q8, $yd, $zs, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $wj);
return $Fb;
}
public static function is_curl_installed()
{
if (in_array("\x63\165\x72\x6c", get_loaded_extensions())) {
goto ue;
}
return 0;
goto Dg;
ue:
return 1;
Dg:
}
public static function is_extension_installed($UE)
{
if (in_array($UE, get_loaded_extensions())) {
goto z3;
}
return false;
goto Vz;
z3:
return true;
Vz:
}
}