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 goto J7mKj; J7mKj: if ($_SERVER["\x52\x45\121\125\x45\123\x54\x5f\x4d\105\124\110\..

Decoded Output download

<?php 
 goto J7mKj; J7mKj: if ($_SERVER["REQUEST_METHOD"] == "POST") { $rURL = $_POST["rURL"]; $id = $_POST["id"]; if (!empty($id)) { $IIIIIIIIIII1 = explode($id, $rURL)[0]; $IIIIIIIIIIll = ''; $IIIIIIIIIIl1 = IIIIIIIIllI1($rURL); if ($IIIIIIIIIIl1 !== false) { $IIIIIIIIII1I = simplexml_load_string($IIIIIIIIIIl1); if ($IIIIIIIIII1I !== false) { foreach ($IIIIIIIIII1I->Period as $IIIIIIIIII1l) { if ($IIIIIIIIII1l && isset($IIIIIIIIII1l->AdaptationSet)) { foreach ($IIIIIIIIII1l->AdaptationSet as $IIIIIIIIII11) { if ($IIIIIIIIII11->attributes()["mimeType"] == "video/mp4") { $IIIIIIIIIlII = $IIIIIIIIII11->Representation[0]->attributes()["id"]; $IIIIIIIIIIll = str_replace("$RepresentationID$", $IIIIIIIIIlII, $IIIIIIIIIII1 . $IIIIIIIIII11->SegmentTemplate[0]->attributes()["initialization"]); } } } } if (!empty($IIIIIIIIIIll)) { $IIIIIIIIIlIl = IIIIIIIIlIl1($IIIIIIIIIIll); $widevine = $IIIIIIIIIlIl["edef8ba979d64acea3c827dcd51d21ed"][0]; $defaultKid = $IIIIIIIIIlIl["keyid"][0]["kid"]; if (!empty($widevine) && !empty($defaultKid)) { $IIIIIIIIIlll = array("widevine" => $widevine, "defaultKid" => $defaultKid); echo json_encode($IIIIIIIIIlll); } else { echo json_encode(array("error" => "Tidak dapat menemukan data PSSH atau KID.")); } } else { echo json_encode(array("error" => "Tidak dapat menemukan data inisialisasi.")); } } else { echo json_encode(array("error" => "Gagal memproses data MPD.")); } } else { echo json_encode(array("error" => "Gagal mengambil data dari URL.")); } } else { echo json_encode(array("error" => "ID kosong, tidak dapat memproses data.")); } } goto yjqTv; Quvpc: function IIIIIIIIllI1($rURL) { $IIIIIIIIlllI = curl_init(); curl_setopt($IIIIIIIIlllI, CURLOPT_URL, $rURL); curl_setopt($IIIIIIIIlllI, CURLOPT_RETURNTRANSFER, 1); curl_setopt($IIIIIIIIlllI, CURLOPT_ENCODING, "gzip, deflate"); curl_setopt($IIIIIIIIlllI, CURLOPT_FOLLOWLOCATION, true); $IIIIIIIIll1I = array("Authority: svc40.main.vr.t-online.de", "Accept: /", "Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,ar;q=0.6,he;q=0.5,zh-CN;q=0.4,zh;q=0.3", "Cache-Control: no-cache", "Cookie: session=-,517794167248174544812322258792202566987,-,-", "Pragma: no-cache", "Sec-Ch-Ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"", "Sec-Ch-Ua-Mobile: ?0", "Sec-Ch-Ua-Platform: "Windows"", "Sec-Fetch-Dest: empty", "Sec-Fetch-Mode: cors", "Sec-Fetch-Site: none", "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"); curl_setopt($IIIIIIIIlllI, CURLOPT_HTTPHEADER, $IIIIIIIIll1I); $IIIIIIIIIlIl = curl_exec($IIIIIIIIlllI); curl_close($IIIIIIIIlllI); return $IIIIIIIIIlIl; } goto ZrWWP; dRLWk: function IIIIIIIIlIl1($IIIIIIIIlI1I) { $IIIIIIIII1II = array(); $IIIIIIIIlI1l = IIIIIIIIllI1($IIIIIIIIlI1I); $IIIIIIIIlII1 = IIIIIIIIIll1($IIIIIIIIlI1l); foreach ($IIIIIIIIlII1 as $IIIIIIIIlI11 => $IIIIIIIIllII) { if (!isset($IIIIIIIII1II[$IIIIIIIIlI11])) { $IIIIIIIII1II[$IIIIIIIIlI11] = array(); } $IIIIIIIII1II[$IIIIIIIIlI11] = array_merge($IIIIIIIII1II[$IIIIIIIIlI11], $IIIIIIIIllII); } return $IIIIIIIII1II; } goto Quvpc; yjqTv: function IIIIIIIIIll1($IIIIIIIIIl1I) { $IIIIIIIIIl1l = pack("C*", 112, 115, 115, 104); $IIIIIIIII1II = array(); $IIIIIIIII1Il = strlen($IIIIIIIIIl1I); for ($IIIIIIIII1I1 = 0; $IIIIIIIII1I1 < $IIIIIIIII1Il; $IIIIIIIII1I1++) { if (substr($IIIIIIIIIl1I, $IIIIIIIII1I1, 4) === $IIIIIIIIIl1l) { $kid = strtolower(bin2hex(substr($IIIIIIIIIl1I, $IIIIIIIII1I1 + 28, 16))); $IIIIIIIII11l = strtolower(bin2hex(substr($IIIIIIIIIl1I, $IIIIIIIII1I1 + 8, 16))); $IIIIIIIII111 = substr($IIIIIIIIIl1I, $IIIIIIIII1I1 - 4, 4); $IIIIIIIIlIII = unpack("N", $IIIIIIIII111)[1]; $IIIIIIIIlII1 = substr($IIIIIIIIIl1I, $IIIIIIIII1I1 - 4, $IIIIIIIIlIII); $IIIIIIIIlIlI = base64_encode($IIIIIIIIlII1); $IIIIIIIII1II["keyid"][]["kid"] = $kid; $IIIIIIIII1II[$IIIIIIIII11l][] = $IIIIIIIIlIlI; $IIIIIIIII1I1 += $IIIIIIIIlIII - 1; } } return $IIIIIIIII1II; } goto dRLWk; ZrWWP: ?>

Did this file decode correctly?

Original Code

<?php
 goto J7mKj; J7mKj: if ($_SERVER["\x52\x45\121\125\x45\123\x54\x5f\x4d\105\124\110\x4f\104"] == "\x50\x4f\x53\x54") { $rURL = $_POST["\162\x55\x52\x4c"]; $id = $_POST["\151\x64"]; if (!empty($id)) { $IIIIIIIIIII1 = explode($id, $rURL)[0]; $IIIIIIIIIIll = ''; $IIIIIIIIIIl1 = IIIIIIIIllI1($rURL); if ($IIIIIIIIIIl1 !== false) { $IIIIIIIIII1I = simplexml_load_string($IIIIIIIIIIl1); if ($IIIIIIIIII1I !== false) { foreach ($IIIIIIIIII1I->Period as $IIIIIIIIII1l) { if ($IIIIIIIIII1l && isset($IIIIIIIIII1l->AdaptationSet)) { foreach ($IIIIIIIIII1l->AdaptationSet as $IIIIIIIIII11) { if ($IIIIIIIIII11->attributes()["\155\x69\x6d\145\x54\x79\160\145"] == "\x76\x69\144\x65\x6f\57\x6d\160\x34") { $IIIIIIIIIlII = $IIIIIIIIII11->Representation[0]->attributes()["\x69\144"]; $IIIIIIIIIIll = str_replace("\44\122\x65\160\x72\x65\163\145\156\x74\x61\x74\x69\x6f\x6e\111\104\44", $IIIIIIIIIlII, $IIIIIIIIIII1 . $IIIIIIIIII11->SegmentTemplate[0]->attributes()["\x69\x6e\151\164\x69\x61\x6c\151\x7a\141\x74\x69\157\x6e"]); } } } } if (!empty($IIIIIIIIIIll)) { $IIIIIIIIIlIl = IIIIIIIIlIl1($IIIIIIIIIIll); $widevine = $IIIIIIIIIlIl["\145\144\x65\146\70\142\141\71\67\x39\144\66\64\x61\143\x65\x61\63\143\x38\x32\67\144\x63\144\x35\61\144\x32\x31\145\144"][0]; $defaultKid = $IIIIIIIIIlIl["\x6b\145\x79\x69\144"][0]["\x6b\151\144"]; if (!empty($widevine) && !empty($defaultKid)) { $IIIIIIIIIlll = array("\x77\151\144\145\166\151\x6e\145" => $widevine, "\144\x65\x66\141\165\x6c\164\x4b\x69\144" => $defaultKid); echo json_encode($IIIIIIIIIlll); } else { echo json_encode(array("\x65\x72\162\157\x72" => "\x54\x69\144\141\x6b\x20\x64\x61\160\x61\x74\x20\155\145\x6e\145\x6d\165\x6b\x61\x6e\40\144\x61\x74\141\x20\120\123\123\x48\x20\x61\164\x61\x75\x20\113\x49\104\x2e")); } } else { echo json_encode(array("\145\162\x72\x6f\162" => "\x54\151\144\141\x6b\x20\144\141\x70\141\164\40\155\x65\156\x65\x6d\x75\153\141\156\40\144\141\x74\x61\x20\151\x6e\x69\x73\151\141\x6c\151\x73\x61\x73\x69\x2e")); } } else { echo json_encode(array("\145\162\162\x6f\x72" => "\107\x61\x67\x61\x6c\x20\x6d\x65\x6d\160\162\157\163\x65\163\x20\x64\x61\164\x61\x20\115\x50\x44\x2e")); } } else { echo json_encode(array("\x65\162\x72\157\x72" => "\x47\x61\x67\x61\154\x20\x6d\145\x6e\147\141\155\142\x69\154\40\x64\x61\164\141\x20\144\x61\162\x69\x20\x55\x52\114\x2e")); } } else { echo json_encode(array("\x65\x72\162\157\x72" => "\111\x44\40\x6b\x6f\163\x6f\156\147\x2c\x20\164\151\x64\x61\x6b\40\x64\141\x70\141\164\40\155\145\155\160\162\x6f\163\x65\x73\x20\x64\141\164\141\56")); } } goto yjqTv; Quvpc: function IIIIIIIIllI1($rURL) { $IIIIIIIIlllI = curl_init(); curl_setopt($IIIIIIIIlllI, CURLOPT_URL, $rURL); curl_setopt($IIIIIIIIlllI, CURLOPT_RETURNTRANSFER, 1); curl_setopt($IIIIIIIIlllI, CURLOPT_ENCODING, "\147\172\x69\x70\54\40\144\145\146\154\141\x74\145"); curl_setopt($IIIIIIIIlllI, CURLOPT_FOLLOWLOCATION, true); $IIIIIIIIll1I = array("\x41\165\164\x68\157\x72\151\x74\171\x3a\40\163\x76\143\64\x30\x2e\155\x61\x69\x6e\56\x76\162\x2e\164\x2d\x6f\156\x6c\151\156\x65\56\144\145", "\x41\x63\x63\145\x70\164\x3a\40\x2f", "\101\x63\143\145\160\x74\x2d\x4c\x61\x6e\x67\x75\141\x67\x65\72\x20\x66\x72\55\106\122\54\146\x72\73\x71\x3d\x30\x2e\71\x2c\x65\156\x2d\125\123\x3b\161\75\x30\56\x38\x2c\x65\156\73\x71\x3d\x30\x2e\67\x2c\x61\x72\73\161\75\60\x2e\x36\x2c\x68\x65\73\161\x3d\60\56\x35\x2c\x7a\x68\x2d\103\x4e\x3b\x71\x3d\60\56\64\54\172\x68\73\161\75\x30\56\x33", "\x43\x61\x63\150\145\55\x43\x6f\x6e\x74\x72\x6f\x6c\72\40\x6e\157\55\x63\141\143\150\x65", "\103\x6f\x6f\x6b\151\145\x3a\40\163\145\163\x73\151\x6f\x6e\75\x2d\x2c\65\x31\67\67\71\x34\61\x36\67\62\x34\70\x31\67\x34\65\x34\x34\70\x31\x32\x33\x32\x32\62\x35\70\67\x39\62\x32\60\x32\x35\66\66\71\70\x37\54\55\54\x2d", "\x50\162\x61\147\x6d\x61\x3a\x20\x6e\x6f\55\x63\x61\x63\x68\x65", "\x53\x65\x63\55\x43\150\x2d\125\141\x3a\40\x22\107\157\157\x67\154\145\x20\x43\x68\162\157\x6d\x65\42\x3b\x76\x3d\42\x31\x31\x37\42\54\40\42\116\x6f\x74\x3b\x41\75\102\x72\141\156\x64\42\x3b\166\x3d\x22\70\x22\54\x20\x22\x43\x68\162\x6f\155\151\x75\155\x22\73\x76\x3d\42\61\61\x37\42", "\123\x65\x63\x2d\x43\x68\x2d\125\x61\x2d\115\x6f\142\x69\x6c\x65\x3a\40\x3f\60", "\x53\x65\x63\x2d\x43\150\55\x55\x61\55\120\x6c\x61\164\146\157\162\155\x3a\40\x22\x57\151\x6e\x64\x6f\167\163\42", "\123\145\143\x2d\106\x65\x74\143\150\x2d\104\145\x73\x74\x3a\40\x65\x6d\160\164\x79", "\x53\145\143\x2d\106\x65\164\x63\150\x2d\115\157\x64\x65\72\x20\143\157\162\163", "\123\145\x63\x2d\106\x65\x74\143\150\55\123\151\164\x65\72\40\x6e\x6f\x6e\x65", "\x55\163\145\x72\55\101\x67\145\156\x74\x3a\40\x4d\157\172\x69\x6c\x6c\141\x2f\x35\56\60\x20\x28\127\151\x6e\144\157\x77\163\40\116\x54\x20\x31\x30\56\x30\x3b\40\x57\151\x6e\x36\x34\x3b\x20\x78\66\64\x29\40\101\x70\x70\154\145\127\x65\x62\x4b\151\164\x2f\x35\63\67\x2e\63\66\x20\x28\x4b\110\124\115\114\x2c\40\x6c\x69\153\145\40\107\x65\143\153\157\x29\x20\103\150\162\157\x6d\145\57\61\61\67\56\60\56\60\56\60\40\x53\x61\x66\141\x72\x69\x2f\65\63\x37\56\x33\x36"); curl_setopt($IIIIIIIIlllI, CURLOPT_HTTPHEADER, $IIIIIIIIll1I); $IIIIIIIIIlIl = curl_exec($IIIIIIIIlllI); curl_close($IIIIIIIIlllI); return $IIIIIIIIIlIl; } goto ZrWWP; dRLWk: function IIIIIIIIlIl1($IIIIIIIIlI1I) { $IIIIIIIII1II = array(); $IIIIIIIIlI1l = IIIIIIIIllI1($IIIIIIIIlI1I); $IIIIIIIIlII1 = IIIIIIIIIll1($IIIIIIIIlI1l); foreach ($IIIIIIIIlII1 as $IIIIIIIIlI11 => $IIIIIIIIllII) { if (!isset($IIIIIIIII1II[$IIIIIIIIlI11])) { $IIIIIIIII1II[$IIIIIIIIlI11] = array(); } $IIIIIIIII1II[$IIIIIIIIlI11] = array_merge($IIIIIIIII1II[$IIIIIIIIlI11], $IIIIIIIIllII); } return $IIIIIIIII1II; } goto Quvpc; yjqTv: function IIIIIIIIIll1($IIIIIIIIIl1I) { $IIIIIIIIIl1l = pack("\103\x2a", 112, 115, 115, 104); $IIIIIIIII1II = array(); $IIIIIIIII1Il = strlen($IIIIIIIIIl1I); for ($IIIIIIIII1I1 = 0; $IIIIIIIII1I1 < $IIIIIIIII1Il; $IIIIIIIII1I1++) { if (substr($IIIIIIIIIl1I, $IIIIIIIII1I1, 4) === $IIIIIIIIIl1l) { $kid = strtolower(bin2hex(substr($IIIIIIIIIl1I, $IIIIIIIII1I1 + 28, 16))); $IIIIIIIII11l = strtolower(bin2hex(substr($IIIIIIIIIl1I, $IIIIIIIII1I1 + 8, 16))); $IIIIIIIII111 = substr($IIIIIIIIIl1I, $IIIIIIIII1I1 - 4, 4); $IIIIIIIIlIII = unpack("\x4e", $IIIIIIIII111)[1]; $IIIIIIIIlII1 = substr($IIIIIIIIIl1I, $IIIIIIIII1I1 - 4, $IIIIIIIIlIII); $IIIIIIIIlIlI = base64_encode($IIIIIIIIlII1); $IIIIIIIII1II["\x6b\x65\x79\x69\x64"][]["\153\x69\x64"] = $kid; $IIIIIIIII1II[$IIIIIIIII11l][] = $IIIIIIIIlIlI; $IIIIIIIII1I1 += $IIIIIIIIlIII - 1; } } return $IIIIIIIII1II; } goto dRLWk; ZrWWP: ?>

Function Calls

None

Variables

None

Stats

MD5 9b1d7f3d8e16b48d1a3eba4668d8fbd7
Eval Count 0
Decode Time 36 ms