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 */ <? /* Decoded by unphp.net */ goto b1sYD; W8MGy: $..
Decoded Output download
/* Decoded by unphp.net */
<? /* 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 */
<? /* 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: ?>
Function Calls
None |
Stats
MD5 | dcf8549a33694e1fe5468d7d71fcace9 |
Eval Count | 0 |
Decode Time | 90 ms |