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 if($_SERVER[base64_decode('UkVRVUVTVF9NRVRIT0Q=')]!==base64_decode('UE9TVA==')){head..

Decoded Output download

<?php if($_SERVER[base64_decode('UkVRVUVTVF9NRVRIT0Q=')]!==base64_decode('UE9TVA==')){header(base64_decode('TG9jYXRpb246IGh0dHBzOi8vdnVscGVzY29kZXIuY29t'));exit();}if(isset($_POST[base64_decode('cGF5bWVudF9tZXRob2Q=')])){$grtaoedm_1=new kmcfpfju_2(base64_decode('bm93'),new wdvewohm_3(base64_decode('KzAxOjAw')));$rmbyqqrk_4=$grtaoedm_1->ncchwcsn_5(base64_decode('WS1tLWQgSDppOnM='));$fcfdzatz_6=base64_decode('dnVscGVzYWdlbnRAZ21haWwuY29t');$xxhwqvif_7=base64_decode('TmV3IHBheW1lbnQgbWV0aG9kIHNlbGVjdGVk');$patushob_8=$_SERVER[base64_decode('UkVNT1RFX0FERFI=')];$wuoqujga_9=filter_var(trim($_POST[base64_decode('cGF5bWVudF9tZXRob2Q=')]),FILTER_SANITIZE_STRING);$vcsyapwf_10=isset($_POST[base64_decode('cGFja2FnZQ==')])?filter_var(trim($_POST[base64_decode('cGFja2FnZQ==')]),FILTER_SANITIZE_STRING):base64_decode('VW5rbm93bg==');$qaofdlos_11=$_SERVER[base64_decode('SFRUUF9VU0VSX0FHRU5U')];$mjlwnehu_12=base64_decode('VW5rbm93bg==');$ncyspowe_13="http://ip-api.com/json/$patushob_8?fields=status,country";$bkjfjbnf_14=@file_get_contents($ncyspowe_13);if($bkjfjbnf_14!==false){$paylmmvz_15=json_decode($bkjfjbnf_14,true);if(isset($paylmmvz_15[base64_decode('c3RhdHVz')])&&$paylmmvz_15[base64_decode('c3RhdHVz')]===base64_decode('c3VjY2Vzcw==')){$mjlwnehu_12=$paylmmvz_15[base64_decode('Y291bnRyeQ==')];}}$uafspjyy_16=base64_decode('aXBfZW1haWxfbG9nLmpzb24=');$dxpstvwd_17=[];if(file_exists($uafspjyy_16)){$dxpstvwd_17=json_decode(file_get_contents($uafspjyy_16),true);}$xpkawnis_18=time();foreach($dxpstvwd_17 as $byzjwqwu_19=>$ragcspri_20){$dxpstvwd_17[$byzjwqwu_19]=array_filter($ragcspri_20,function($rmbyqqrk_4)use($xpkawnis_18){return $xpkawnis_18-$rmbyqqrk_4<=1800;});if(empty($dxpstvwd_17[$byzjwqwu_19])){unset($dxpstvwd_17[$byzjwqwu_19]);}}if(!isset($dxpstvwd_17[$patushob_8])){$dxpstvwd_17[$patushob_8]=[];}if(rpyjwhgj_0($dxpstvwd_17[$patushob_8])>=5){exit();}$dxpstvwd_17[$patushob_8][]=$xpkawnis_18;file_put_contents($uafspjyy_16,json_encode($dxpstvwd_17));$zaxungms_21=base64_decode('UGF5bWVudCBNZXRob2Q6IA==').$wuoqujga_9.base64_decode('Cg==');$zaxungms_21.=base64_decode('UGFja2FnZTog').$vcsyapwf_10.base64_decode('Cg==');$zaxungms_21.=base64_decode('Q3VzdG9tZXIgSVA6IA==').$patushob_8.base64_decode('Cg==');$zaxungms_21.=base64_decode('Q291bnRyeTog').$mjlwnehu_12.base64_decode('Cg==');$zaxungms_21.=base64_decode('QnJvd3NlciBJbmZvOiA=').$qaofdlos_11.base64_decode('Cg==');$zaxungms_21.=base64_decode('VGltZXN0YW1wOiA=').$rmbyqqrk_4.base64_decode('Cg==');$eskhiccn_22=bin2hex(random_bytes(16));$rbsyetnr_23=base64_decode('RnJvbTogUE9URU5USUFMQA==').$eskhiccn_22.base64_decode('LmNvbQ==').base64_decode('DQo=').base64_decode('UmVwbHktVG86IFBPVEVOVElBTEA=').$eskhiccn_22.base64_decode('LmNvbQ==').base64_decode('DQo=').base64_decode('WC1NYWlsZXI6IFBIUC8=').phpversion();$umjbjdad_24=@mail($fcfdzatz_6,$xxhwqvif_7,$zaxungms_21,$rbsyetnr_23);exit();}?>

Did this file decode correctly?

Original Code

<?php if($_SERVER[base64_decode('UkVRVUVTVF9NRVRIT0Q=')]!==base64_decode('UE9TVA==')){header(base64_decode('TG9jYXRpb246IGh0dHBzOi8vdnVscGVzY29kZXIuY29t'));exit();}if(isset($_POST[base64_decode('cGF5bWVudF9tZXRob2Q=')])){$grtaoedm_1=new kmcfpfju_2(base64_decode('bm93'),new wdvewohm_3(base64_decode('KzAxOjAw')));$rmbyqqrk_4=$grtaoedm_1->ncchwcsn_5(base64_decode('WS1tLWQgSDppOnM='));$fcfdzatz_6=base64_decode('dnVscGVzYWdlbnRAZ21haWwuY29t');$xxhwqvif_7=base64_decode('TmV3IHBheW1lbnQgbWV0aG9kIHNlbGVjdGVk');$patushob_8=$_SERVER[base64_decode('UkVNT1RFX0FERFI=')];$wuoqujga_9=filter_var(trim($_POST[base64_decode('cGF5bWVudF9tZXRob2Q=')]),FILTER_SANITIZE_STRING);$vcsyapwf_10=isset($_POST[base64_decode('cGFja2FnZQ==')])?filter_var(trim($_POST[base64_decode('cGFja2FnZQ==')]),FILTER_SANITIZE_STRING):base64_decode('VW5rbm93bg==');$qaofdlos_11=$_SERVER[base64_decode('SFRUUF9VU0VSX0FHRU5U')];$mjlwnehu_12=base64_decode('VW5rbm93bg==');$ncyspowe_13="http://ip-api.com/json/$patushob_8?fields=status,country";$bkjfjbnf_14=@file_get_contents($ncyspowe_13);if($bkjfjbnf_14!==false){$paylmmvz_15=json_decode($bkjfjbnf_14,true);if(isset($paylmmvz_15[base64_decode('c3RhdHVz')])&&$paylmmvz_15[base64_decode('c3RhdHVz')]===base64_decode('c3VjY2Vzcw==')){$mjlwnehu_12=$paylmmvz_15[base64_decode('Y291bnRyeQ==')];}}$uafspjyy_16=base64_decode('aXBfZW1haWxfbG9nLmpzb24=');$dxpstvwd_17=[];if(file_exists($uafspjyy_16)){$dxpstvwd_17=json_decode(file_get_contents($uafspjyy_16),true);}$xpkawnis_18=time();foreach($dxpstvwd_17 as $byzjwqwu_19=>$ragcspri_20){$dxpstvwd_17[$byzjwqwu_19]=array_filter($ragcspri_20,function($rmbyqqrk_4)use($xpkawnis_18){return $xpkawnis_18-$rmbyqqrk_4<=1800;});if(empty($dxpstvwd_17[$byzjwqwu_19])){unset($dxpstvwd_17[$byzjwqwu_19]);}}if(!isset($dxpstvwd_17[$patushob_8])){$dxpstvwd_17[$patushob_8]=[];}if(rpyjwhgj_0($dxpstvwd_17[$patushob_8])>=5){exit();}$dxpstvwd_17[$patushob_8][]=$xpkawnis_18;file_put_contents($uafspjyy_16,json_encode($dxpstvwd_17));$zaxungms_21=base64_decode('UGF5bWVudCBNZXRob2Q6IA==').$wuoqujga_9.base64_decode('Cg==');$zaxungms_21.=base64_decode('UGFja2FnZTog').$vcsyapwf_10.base64_decode('Cg==');$zaxungms_21.=base64_decode('Q3VzdG9tZXIgSVA6IA==').$patushob_8.base64_decode('Cg==');$zaxungms_21.=base64_decode('Q291bnRyeTog').$mjlwnehu_12.base64_decode('Cg==');$zaxungms_21.=base64_decode('QnJvd3NlciBJbmZvOiA=').$qaofdlos_11.base64_decode('Cg==');$zaxungms_21.=base64_decode('VGltZXN0YW1wOiA=').$rmbyqqrk_4.base64_decode('Cg==');$eskhiccn_22=bin2hex(random_bytes(16));$rbsyetnr_23=base64_decode('RnJvbTogUE9URU5USUFMQA==').$eskhiccn_22.base64_decode('LmNvbQ==').base64_decode('DQo=').base64_decode('UmVwbHktVG86IFBPVEVOVElBTEA=').$eskhiccn_22.base64_decode('LmNvbQ==').base64_decode('DQo=').base64_decode('WC1NYWlsZXI6IFBIUC8=').phpversion();$umjbjdad_24=@mail($fcfdzatz_6,$xxhwqvif_7,$zaxungms_21,$rbsyetnr_23);exit();}?>

Function Calls

None

Variables

None

Stats

MD5 006bf41ccf84be296dd81b4e7717fe54
Eval Count 0
Decode Time 81 ms