Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
/* Decoded by unphp.net */ goto b1sYD; W8MGy: $postfiled1 = array("\x6c\x61\x6e\x67"..
Decoded Output download
<? /* Decoded by unphp.net */
goto b1sYD; W8MGy: $postfiled1 = array("lang" => "id", "is_enterprise" => true, "is_migration" => true, "is_shareable" => false, "migration_type" => "go"); goto GIoE4; JtOR0: echo "
"; goto v9As2; Xv1D6: $uuid = generate_uuid_v4(); goto NsOLt; nzz_k: function make_api_request($url, $post_fields, $headers) { $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode($post_fields), CURLOPT_HTTPHEADER => $headers)); $response = curl_exec($curl); curl_close($curl); return json_decode($response, true); } goto Ymq9N; hWOQG: $postfiled2 = array("lang" => "id", "is_enterprise" => false, "is_migration" => true, "is_shareable" => false, "migration_type" => "go"); goto hnh5b; awFH_: if (file_exists($konfigurasiFile)) { $response = json_decode(file_get_contents($konfigurasiFile), true); if (!isset($response["id_token"])) { die("Token tidak ditemukan dalam file konfigurasi.
"); } } else { die("File konfigurasi tidak ditemukan.\xa"); } goto h6o62; GwoxB: function generate_uuid_v4() { return bin2hex(random_bytes(16)); } goto MflCN; NsOLt: $tanggal = getCurrentFormattedDate(); goto oo5KB; StcDW: $headers = array("User-Agent: myXL / 7.1.1(1026); com.android.vending; (Xiaomi; Redmi Note 8; SDK 33; Android 13)", "Accept-Encoding: gzip", "Authorization: Bearer " . $response["id_token"], "x-api-key: vT8tINqHaOxXbGE7eOWAhA==", "x-request-id: " . $uuid, "x-request-at: " . $tanggal, "x-version-app: 7.1.1", "content-type: application/json; charset=utf-8"); goto hWOQG; MflCN: function getCurrentFormattedDate() : string { return date("c"); } goto UG0hY; ue8GW: $response2 = makexl("https://api.myxl.xlaxiata.co.id/api/v7/packages/balance-and-credit", $enc2, $headers); goto Oqr7s; agyG9: $response1 = makexl("https://api.myxl.xlaxiata.co.id/api/v7/packages/quota-details", $enc1, $headers); goto daB2N; Oqr7s: $dec2 = dec($response2, $head); goto JtOR0; h6o62: system("clear"); goto nzz_k; oo5KB: $head = array("Content-Type: application/json", "Authorization: Bearer 0a1ccba4-e6fc-498c-af2f-5f889c765aa3"); goto StcDW; T4tQK: echo "
"; goto m7rRB; v9As2: if ($dec2 !== null && isset($dec2["data"]["balance"]["remaining"])) { echo "Sisa Pulsa: " . $dec2["data"]["balance"]["remaining"] . "
"; } else { echo "Gagal mengambil saldo.\xa"; } goto W8MGy; hnh5b: $enc2 = enc($postfiled2, $head); goto ue8GW; m7rRB: if ($dec1 !== null && isset($dec1["data"]["quotas"])) { foreach ($dec1["data"]["quotas"] as $kuota) { echo "Nama Paket: " . ($kuota["name"] ?? "Nama tidak tersedia") . "
"; echo "Berakhir Pada: " . (isset($kuota["expired_at"]) ? date("Y-m-d H:i:s", $kuota["expired_at"]) : "Tidak tersedia") . "
"; if (isset($kuota["benefits"]) && is_array($kuota["benefits"])) { foreach ($kuota["benefits"] as $benefit) { echo "Nama Manfaat: " . ($benefit["name"] ?? "Tidak tersedia") . "\xa"; echo "Total Kuota: " . (isset($benefit["total"]) ? number_format($benefit["total"] / 1073741824, 2) . " GB" : "Tidak tersedia") . "
"; echo "Sisa Kuota: " . (isset($benefit["remaining"]) ? number_format($benefit["remaining"] / 1073741824, 2) . " GB" : "Tidak tersedia") . "
"; } } echo "
\xe2\226\254\xe2\226\xac\342\x96\254\342\226\xac\342\x96\xac\342\x96\xac\342\226\xac\342\x96\xac\xe2\x96\xac\xe2\x96\254\342\226\254\xe2\226\xac\342\x96\254\xe2\226\254\xe2\x96\254\342\x96\254\xe2\x96\254\342\x96\254\xa"; } } else { echo "Gagal mengambil detail kuota.
"; } goto QPPN3; ZzSxV: function dec($post_fields, $headers) { if (isset($post_fields["xdata"], $post_fields["xtime"])) { $payload = array("xdata" => $post_fields["xdata"], "xtime" => $post_fields["xtime"]); $response = make_api_request("https://panel.my-mfc.top/api/dec", $payload, $headers); if ($response === null || !isset($response["status"], $response["data"]["decrypted_content"])) { echo "Response data tidak valid."; return null; } return $response["data"]["decrypted_content"]; } else { echo "Response data tidak valid."; return null; } } goto Xv1D6; b1sYD: system("clear"); goto cfwtD; daB2N: $dec1 = dec($response1, $head); goto T4tQK; GIoE4: $enc1 = enc($postfiled1, $head); goto agyG9; cfwtD: $konfigurasiFile = "response.json"; goto awFH_; Ymq9N: function makexl($url, $post_fields, $headers) { $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_2_0, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $post_fields, CURLOPT_HTTPHEADER => $headers)); $response = curl_exec($curl); curl_close($curl); return json_decode($response, true); } goto GwoxB; UG0hY: function enc($post_fields, $headers) { $response = make_api_request("https://panel.my-mfc.top/api/enc", $post_fields, $headers); if ($response === null || !isset($response["status"])) { echo "Response data tidak valid."; return null; } $xdata = $response["data"]["xdata"]; $xtime = intval($response["data"]["xtime"]); return json_encode(array("xdata" => $xdata, "xtime" => $xtime)); } goto ZzSxV; QPPN3: ?>
Did this file decode correctly?
Original Code
/* Decoded by unphp.net */
goto b1sYD; W8MGy: $postfiled1 = array("\x6c\x61\x6e\x67" => "\x69\x64", "\x69\163\x5f\x65\156\x74\145\162\160\162\151\x73\145" => true, "\x69\163\137\155\x69\147\x72\141\x74\151\157\x6e" => true, "\151\163\x5f\163\150\141\x72\145\141\x62\154\x65" => false, "\x6d\x69\x67\x72\141\x74\x69\x6f\x6e\137\164\x79\160\145" => "\147\157"); goto GIoE4; JtOR0: echo "\12"; goto v9As2; Xv1D6: $uuid = generate_uuid_v4(); goto NsOLt; nzz_k: function make_api_request($url, $post_fields, $headers) { $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\x50\x4f\x53\124", CURLOPT_POSTFIELDS => json_encode($post_fields), CURLOPT_HTTPHEADER => $headers)); $response = curl_exec($curl); curl_close($curl); return json_decode($response, true); } goto Ymq9N; hWOQG: $postfiled2 = array("\154\141\156\147" => "\151\144", "\x69\x73\137\145\x6e\164\x65\162\x70\x72\x69\163\145" => false, "\151\163\x5f\155\151\147\162\x61\x74\151\x6f\156" => true, "\151\163\x5f\163\x68\141\162\x65\x61\142\154\x65" => false, "\x6d\x69\x67\162\141\x74\151\x6f\x6e\137\164\x79\160\x65" => "\147\157"); goto hnh5b; awFH_: if (file_exists($konfigurasiFile)) { $response = json_decode(file_get_contents($konfigurasiFile), true); if (!isset($response["\x69\x64\x5f\x74\157\x6b\x65\156"])) { die("\124\157\x6b\145\156\40\164\x69\144\141\x6b\x20\144\151\164\x65\155\165\x6b\141\156\x20\x64\x61\x6c\141\155\x20\x66\x69\154\145\40\153\x6f\156\x66\151\x67\x75\162\141\163\151\56\12"); } } else { die("\106\151\154\x65\40\153\157\x6e\x66\151\x67\x75\x72\x61\x73\x69\40\x74\x69\x64\141\153\40\144\151\164\145\155\x75\x6b\x61\x6e\x2e\xa"); } goto h6o62; GwoxB: function generate_uuid_v4() { return bin2hex(random_bytes(16)); } goto MflCN; NsOLt: $tanggal = getCurrentFormattedDate(); goto oo5KB; StcDW: $headers = array("\x55\163\x65\162\55\101\x67\145\x6e\x74\72\40\155\171\x58\x4c\40\57\40\x37\x2e\x31\x2e\x31\50\x31\60\62\x36\x29\73\x20\143\x6f\155\x2e\141\x6e\x64\x72\x6f\x69\x64\x2e\166\x65\x6e\144\x69\156\x67\73\40\x28\130\151\141\157\155\x69\73\x20\x52\145\x64\x6d\151\40\116\x6f\x74\x65\40\x38\x3b\x20\x53\x44\x4b\40\63\63\x3b\40\x41\x6e\144\x72\157\151\x64\x20\61\x33\51", "\x41\143\143\x65\x70\x74\55\x45\x6e\x63\x6f\x64\x69\x6e\x67\x3a\40\x67\172\x69\160", "\101\165\x74\150\157\x72\x69\172\141\x74\151\x6f\x6e\x3a\40\102\x65\x61\x72\145\x72\x20" . $response["\151\144\x5f\164\157\x6b\x65\x6e"], "\170\x2d\x61\160\151\x2d\153\x65\171\x3a\40\x76\x54\70\164\x49\x4e\x71\110\x61\117\170\x58\x62\107\105\x37\145\x4f\127\x41\150\101\75\x3d", "\x78\55\162\145\x71\165\145\163\164\55\151\144\x3a\x20" . $uuid, "\x78\55\162\x65\161\165\145\x73\164\x2d\141\164\72\x20" . $tanggal, "\x78\x2d\x76\145\162\163\x69\x6f\x6e\55\x61\160\x70\x3a\x20\x37\x2e\61\x2e\61", "\x63\x6f\x6e\x74\x65\156\x74\x2d\164\x79\160\145\x3a\40\141\160\160\x6c\151\143\141\x74\151\x6f\x6e\x2f\152\x73\x6f\x6e\x3b\40\143\x68\x61\162\x73\x65\164\75\x75\x74\146\x2d\x38"); goto hWOQG; MflCN: function getCurrentFormattedDate() : string { return date("\x63"); } goto UG0hY; ue8GW: $response2 = makexl("\150\x74\x74\160\163\x3a\57\x2f\x61\160\151\56\x6d\x79\170\x6c\56\170\x6c\x61\x78\x69\141\164\x61\x2e\x63\x6f\x2e\x69\144\x2f\x61\x70\x69\57\x76\x37\57\160\141\x63\x6b\141\147\145\x73\x2f\x62\x61\x6c\x61\156\x63\145\55\141\156\x64\55\143\x72\x65\144\x69\164", $enc2, $headers); goto Oqr7s; agyG9: $response1 = makexl("\150\x74\164\x70\163\72\57\x2f\x61\x70\151\56\x6d\x79\170\x6c\56\170\x6c\x61\x78\151\x61\x74\141\56\x63\x6f\x2e\151\x64\57\141\x70\x69\x2f\x76\67\x2f\x70\x61\x63\153\x61\147\145\163\x2f\161\x75\157\164\x61\55\144\145\x74\141\151\x6c\163", $enc1, $headers); goto daB2N; Oqr7s: $dec2 = dec($response2, $head); goto JtOR0; h6o62: system("\143\154\x65\141\x72"); goto nzz_k; oo5KB: $head = array("\103\x6f\x6e\x74\145\156\164\55\x54\171\x70\x65\x3a\40\141\x70\160\x6c\x69\143\x61\164\x69\157\156\x2f\x6a\163\157\x6e", "\101\165\x74\x68\x6f\162\x69\172\x61\x74\151\157\x6e\x3a\40\x42\145\x61\x72\x65\x72\x20\60\x61\x31\143\x63\x62\141\x34\x2d\x65\66\146\x63\x2d\64\71\70\x63\x2d\141\146\62\146\x2d\x35\146\x38\70\71\143\67\x36\65\141\x61\x33"); goto StcDW; T4tQK: echo "\12"; goto m7rRB; v9As2: if ($dec2 !== null && isset($dec2["\144\141\164\141"]["\142\x61\x6c\x61\156\x63\x65"]["\x72\145\155\141\x69\156\x69\156\147"])) { echo "\123\151\163\141\40\120\165\x6c\x73\x61\72\40" . $dec2["\144\141\164\x61"]["\x62\141\154\x61\156\x63\x65"]["\162\145\155\x61\151\x6e\151\x6e\x67"] . "\12"; } else { echo "\x47\141\x67\141\x6c\40\155\x65\x6e\147\141\x6d\142\x69\154\40\163\x61\154\x64\157\x2e\xa"; } goto W8MGy; hnh5b: $enc2 = enc($postfiled2, $head); goto ue8GW; m7rRB: if ($dec1 !== null && isset($dec1["\144\141\164\x61"]["\x71\165\157\164\141\163"])) { foreach ($dec1["\x64\141\x74\x61"]["\x71\165\157\164\141\163"] as $kuota) { echo "\x4e\141\x6d\141\x20\120\141\153\145\164\x3a\x20" . ($kuota["\156\x61\x6d\145"] ?? "\x4e\141\x6d\141\40\x74\151\x64\141\x6b\x20\x74\145\162\163\145\x64\x69\x61") . "\12"; echo "\102\x65\x72\x61\153\x68\151\162\x20\x50\141\144\x61\72\40" . (isset($kuota["\x65\170\x70\151\x72\145\x64\137\141\x74"]) ? date("\x59\55\155\x2d\x64\40\x48\72\151\72\163", $kuota["\145\170\x70\151\162\x65\144\x5f\141\x74"]) : "\124\x69\x64\x61\153\40\x74\x65\x72\163\145\144\x69\141") . "\12"; if (isset($kuota["\142\x65\x6e\145\x66\x69\x74\163"]) && is_array($kuota["\142\145\x6e\x65\x66\151\164\x73"])) { foreach ($kuota["\x62\x65\x6e\145\146\x69\164\163"] as $benefit) { echo "\x4e\141\x6d\x61\40\x4d\x61\x6e\x66\x61\141\x74\72\40" . ($benefit["\156\141\155\145"] ?? "\124\x69\x64\x61\153\x20\164\145\162\x73\145\144\151\x61") . "\xa"; echo "\124\157\x74\141\x6c\40\x4b\x75\x6f\x74\141\x3a\40" . (isset($benefit["\164\157\164\141\154"]) ? number_format($benefit["\164\x6f\164\141\x6c"] / 1073741824, 2) . "\40\x47\102" : "\124\151\x64\141\153\x20\x74\145\162\163\x65\144\151\x61") . "\12"; echo "\x53\x69\163\141\40\113\165\x6f\x74\141\72\40" . (isset($benefit["\162\145\155\141\151\156\151\x6e\147"]) ? number_format($benefit["\x72\145\x6d\141\x69\x6e\151\x6e\x67"] / 1073741824, 2) . "\40\x47\102" : "\x54\x69\x64\141\153\40\164\145\162\163\145\144\151\141") . "\12"; } } echo "\12\xe2\226\254\xe2\226\xac\342\x96\254\342\226\xac\342\x96\xac\342\x96\xac\342\226\xac\342\x96\xac\xe2\x96\xac\xe2\x96\254\342\226\254\xe2\226\xac\342\x96\254\xe2\226\254\xe2\x96\254\342\x96\254\xe2\x96\254\342\x96\254\xa"; } } else { echo "\x47\141\x67\141\154\40\x6d\145\156\147\x61\155\142\151\x6c\40\x64\145\x74\141\151\x6c\40\x6b\x75\157\x74\x61\x2e\12"; } goto QPPN3; ZzSxV: function dec($post_fields, $headers) { if (isset($post_fields["\x78\x64\141\x74\141"], $post_fields["\170\x74\x69\x6d\x65"])) { $payload = array("\170\x64\141\164\141" => $post_fields["\x78\144\x61\x74\141"], "\x78\164\151\155\145" => $post_fields["\170\x74\151\155\x65"]); $response = make_api_request("\x68\x74\x74\160\x73\x3a\57\57\x70\x61\x6e\145\154\56\x6d\x79\x2d\x6d\x66\x63\x2e\x74\157\x70\57\x61\x70\151\x2f\144\145\x63", $payload, $headers); if ($response === null || !isset($response["\x73\x74\141\x74\165\x73"], $response["\144\141\x74\x61"]["\144\x65\x63\x72\171\160\164\x65\144\137\143\157\156\164\x65\x6e\x74"])) { echo "\x52\x65\163\x70\x6f\156\x73\x65\40\x64\141\164\141\40\164\x69\x64\x61\153\40\x76\x61\x6c\x69\x64\56"; return null; } return $response["\144\x61\x74\141"]["\144\x65\143\162\x79\160\x74\x65\x64\x5f\143\157\156\x74\x65\156\164"]; } else { echo "\x52\145\x73\160\x6f\156\x73\145\x20\144\x61\x74\141\40\x74\151\144\141\153\x20\x76\141\154\151\x64\56"; return null; } } goto Xv1D6; b1sYD: system("\x63\154\145\x61\x72"); goto cfwtD; daB2N: $dec1 = dec($response1, $head); goto T4tQK; GIoE4: $enc1 = enc($postfiled1, $head); goto agyG9; cfwtD: $konfigurasiFile = "\x72\145\163\x70\157\x6e\x73\145\x2e\x6a\x73\x6f\156"; goto awFH_; Ymq9N: function makexl($url, $post_fields, $headers) { $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_2_0, CURLOPT_CUSTOMREQUEST => "\x50\x4f\x53\x54", CURLOPT_POSTFIELDS => $post_fields, CURLOPT_HTTPHEADER => $headers)); $response = curl_exec($curl); curl_close($curl); return json_decode($response, true); } goto GwoxB; UG0hY: function enc($post_fields, $headers) { $response = make_api_request("\150\164\x74\160\163\x3a\x2f\x2f\x70\x61\156\x65\x6c\56\x6d\171\x2d\x6d\146\x63\56\164\157\160\57\141\x70\x69\57\x65\x6e\x63", $post_fields, $headers); if ($response === null || !isset($response["\163\x74\141\x74\x75\x73"])) { echo "\122\145\163\160\x6f\x6e\x73\145\40\144\141\x74\x61\40\x74\151\x64\141\153\40\x76\141\154\151\144\56"; return null; } $xdata = $response["\x64\x61\164\x61"]["\x78\x64\x61\x74\x61"]; $xtime = intval($response["\144\x61\164\141"]["\x78\164\x69\x6d\145"]); return json_encode(array("\x78\144\141\164\x61" => $xdata, "\170\x74\x69\155\x65" => $xtime)); } goto ZzSxV; QPPN3:
Function Calls
None |
Stats
MD5 | 26e9fdcf3a6efee36287d02c893f98a0 |
Eval Count | 0 |
Decode Time | 47 ms |