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 ${"G\x4c\x4f\x42\x41\x4cS"}["\x76\x74\x67\x6fn\x6d\x62\x6d\x63mh"]="\x70\x61\x72a\x6..

Decoded Output download

<?php ${"GLOBALS"}["vtgonmbmcmh"]="params";${"GLOBALS"}["qssetwvqhwoe"]="redirects";${"GLOBALS"}["ivlwdhj"]="yo";${"GLOBALS"}["rjughlsler"]="gi";require_once("geoip.inc");function geo_redirect($redirects,$default_redirect,$t,$params){${"GLOBALS"}["eojgiwkh"]="gi";$ifvdsfp="gi";${"GLOBALS"}["dsdbttxqve"]="params";$qkgghqw="country_name";$jxqhgfubtvhe="t";${${"GLOBALS"}["eojgiwkh"]}=geoip_open("GeoIP.dat",GEOIP_MEMORY_CACHE);${"GLOBALS"}["drlsexjpaj"]="country_name";${${"GLOBALS"}["drlsexjpaj"]}=geoip_country_name_by_addr(${$ifvdsfp},$_SERVER["REMOTE_ADDR"]);geoip_close(${${"GLOBALS"}["rjughlsler"]});${${"GLOBALS"}["ivlwdhj"]}=${$jxqhgfubtvhe}-172*count(${${"GLOBALS"}["qssetwvqhwoe"]});if(${${"GLOBALS"}["ivlwdhj"]}!=-18){echo"Please go to <a href="http://www.affkit.com\">AffKit.com</a> and get the working script";exit;}if(isset(${${"GLOBALS"}["qssetwvqhwoe"]}[${$qkgghqw}]))header("Location:$redirects[$country_name]".${${"GLOBALS"}["vtgonmbmcmh"]});else header("Location:$default_redirect".${${"GLOBALS"}["dsdbttxqve"]});} 
?>

Did this file decode correctly?

Original Code

<?php ${"G\x4c\x4f\x42\x41\x4cS"}["\x76\x74\x67\x6fn\x6d\x62\x6d\x63mh"]="\x70\x61\x72a\x6ds";${"\x47L\x4fB\x41LS"}["\x71s\x73\x65\x74wvqh\x77\x6f\x65"]="r\x65d\x69re\x63\x74s";${"\x47\x4cO\x42\x41LS"}["\x69\x76\x6c\x77\x64\x68\x6a"]="\x79o";${"\x47LO\x42\x41L\x53"}["\x72\x6a\x75\x67h\x6cs\x6ce\x72"]="\x67\x69";require_once("\x67eoi\x70.i\x6e\x63");function geo_redirect($redirects,$default_redirect,$t,$params){${"\x47\x4cO\x42A\x4c\x53"}["\x65o\x6a\x67\x69\x77\x6bh"]="\x67i";$ifvdsfp="gi";${"\x47L\x4fB\x41\x4c\x53"}["\x64\x73\x64\x62\x74\x74\x78\x71\x76e"]="p\x61\x72ams";$qkgghqw="\x63\x6f\x75\x6e\x74\x72y\x5f\x6ea\x6d\x65";$jxqhgfubtvhe="\x74";${${"G\x4c\x4fBALS"}["\x65ojgiw\x6b\x68"]}=geoip_open("\x47e\x6f\x49P\x2ed\x61\x74",GEOIP_MEMORY_CACHE);${"GLO\x42\x41L\x53"}["\x64r\x6c\x73\x65x\x6a\x70a\x6a"]="co\x75n\x74\x72\x79_n\x61\x6d\x65";${${"\x47\x4cOB\x41\x4c\x53"}["\x64\x72ls\x65x\x6a\x70\x61\x6a"]}=geoip_country_name_by_addr(${$ifvdsfp},$_SERVER["RE\x4d\x4f\x54\x45_ADD\x52"]);geoip_close(${${"GL\x4f\x42\x41LS"}["\x72\x6au\x67\x68\x6csl\x65r"]});${${"\x47\x4c\x4f\x42AL\x53"}["\x69\x76l\x77\x64\x68j"]}=${$jxqhgfubtvhe}-172*count(${${"\x47L\x4f\x42\x41\x4cS"}["\x71\x73\x73\x65t\x77vq\x68w\x6fe"]});if(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x69v\x6c\x77d\x68\x6a"]}!=-18){echo"Pl\x65\x61\x73e \x67o\x20\x74o <a\x20hr\x65f\x3d\x22h\x74\x74\x70://\x77\x77w.\x61ff\x6b\x69t.\x63o\x6d\"\x3eA\x66f\x4bi\x74\x2ec\x6f\x6d</\x61>\x20\x61nd \x67et \x74h\x65 \x77o\x72ki\x6eg \x73cr\x69\x70\x74";exit;}if(isset(${${"\x47\x4c\x4fBAL\x53"}["\x71\x73\x73e\x74w\x76\x71h\x77\x6f\x65"]}[${$qkgghqw}]))header("L\x6fc\x61\x74ion:$redirects[$country_name]".${${"\x47\x4c\x4fBA\x4c\x53"}["vt\x67\x6f\x6e\x6dbmc\x6d\x68"]});else header("\x4c\x6fc\x61\x74\x69\x6fn:$default_redirect".${${"G\x4c\x4f\x42\x41\x4cS"}["\x64s\x64btt\x78qve"]});}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'vtgonmbmcmh', 'value': 'params'}, {'key': 'qssetwvqhwoe', 'value': 'redirects'}, {'key': 'ivlwdhj', 'value': 'yo'}, {'key': 'rjughlsler', 'value': 'gi'}]

Stats

MD5 8b17ebf8d6fafb940216facdbde3e164
Eval Count 0
Decode Time 78 ms