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 eval(base64_decode('CiBnb3RvIEJSSjdqOyBYRGxubTogJGRhdGFhcnIgPSBhcnJheSgiXHg3NVwxNjNc..

Decoded Output download


 goto BRJ7j; XDlnm: $dataarr = array("username" => "{$username}", "password" => "{$password}"); goto GkH3n; hozZU: session_start(); goto uBsoj; xn86U: $hostdev = "https://nlehub-dev.kemenkeu.go.id/auth-amws/v1/user/login"; goto QTK04; uBsoj: $curl = curl_init(); goto xn86U; iJ0hO: $err = curl_error($curl); goto Ogl0E; BRJ7j: include "datalogin.php"; goto hozZU; HXnrN: $response = json_decode($response, true); goto iJ0hO; Ogl0E: @($item = $response["item"]); goto uiSkf; uiSkf: $_SESSION["token"] = $item["access_token"]; goto T1Uvo; T1Uvo: curl_close($curl); goto XnENr; HhLoR: $response = curl_exec($curl); goto HXnrN; XnENr: if ($err) { echo "cURL Error #:" . $err; } else { } goto gblxV; QTK04: $hostprd = "https://apis-gw.beacukai.go.id/nle-oauth/v1/user/login"; goto XDlnm; GkH3n: $sendrest = json_encode($dataarr, true); goto zmkWd; zmkWd: curl_setopt_array($curl, array(CURLOPT_URL => $hostprd, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $sendrest, CURLOPT_HTTPHEADER => array("Content-Type: application/json"))); goto HhLoR; gblxV: 

Did this file decode correctly?

Original Code

<?php eval(base64_decode('CiBnb3RvIEJSSjdqOyBYRGxubTogJGRhdGFhcnIgPSBhcnJheSgiXHg3NVwxNjNceDY1XHg3Mlx4NmVceDYxXHg2ZFwxNDUiID0+ICJ7JHVzZXJuYW1lfSIsICJceDcwXDE0MV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