Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto afGBc; KdBaW: $response = curl_exec($curl); goto g5p7n; afGBc: header("\x43\x6f\x6e\..
Decoded Output download
<? goto afGBc; KdBaW: $response = curl_exec($curl); goto g5p7n; afGBc: header("Content-Type: application/json"); goto F84uo; JdzJX: $curl = curl_init(); goto w9sDB; BPDfv: $nik = isset($_GET["nik"]) ? $_GET["nik"] : null; goto LM78C; g5p7n: $httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE); goto ircZ6; LM78C: if (!$nik) { echo json_encode(array("error" => true, "message" => "NIK parameter is missing.")); die; } goto JdzJX; w9sDB: curl_setopt_array($curl, array(CURLOPT_URL => "https://sihapims2.kemkes.go.id/person/get_nik_dto", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query(array("nik" => $nik)), CURLOPT_HTTPHEADER => array("Content-Type: application/x-www-form-urlencoded", "apikey: rasitech"))); goto KdBaW; F84uo: if (!isset($_GET["apikey"]) || $_GET["apikey"] !== "rasitech") { header("Content-Type: application/json"); echo json_encode(array("error" => "Invalid API Key")); die; } goto BPDfv; ircZ6: curl_close($curl); goto FXMJo; FXMJo: if ($httpcode == 200) { $responseData = json_decode($response, true); if (!isset($responseData["error"]) || !$responseData["error"]) { $personData = $responseData["data"]; echo json_encode(array("nik" => $personData["nik"], "nama_lengkap" => $personData["nama_lengkap"], "tanggal_lahir" => $personData["tanggal_lahir"], "jenis_kelamin" => $personData["jenis_kelamin"], "alamat" => $personData["alamat"], "provinsi" => $personData["provinsi"], "kode_provinsi" => $personData["kode_provinsi"], "kabupaten" => $personData["kabupaten"], "kode_kabupaten" => $personData["kode_kabupaten"], "kecamatan" => $personData["kecamatan"], "kode_kecamatan" => $personData["kode_kecamatan"], "kelurahan" => $personData["kelurahan"], "kode_kelurahan" => $personData["kode_kelurahan"], "no_rw" => $personData["no_rw"], "no_rt" => $personData["no_rt"], "jenis_kelamin_id" => $personData["jenis_kelamin_id"], "provinsi_id" => $personData["provinsi_id"], "provinsi_id_text" => $personData["provinsi_id_text"], "kabupaten_id" => $personData["kabupaten_id"], "kabupaten_id_text" => $personData["kabupaten_id_text"], "kecamatan_id" => $personData["kecamatan_id"], "kecamatan_id_text" => $personData["kecamatan_id_text"], "kelurahan_id" => $personData["kelurahan_id"], "kelurahan_id_text" => $personData["kelurahan_id_text"])); } else { echo json_encode(array("error" => true, "message" => $responseData["message"])); } } else { echo json_encode(array("error" => true, "message" => "Error: " . $httpcode)); }
?>
Did this file decode correctly?
Original Code
goto afGBc; KdBaW: $response = curl_exec($curl); goto g5p7n; afGBc: header("\x43\x6f\x6e\164\145\x6e\164\x2d\x54\171\x70\x65\x3a\x20\x61\160\x70\x6c\151\x63\141\164\x69\157\x6e\57\152\163\157\x6e"); goto F84uo; JdzJX: $curl = curl_init(); goto w9sDB; BPDfv: $nik = isset($_GET["\x6e\151\153"]) ? $_GET["\x6e\151\153"] : null; goto LM78C; g5p7n: $httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE); goto ircZ6; LM78C: if (!$nik) { echo json_encode(array("\145\162\162\157\x72" => true, "\x6d\145\x73\163\x61\147\x65" => "\116\111\x4b\40\x70\x61\162\141\155\x65\x74\x65\x72\x20\151\163\x20\155\x69\x73\163\151\x6e\147\x2e")); die; } goto JdzJX; w9sDB: curl_setopt_array($curl, array(CURLOPT_URL => "\150\164\x74\x70\163\x3a\x2f\x2f\163\151\x68\x61\160\x69\155\x73\62\56\x6b\x65\x6d\x6b\145\x73\56\147\157\x2e\x69\x64\x2f\x70\145\162\x73\x6f\156\x2f\147\x65\164\137\x6e\x69\153\137\144\164\157", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query(array("\156\151\x6b" => $nik)), CURLOPT_HTTPHEADER => array("\103\157\156\x74\x65\x6e\x74\x2d\124\x79\160\x65\72\x20\141\160\x70\x6c\x69\x63\141\164\x69\157\156\x2f\170\x2d\x77\x77\167\x2d\146\x6f\x72\155\55\165\162\154\145\x6e\143\x6f\144\x65\144", "\x61\160\x69\153\145\x79\x3a\x20\x72\141\163\x69\x74\x65\143\150"))); goto KdBaW; F84uo: if (!isset($_GET["\x61\x70\x69\153\x65\171"]) || $_GET["\x61\x70\151\x6b\x65\x79"] !== "\x72\x61\x73\151\x74\145\143\150") { header("\x43\x6f\156\x74\x65\x6e\164\55\124\x79\160\x65\x3a\x20\x61\160\160\x6c\151\143\x61\164\x69\x6f\x6e\57\152\163\x6f\x6e"); echo json_encode(array("\x65\x72\x72\x6f\x72" => "\x49\x6e\x76\x61\154\151\x64\x20\101\120\x49\40\x4b\145\171")); die; } goto BPDfv; ircZ6: curl_close($curl); goto FXMJo; FXMJo: if ($httpcode == 200) { $responseData = json_decode($response, true); if (!isset($responseData["\145\162\x72\157\162"]) || !$responseData["\145\x72\162\157\x72"]) { $personData = $responseData["\x64\x61\x74\x61"]; echo json_encode(array("\156\151\153" => $personData["\x6e\151\153"], "\156\x61\x6d\x61\137\x6c\145\156\x67\x6b\x61\x70" => $personData["\x6e\141\155\x61\x5f\154\x65\x6e\x67\153\141\160"], "\164\x61\156\x67\x67\x61\154\x5f\154\x61\150\151\x72" => $personData["\x74\141\156\147\x67\141\154\137\x6c\x61\150\151\x72"], "\152\145\156\151\x73\x5f\x6b\x65\x6c\141\x6d\x69\156" => $personData["\152\145\156\151\x73\137\x6b\145\x6c\x61\x6d\x69\x6e"], "\141\x6c\141\x6d\x61\x74" => $personData["\x61\x6c\x61\155\141\x74"], "\160\x72\157\166\x69\156\x73\x69" => $personData["\160\x72\x6f\x76\151\x6e\x73\x69"], "\x6b\x6f\x64\x65\137\x70\x72\x6f\166\x69\x6e\x73\151" => $personData["\153\157\144\x65\x5f\160\162\157\x76\x69\x6e\x73\151"], "\x6b\141\142\165\x70\x61\x74\145\x6e" => $personData["\153\141\142\x75\160\141\164\x65\156"], "\x6b\x6f\x64\145\x5f\x6b\141\x62\165\160\x61\x74\x65\x6e" => $personData["\x6b\157\144\145\x5f\x6b\x61\142\165\160\x61\x74\145\x6e"], "\x6b\x65\x63\141\x6d\x61\164\x61\x6e" => $personData["\x6b\x65\143\x61\155\141\164\x61\156"], "\153\x6f\x64\145\x5f\153\x65\x63\141\155\x61\x74\141\156" => $personData["\x6b\x6f\x64\x65\x5f\153\145\x63\141\155\141\164\x61\156"], "\153\145\x6c\x75\162\141\x68\141\156" => $personData["\153\x65\x6c\x75\162\x61\150\x61\x6e"], "\153\x6f\x64\x65\137\x6b\x65\x6c\x75\x72\141\x68\x61\156" => $personData["\153\157\144\x65\x5f\153\145\x6c\165\162\141\x68\x61\156"], "\156\x6f\137\162\167" => $personData["\x6e\157\x5f\162\x77"], "\156\157\x5f\x72\164" => $personData["\x6e\157\137\x72\164"], "\x6a\x65\x6e\151\x73\x5f\153\145\x6c\x61\155\151\156\137\151\x64" => $personData["\152\145\x6e\151\x73\137\x6b\145\x6c\141\155\x69\x6e\x5f\x69\144"], "\x70\x72\157\x76\151\156\163\151\x5f\x69\x64" => $personData["\x70\x72\x6f\x76\x69\156\x73\151\x5f\x69\144"], "\x70\x72\157\x76\x69\156\x73\151\137\x69\144\137\x74\145\x78\164" => $personData["\160\162\157\166\151\156\x73\x69\137\x69\x64\x5f\x74\145\x78\164"], "\153\141\142\x75\x70\x61\x74\x65\x6e\137\151\x64" => $personData["\153\x61\142\x75\x70\141\x74\x65\156\137\x69\x64"], "\153\x61\x62\165\160\141\164\x65\x6e\137\151\x64\x5f\x74\145\170\x74" => $personData["\x6b\141\x62\x75\160\141\164\x65\x6e\x5f\151\x64\137\x74\145\x78\164"], "\153\x65\143\141\155\x61\164\x61\x6e\137\x69\x64" => $personData["\153\x65\x63\141\155\141\x74\x61\x6e\x5f\151\144"], "\153\x65\143\x61\155\x61\164\x61\156\137\151\x64\137\164\145\170\x74" => $personData["\x6b\x65\x63\141\155\141\164\141\x6e\x5f\x69\144\137\x74\x65\170\x74"], "\x6b\145\154\165\162\x61\x68\141\156\137\151\144" => $personData["\153\x65\x6c\x75\x72\141\150\x61\x6e\x5f\x69\x64"], "\x6b\145\154\x75\x72\x61\150\141\x6e\137\x69\x64\137\x74\x65\170\x74" => $personData["\153\x65\x6c\x75\162\141\150\x61\x6e\x5f\x69\144\x5f\x74\x65\x78\164"])); } else { echo json_encode(array("\x65\162\162\157\162" => true, "\x6d\145\163\x73\x61\147\x65" => $responseData["\x6d\x65\x73\x73\141\x67\x65"])); } } else { echo json_encode(array("\x65\x72\x72\x6f\162" => true, "\x6d\145\163\x73\x61\x67\145" => "\x45\x72\x72\x6f\162\x3a\x20" . $httpcode)); }
Function Calls
None |
Stats
MD5 | 974444592d5911389065852f9518dd54 |
Eval Count | 0 |
Decode Time | 88 ms |