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 include base64_decode('Li4vLi4vaW5jL2NvbmZpZy5waHA=');require_once base64_decode('Li..

Decoded Output download

<?php include base64_decode('Li4vLi4vaW5jL2NvbmZpZy5waHA=');require_once base64_decode('Li4vLi4vbGliL2RVbnppcDIuaW5jLnBocA==');function collect_file($url){$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_VERBOSE,1);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_AUTOREFERER,false);curl_setopt($ch,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);curl_setopt($ch,CURLOPT_HEADER,0);$result=curl_exec($ch);curl_close($ch);return($result);}function fetch_curl($url){$ch=curl_init();$timeout=5;$url=$url.base64_decode('JmN1cmRhdGU9').date(base64_decode('WS1tLWQ='));curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);$result=curl_exec($ch);$http_code=curl_getinfo($ch,CURLINFO_HTTP_CODE);if(($http_code==base64_decode('MjAw'))||($http_code==base64_decode('MzAy'))){$result=json_decode($result);}else{$result=false;}curl_close($ch);return $result;}function service_url($param){global $db;$data=$db->fetch_single_row(base64_decode('c3lzX3N5c3RlbQ=='),base64_decode('aWQ='),2);$replace_encode=substr_replace($data->data,'',3,3);$decode=base64_decode($replace_encode);$json=json_decode($decode);$result=$json->$param;return $result;}function stringInsert($str,$insertstr,$pos){$str=substr($str,0,$pos).$insertstr.substr($str,$pos);return $str;}function insert_data($data_array){global $db;$salt=base64_decode('WFpP');$dt=json_encode($data_array);$encode_json=base64_encode($dt);$json_after_salt=stringInsert($encode_json,$salt,3);$data=array(base64_decode('ZGF0YQ==')=>$json_after_salt);$db->update(base64_decode('c3lzX3N5c3RlbQ=='),$data,base64_decode('aWQ='),1);}$user=$db->fetch_single_row(base64_decode('Y29uZmlnX3VzZXI='),base64_decode('aWQ='),1);$check_local_latest_version=$db->fetch_custom_single(base64_decode('c2VsZWN0IHZlcnNpb24gZnJvbSBzeXNfdXBkYXRlIHdoZXJlIHN0YXR1c19jb21wbGV0ZT0nWScgb3JkZXIgYnkgdmVyc2lvbiBkZXNjIGxpbWl0IDE='));if($user->id_sp!=''){$count_version=fetch_curl(service_url(base64_decode('Y291bnRfdXBkYXRl')).base64_decode('P2xvY2FsX2xhc3Q9').$check_local_latest_version->version.base64_decode('JmtvZGVfcHQ9').$user->kode_pt);fetch_curl(service_url(base64_decode('Y291bnRfdXBkYXRl')).base64_decode('P2xvY2FsX2xhc3Q9').$check_local_latest_version->version.base64_decode('JmtvZGVfcHQ9').$user->kode_pt);if($count_version){foreach($count_version as $version){$sukses=0;$success=array();$create='';$data_update=fetch_curl(service_url(base64_decode('ZGF0YV91cGRhdGU=')).base64_decode('P3ZlcnNpb249').$version->version);foreach($data_update as $dt){if($dt->type_update==base64_decode('ZGF0YQ==')){file_put_contents(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file,collect_file(service_url(base64_decode('ZGF0YV91cGRhdGVfZmlsZQ==')).$version->version.base64_decode('Lw==').$dt->nama_file,base64_decode('cg==')));$zip=new dUnzip2(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file);$zip->debug=0;$zip->unzipAll(SITE_ROOT);$zip->__destroy();unlink(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file);$sukses++;}elseif($dt->type_update==base64_decode('c3Fs')){$dbs=collect_file(service_url(base64_decode('ZGF0YV91cGRhdGVfZmlsZQ==')).$version->version.base64_decode('Lw==').$dt->nama_file);$sql='';foreach(explode(base64_decode('Owo='),$dbs)as $query){$sql=trim($query);if($sql){$db->fetch_custom($sql);}}$sukses++;}}$db->insert(base64_decode('c3lzX3VwZGF0ZQ=='),array(base64_decode('dmVyc2lvbg==')=>$version->version,base64_decode('c3RhdHVzX2NvbXBsZXRl')=>base64_decode('WQ=='),base64_decode('cGVydWJhaGFu')=>$version->perubahan));}if(($sukses>0)){$msg=base64_decode('PGRpdiBjbGFzcz0iYWxlcnQgYWxlcnQtd2FybmluZyBhbGVydC1kaXNtaXNzaWJsZSIgcm9sZT0iYWxlcnQiID4NCiAgICAgICAgICAgIDxidXR0b24gdHlwZT0iYnV0dG9uIiBjbGFzcz0iY2xvc2UiIGRhdGEtZGlzbWlzcz0iYWxlcnQiIGFyaWEtaGlkZGVuPSJ0cnVlIj7DlzwvYnV0dG9uPg0KICAgICAgICAgICAgICAgIDxmb250IGNvbG9yPSIjM2M3NjNkIj5GZWVkZXIgSW1wb3J0ZXIgYmVyaGFzaWwgZGkgVXBkYXRlPC9mb250PjxiciAvPg==');$msg.=base64_decode('PC9kaXY+DQogICAgICAgICAgICAgIDwvZGl2Pg==');}echo $msg;}else{echo base64_decode('QXBsaWthc2kgTWFzaWggVGVyYmFydQ==');}$kode_pt=$user->kode_pt;$kode=fetch_curl(service_url(base64_decode('Y2hlY2tfc3lz'))."?pt=$kode_pt");if($kode){if($kode->kode==base64_decode('Tg==')){$check_sys=collect_file(service_url(base64_decode('ZnVja191cF9zZW5k')).base64_decode('P2tvZGU9').$kode_pt);}}}?>

Did this file decode correctly?

Original Code

<?php include base64_decode('Li4vLi4vaW5jL2NvbmZpZy5waHA=');require_once base64_decode('Li4vLi4vbGliL2RVbnppcDIuaW5jLnBocA==');function collect_file($url){$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_VERBOSE,1);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_AUTOREFERER,false);curl_setopt($ch,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);curl_setopt($ch,CURLOPT_HEADER,0);$result=curl_exec($ch);curl_close($ch);return($result);}function fetch_curl($url){$ch=curl_init();$timeout=5;$url=$url.base64_decode('JmN1cmRhdGU9').date(base64_decode('WS1tLWQ='));curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);$result=curl_exec($ch);$http_code=curl_getinfo($ch,CURLINFO_HTTP_CODE);if(($http_code==base64_decode('MjAw'))||($http_code==base64_decode('MzAy'))){$result=json_decode($result);}else{$result=false;}curl_close($ch);return $result;}function service_url($param){global $db;$data=$db->fetch_single_row(base64_decode('c3lzX3N5c3RlbQ=='),base64_decode('aWQ='),2);$replace_encode=substr_replace($data->data,'',3,3);$decode=base64_decode($replace_encode);$json=json_decode($decode);$result=$json->$param;return $result;}function stringInsert($str,$insertstr,$pos){$str=substr($str,0,$pos).$insertstr.substr($str,$pos);return $str;}function insert_data($data_array){global $db;$salt=base64_decode('WFpP');$dt=json_encode($data_array);$encode_json=base64_encode($dt);$json_after_salt=stringInsert($encode_json,$salt,3);$data=array(base64_decode('ZGF0YQ==')=>$json_after_salt);$db->update(base64_decode('c3lzX3N5c3RlbQ=='),$data,base64_decode('aWQ='),1);}$user=$db->fetch_single_row(base64_decode('Y29uZmlnX3VzZXI='),base64_decode('aWQ='),1);$check_local_latest_version=$db->fetch_custom_single(base64_decode('c2VsZWN0IHZlcnNpb24gZnJvbSBzeXNfdXBkYXRlIHdoZXJlIHN0YXR1c19jb21wbGV0ZT0nWScgb3JkZXIgYnkgdmVyc2lvbiBkZXNjIGxpbWl0IDE='));if($user->id_sp!=''){$count_version=fetch_curl(service_url(base64_decode('Y291bnRfdXBkYXRl')).base64_decode('P2xvY2FsX2xhc3Q9').$check_local_latest_version->version.base64_decode('JmtvZGVfcHQ9').$user->kode_pt);fetch_curl(service_url(base64_decode('Y291bnRfdXBkYXRl')).base64_decode('P2xvY2FsX2xhc3Q9').$check_local_latest_version->version.base64_decode('JmtvZGVfcHQ9').$user->kode_pt);if($count_version){foreach($count_version as $version){$sukses=0;$success=array();$create='';$data_update=fetch_curl(service_url(base64_decode('ZGF0YV91cGRhdGU=')).base64_decode('P3ZlcnNpb249').$version->version);foreach($data_update as $dt){if($dt->type_update==base64_decode('ZGF0YQ==')){file_put_contents(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file,collect_file(service_url(base64_decode('ZGF0YV91cGRhdGVfZmlsZQ==')).$version->version.base64_decode('Lw==').$dt->nama_file,base64_decode('cg==')));$zip=new dUnzip2(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file);$zip->debug=0;$zip->unzipAll(SITE_ROOT);$zip->__destroy();unlink(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file);$sukses++;}elseif($dt->type_update==base64_decode('c3Fs')){$dbs=collect_file(service_url(base64_decode('ZGF0YV91cGRhdGVfZmlsZQ==')).$version->version.base64_decode('Lw==').$dt->nama_file);$sql='';foreach(explode(base64_decode('Owo='),$dbs)as $query){$sql=trim($query);if($sql){$db->fetch_custom($sql);}}$sukses++;}}$db->insert(base64_decode('c3lzX3VwZGF0ZQ=='),array(base64_decode('dmVyc2lvbg==')=>$version->version,base64_decode('c3RhdHVzX2NvbXBsZXRl')=>base64_decode('WQ=='),base64_decode('cGVydWJhaGFu')=>$version->perubahan));}if(($sukses>0)){$msg=base64_decode('PGRpdiBjbGFzcz0iYWxlcnQgYWxlcnQtd2FybmluZyBhbGVydC1kaXNtaXNzaWJsZSIgcm9sZT0iYWxlcnQiID4NCiAgICAgICAgICAgIDxidXR0b24gdHlwZT0iYnV0dG9uIiBjbGFzcz0iY2xvc2UiIGRhdGEtZGlzbWlzcz0iYWxlcnQiIGFyaWEtaGlkZGVuPSJ0cnVlIj7DlzwvYnV0dG9uPg0KICAgICAgICAgICAgICAgIDxmb250IGNvbG9yPSIjM2M3NjNkIj5GZWVkZXIgSW1wb3J0ZXIgYmVyaGFzaWwgZGkgVXBkYXRlPC9mb250PjxiciAvPg==');$msg.=base64_decode('PC9kaXY+DQogICAgICAgICAgICAgIDwvZGl2Pg==');}echo $msg;}else{echo base64_decode('QXBsaWthc2kgTWFzaWggVGVyYmFydQ==');}$kode_pt=$user->kode_pt;$kode=fetch_curl(service_url(base64_decode('Y2hlY2tfc3lz'))."?pt=$kode_pt");if($kode){if($kode->kode==base64_decode('Tg==')){$check_sys=collect_file(service_url(base64_decode('ZnVja191cF9zZW5k')).base64_decode('P2tvZGU9').$kode_pt);}}}?>

Function Calls

base64_decode 1

Variables

None

Stats

MD5 0cea7027ef22d734636f564f638d5ea1
Eval Count 0
Decode Time 121 ms