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 YfQYp; vDegL: curl_close($process); goto V7xW0; YfQYp: $id = $_REQUEST["\151\..

Decoded Output download

<?php 
 goto YfQYp; vDegL: curl_close($process); goto V7xW0; YfQYp: $id = $_REQUEST["id"]; goto wSNiN; yCFJd: curl_setopt($process, CURLOPT_TIMEOUT, 10); goto N7gUn; Mxtu3: curl_setopt($process, CURLOPT_HEADER, 0); goto M2qdY; mLMEp: curl_setopt($process, CURLOPT_TIMEOUT, 10); goto V9HYr; TNwVO: $sub_epid = $vUData["data"]["detail"]["entitlements"]["0"]; goto DQ_NB; EROT2: $sherposts = $jwtpay; goto ExW2N; bYOPj: curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1); goto D4B38; rdCYU: $sherheads = array("Accept-Language: en-US,en;q=0.9", "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36", "content-type: application/json", "kp: false", "locale: ENG", "platform: web", "profileId: " . $TPAUTH["profileID"], "Referer: https://watch.tataplay.com/", "x-device-id: " . "2fb796b4b525f53bd4b97e9d8da5ce5df8f51b6b", "x-device-platform: PC", "x-device-type: WEB", "x-subscriber-id: " . $TPAUTH["subscriberID"], "x-subscriber-name: " . $TPAUTH["subscriberNAME"], "Authorization: bearer " . $TPAUTH["access_token"], "Origin: https://watch.tataplay.com"); goto EROT2; Xl06V: $chnDlHeads = array("Accept-Language: en-US,en;q=0.9", "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36", "device_details: {"pl":"web","os":"WINDOWS","lo":"en-us","app":"1.36.63","dn":"PC","bv":104,"bn":"CHROME","device_id":"24662b4f995b7b3d348211c94fdaa080","device_type":"WEB","device_platform":"PC","device_category":"open","manufacturer":"WINDOWS_CHROME_104","model":"PC","sname":"" . $TPAUTH["subscriberNAME"] . ""}", "Referer: https://watch.tataplay.com/", "Origin: https://watch.tataplay.com", "Authorization: bearer " . $TPAUTH["access_token"], "profileId: " . $TPAUTH["profileID"], "platform: web", "locale: ENG", "kp: false"); goto BO7Gi; pOCya: $sherlocation = "https://tm.tapi.videoready.tv/auth-service/v1/oauth/token-service/token"; goto rdCYU; V7xW0: $vUData = @json_decode($chnOut, true); goto Auyby; ExW2N: $process = curl_init($sherlocation); goto ITbUo; ITbUo: curl_setopt($process, CURLOPT_POST, 1); goto aqlNM; pGeNB: $chnOut = curl_exec($process); goto vDegL; EtGrg: http_response_code(307); goto yw4fH; BO7Gi: $process = curl_init($chnDetailsAPI); goto iPOiH; JdQfj: $chnDetailsAPI = "https://kong-tatasky.videoready.tv/content-detail/pub/api/v1/channels/" . $id; goto Xl06V; dccT2: $TPAUTH = array("access_token" => $TATA_DATA["data"]["accessToken"], "refresh_token" => $TATA_DATA["data"]["refreshToken"], "subscriberID" => $TATA_DATA["data"]["userDetails"]["sid"], "subscriberRMN" => $TATA_DATA["data"]["userDetails"]["rmn"], "subscriberNAME" => $TATA_DATA["data"]["userDetails"]["sName"], "profileID" => $TATA_DATA["data"]["userProfile"]["id"], "deviceName" => $TATA_DATA["data"]["deviceDetails"]["deviceName"], "entitlements" => $TATA_DATA["data"]["userDetails"]["entitlements"]); goto JdQfj; VzG9D: $licurl = $widevine . "&" . $ls_session; goto EtGrg; Pq7_Y: $getUData = @file_get_contents("secure/_sessionData"); goto FhEIl; aqlNM: curl_setopt($process, CURLOPT_POSTFIELDS, $sherposts); goto urT6h; FrEPd: $mksaz = @json_decode($vrswvx, true); goto BQ4y0; vsy3C: curl_close($process); goto FrEPd; yw4fH: header("Location: {$licurl}"); goto uLmQ3; KclwM: curl_setopt($process, CURLOPT_HEADER, 0); goto mLMEp; BQ4y0: $ls_session = "ls_session=" . $mksaz["data"]["token"]; goto VzG9D; V9HYr: curl_setopt($process, CURLOPT_RETURNTRANSFER, 1); goto z21MV; KFhup: $mpd = $vUData["data"]["detail"]["dashWidewinePlayUrl"]; goto TNwVO; FhEIl: $decUData = secure_values("decrypt", $getUData); goto esCsA; DQ_NB: $jwtpay = "{"action":"stream","epids":[{"epid":"Free","bid":"{$sub_epid}"}]}"; goto pOCya; D4B38: $vrswvx = curl_exec($process); goto vsy3C; z21MV: curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1); goto pGeNB; iPOiH: curl_setopt($process, CURLOPT_CUSTOMREQUEST, "GET"); goto fhdHI; urT6h: curl_setopt($process, CURLOPT_HTTPHEADER, $sherheads); goto Mxtu3; esCsA: $TATA_DATA = @json_decode($decUData, true); goto dccT2; Auyby: $widevine = $vUData["data"]["detail"]["dashWidewineLicenseUrl"]; goto KFhup; uLmQ3: die; goto hUAKe; N7gUn: curl_setopt($process, CURLOPT_RETURNTRANSFER, 1); goto bYOPj; fhdHI: curl_setopt($process, CURLOPT_HTTPHEADER, $chnDlHeads); goto KclwM; wSNiN: function secure_values($action, $data) { $protec = ''; $method = "AES-128-CBC"; $ky = "joincodecrafters"; $iv = substr(sha1($ky . "coolapps" . "24662b4f995b7b3d348211c94fdaa080"), 0, 16); if ($action == "encrypt") { $encrypted = openssl_encrypt($data, $method, $ky, OPENSSL_RAW_DATA, $iv); if (!empty($encrypted)) { $protec = bin2hex($encrypted); } } else { $decrypted = openssl_decrypt(hex2bin($data), $method, $ky, OPENSSL_RAW_DATA, $iv); if (!empty($decrypted)) { $protec = $decrypted; } } return $protec; } goto Pq7_Y; M2qdY: curl_setopt($process, CURLOPT_ENCODING, ''); goto yCFJd; hUAKe: ?>

Did this file decode correctly?

Original Code

<?php
 goto YfQYp; vDegL: curl_close($process); goto V7xW0; YfQYp: $id = $_REQUEST["\151\x64"]; goto wSNiN; yCFJd: curl_setopt($process, CURLOPT_TIMEOUT, 10); goto N7gUn; Mxtu3: curl_setopt($process, CURLOPT_HEADER, 0); goto M2qdY; mLMEp: curl_setopt($process, CURLOPT_TIMEOUT, 10); goto V9HYr; TNwVO: $sub_epid = $vUData["\x64\141\164\x61"]["\144\145\164\141\151\x6c"]["\145\x6e\x74\x69\x74\154\x65\x6d\145\x6e\x74\163"]["\x30"]; goto DQ_NB; EROT2: $sherposts = $jwtpay; goto ExW2N; bYOPj: curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1); goto D4B38; rdCYU: $sherheads = array("\101\143\x63\145\160\x74\x2d\114\141\156\x67\165\x61\x67\145\72\x20\145\x6e\55\125\x53\54\x65\156\x3b\161\x3d\60\x2e\71", "\125\163\x65\162\55\x41\x67\x65\x6e\x74\x3a\x20\x4d\x6f\x7a\x69\154\154\x61\x2f\x35\56\60\x20\x28\x57\x69\156\x64\157\167\x73\40\x4e\x54\x20\61\x30\56\60\73\40\127\x69\156\x36\64\73\40\x78\x36\x34\x29\x20\x41\x70\160\154\145\127\x65\x62\113\x69\164\x2f\x35\63\x37\x2e\63\66\x20\x28\113\110\124\115\114\54\40\154\x69\x6b\x65\40\107\x65\143\x6b\157\51\40\103\150\162\x6f\x6d\145\57\61\60\64\56\x30\x2e\x30\x2e\60\40\123\141\146\141\x72\151\57\x35\x33\x37\x2e\63\x36", "\x63\x6f\156\164\145\156\164\55\x74\171\x70\145\72\x20\141\x70\x70\x6c\151\143\141\164\x69\157\156\57\x6a\x73\157\156", "\153\x70\72\40\x66\x61\154\163\145", "\x6c\157\143\141\x6c\x65\x3a\40\105\116\x47", "\160\x6c\141\x74\146\157\x72\155\x3a\40\167\x65\x62", "\x70\x72\x6f\146\151\x6c\x65\111\x64\x3a\40" . $TPAUTH["\x70\162\157\x66\151\154\145\111\x44"], "\122\x65\146\145\162\x65\162\72\40\x68\164\x74\160\x73\x3a\x2f\57\x77\141\x74\x63\x68\56\x74\x61\x74\141\160\x6c\141\x79\x2e\143\157\x6d\57", "\x78\x2d\x64\145\x76\151\x63\145\55\151\x64\72\x20" . "\62\x66\x62\x37\x39\66\x62\x34\142\x35\x32\65\146\x35\63\142\x64\x34\x62\71\x37\145\71\x64\70\x64\x61\65\143\145\x35\x64\146\x38\x66\65\61\x62\x36\142", "\x78\55\x64\145\166\151\143\x65\x2d\160\x6c\141\x74\x66\x6f\162\x6d\x3a\40\x50\x43", "\x78\55\144\145\166\151\x63\145\x2d\164\x79\160\x65\72\x20\127\105\x42", "\x78\55\x73\x75\x62\x73\143\x72\x69\142\x65\x72\x2d\x69\x64\x3a\x20" . $TPAUTH["\x73\x75\x62\x73\x63\162\151\142\145\x72\x49\x44"], "\170\x2d\x73\x75\x62\x73\x63\162\x69\x62\x65\x72\55\x6e\x61\x6d\x65\x3a\40" . $TPAUTH["\x73\x75\142\x73\x63\x72\x69\142\145\162\x4e\x41\115\x45"], "\101\165\x74\150\x6f\x72\x69\172\x61\164\151\x6f\x6e\x3a\x20\142\x65\x61\162\x65\162\x20" . $TPAUTH["\x61\143\x63\145\163\163\x5f\x74\157\x6b\x65\156"], "\x4f\162\151\x67\x69\x6e\x3a\x20\x68\164\x74\x70\x73\72\57\57\167\141\x74\x63\x68\x2e\x74\x61\164\x61\x70\154\x61\171\x2e\x63\x6f\x6d"); goto EROT2; Xl06V: $chnDlHeads = array("\x41\143\x63\145\160\x74\55\114\x61\x6e\147\x75\x61\x67\145\72\40\145\x6e\x2d\x55\123\x2c\145\x6e\73\161\75\60\x2e\71", "\x55\163\145\x72\x2d\101\147\x65\156\164\x3a\x20\115\x6f\x7a\x69\154\x6c\x61\x2f\65\x2e\x30\x20\50\127\151\x6e\144\x6f\167\x73\40\x4e\124\40\61\x30\x2e\60\73\40\x57\x69\156\x36\64\73\x20\x78\66\x34\x29\40\101\160\x70\154\145\127\145\x62\x4b\x69\x74\57\x35\63\x37\x2e\x33\66\40\x28\113\110\124\x4d\114\54\x20\x6c\151\x6b\x65\40\107\x65\x63\x6b\157\51\40\x43\x68\162\x6f\x6d\145\57\x31\60\64\x2e\60\x2e\x30\56\60\x20\x53\141\146\141\162\151\57\x35\63\x37\x2e\x33\66", "\x64\x65\x76\151\x63\x65\137\x64\x65\x74\x61\151\x6c\163\x3a\40\x7b\x22\x70\x6c\42\72\x22\167\x65\142\42\x2c\42\x6f\x73\x22\72\x22\127\x49\x4e\104\117\x57\x53\x22\54\42\154\157\x22\72\x22\145\156\x2d\165\x73\42\x2c\42\x61\160\x70\42\72\42\61\x2e\63\x36\x2e\x36\x33\42\x2c\x22\144\156\42\x3a\42\x50\x43\42\x2c\x22\x62\x76\x22\x3a\61\60\64\x2c\42\x62\x6e\x22\72\42\x43\110\122\x4f\x4d\105\x22\54\42\x64\x65\166\x69\x63\x65\x5f\x69\144\42\72\x22\62\x34\66\66\62\142\x34\146\x39\71\65\142\67\x62\63\x64\x33\x34\x38\x32\x31\61\x63\x39\64\x66\x64\141\141\60\x38\x30\x22\54\42\x64\145\166\151\143\x65\137\x74\171\160\145\42\x3a\x22\127\x45\x42\42\x2c\42\144\145\166\x69\143\x65\x5f\x70\x6c\141\x74\146\157\162\x6d\42\72\42\x50\103\x22\54\x22\x64\x65\166\x69\143\x65\137\x63\x61\x74\x65\147\x6f\162\x79\42\x3a\42\x6f\160\145\156\x22\x2c\x22\x6d\x61\156\165\146\x61\x63\x74\x75\x72\145\162\x22\x3a\x22\x57\x49\116\104\x4f\x57\123\x5f\103\x48\122\x4f\115\x45\x5f\x31\60\64\x22\x2c\42\x6d\157\x64\x65\154\x22\x3a\x22\120\x43\42\x2c\x22\x73\156\x61\155\145\42\x3a\42" . $TPAUTH["\x73\x75\x62\163\x63\162\x69\x62\x65\x72\x4e\101\115\105"] . "\x22\175", "\122\145\x66\x65\162\x65\162\x3a\40\x68\x74\164\x70\163\72\57\57\167\141\x74\x63\x68\56\164\141\x74\x61\160\154\x61\x79\56\x63\157\155\57", "\x4f\x72\x69\x67\151\156\x3a\40\150\x74\x74\x70\x73\x3a\x2f\x2f\167\x61\164\x63\x68\x2e\x74\141\x74\x61\x70\154\x61\x79\x2e\143\x6f\x6d", "\x41\165\x74\150\157\x72\151\172\x61\x74\x69\x6f\x6e\x3a\x20\142\x65\x61\x72\x65\162\40" . $TPAUTH["\x61\143\143\145\163\x73\x5f\164\157\x6b\145\x6e"], "\x70\162\x6f\x66\x69\x6c\x65\111\x64\x3a\40" . $TPAUTH["\160\162\x6f\x66\151\154\145\x49\x44"], "\x70\x6c\x61\x74\146\157\162\155\x3a\x20\x77\145\x62", "\x6c\x6f\143\x61\154\145\72\x20\x45\x4e\107", "\153\x70\x3a\x20\146\141\x6c\163\x65"); goto BO7Gi; pOCya: $sherlocation = "\x68\x74\x74\x70\x73\x3a\57\57\x74\x6d\x2e\164\141\x70\151\x2e\166\x69\144\x65\x6f\x72\x65\x61\144\x79\x2e\164\x76\x2f\x61\165\x74\150\55\x73\145\x72\x76\151\x63\145\57\x76\x31\57\x6f\x61\165\x74\x68\x2f\x74\x6f\153\x65\156\55\x73\145\162\x76\x69\x63\x65\x2f\164\157\153\145\156"; goto rdCYU; V7xW0: $vUData = @json_decode($chnOut, true); goto Auyby; ExW2N: $process = curl_init($sherlocation); goto ITbUo; ITbUo: curl_setopt($process, CURLOPT_POST, 1); goto aqlNM; pGeNB: $chnOut = curl_exec($process); goto vDegL; EtGrg: http_response_code(307); goto yw4fH; BO7Gi: $process = curl_init($chnDetailsAPI); goto iPOiH; JdQfj: $chnDetailsAPI = "\x68\164\164\x70\163\72\57\57\153\x6f\156\x67\55\164\141\164\141\163\x6b\171\x2e\x76\x69\144\x65\x6f\x72\x65\x61\x64\171\56\x74\x76\x2f\x63\157\x6e\164\145\x6e\x74\55\x64\x65\164\141\151\x6c\57\160\x75\x62\x2f\141\x70\x69\x2f\166\61\x2f\x63\150\141\x6e\x6e\x65\154\x73\x2f" . $id; goto Xl06V; dccT2: $TPAUTH = array("\141\x63\143\x65\x73\x73\137\x74\157\153\145\x6e" => $TATA_DATA["\144\141\x74\x61"]["\141\x63\x63\x65\163\x73\124\157\x6b\145\156"], "\x72\145\x66\x72\145\163\x68\x5f\164\x6f\153\x65\x6e" => $TATA_DATA["\144\141\164\141"]["\162\145\x66\162\x65\163\150\124\x6f\x6b\x65\156"], "\x73\x75\x62\x73\143\162\x69\x62\x65\x72\x49\x44" => $TATA_DATA["\144\x61\164\x61"]["\x75\x73\x65\162\104\x65\x74\x61\x69\154\163"]["\163\x69\144"], "\x73\165\x62\x73\143\x72\151\x62\x65\162\122\x4d\116" => $TATA_DATA["\144\141\164\x61"]["\x75\163\145\x72\104\145\x74\141\151\154\x73"]["\x72\x6d\156"], "\x73\165\x62\x73\x63\x72\x69\142\x65\162\x4e\x41\x4d\x45" => $TATA_DATA["\x64\x61\164\x61"]["\x75\x73\145\x72\x44\145\164\141\151\x6c\163"]["\x73\116\x61\x6d\x65"], "\160\162\x6f\146\151\154\145\x49\104" => $TATA_DATA["\144\x61\x74\x61"]["\165\163\145\x72\120\x72\x6f\146\x69\154\x65"]["\151\x64"], "\x64\x65\166\x69\143\145\x4e\x61\155\x65" => $TATA_DATA["\144\141\x74\x61"]["\x64\x65\x76\151\x63\145\x44\145\x74\141\x69\154\163"]["\144\x65\x76\151\143\145\x4e\141\155\x65"], "\x65\156\164\151\164\154\145\155\x65\156\164\163" => $TATA_DATA["\x64\x61\x74\141"]["\x75\x73\145\x72\x44\145\164\x61\x69\154\x73"]["\145\156\x74\151\164\x6c\145\x6d\x65\156\x74\163"]); goto JdQfj; VzG9D: $licurl = $widevine . "\x26" . $ls_session; goto EtGrg; Pq7_Y: $getUData = @file_get_contents("\x73\x65\x63\165\x72\x65\x2f\x5f\x73\x65\163\163\x69\x6f\156\x44\x61\x74\x61"); goto FhEIl; aqlNM: curl_setopt($process, CURLOPT_POSTFIELDS, $sherposts); goto urT6h; FrEPd: $mksaz = @json_decode($vrswvx, true); goto BQ4y0; vsy3C: curl_close($process); goto FrEPd; yw4fH: header("\x4c\x6f\143\x61\164\x69\x6f\156\72\40{$licurl}"); goto uLmQ3; KclwM: curl_setopt($process, CURLOPT_HEADER, 0); goto mLMEp; BQ4y0: $ls_session = "\154\x73\x5f\163\145\x73\163\x69\x6f\156\x3d" . $mksaz["\144\141\x74\141"]["\164\x6f\x6b\145\156"]; goto VzG9D; V9HYr: curl_setopt($process, CURLOPT_RETURNTRANSFER, 1); goto z21MV; KFhup: $mpd = $vUData["\x64\141\x74\141"]["\144\x65\164\141\151\x6c"]["\144\x61\163\150\127\x69\144\x65\167\151\156\145\120\154\141\x79\x55\162\x6c"]; goto TNwVO; FhEIl: $decUData = secure_values("\x64\x65\143\162\171\x70\x74", $getUData); goto esCsA; DQ_NB: $jwtpay = "\173\x22\x61\143\164\151\x6f\156\42\x3a\42\163\164\162\x65\141\x6d\42\54\42\x65\160\x69\x64\163\42\x3a\133\173\x22\145\160\x69\144\42\72\42\106\162\x65\x65\42\x2c\42\x62\x69\x64\42\x3a\x22{$sub_epid}\x22\175\x5d\x7d"; goto pOCya; D4B38: $vrswvx = curl_exec($process); goto vsy3C; z21MV: curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1); goto pGeNB; iPOiH: curl_setopt($process, CURLOPT_CUSTOMREQUEST, "\x47\105\x54"); goto fhdHI; urT6h: curl_setopt($process, CURLOPT_HTTPHEADER, $sherheads); goto Mxtu3; esCsA: $TATA_DATA = @json_decode($decUData, true); goto dccT2; Auyby: $widevine = $vUData["\144\x61\164\141"]["\x64\145\164\x61\x69\154"]["\144\141\x73\150\x57\x69\144\x65\167\x69\156\145\x4c\x69\x63\145\x6e\163\145\125\x72\154"]; goto KFhup; uLmQ3: die; goto hUAKe; N7gUn: curl_setopt($process, CURLOPT_RETURNTRANSFER, 1); goto bYOPj; fhdHI: curl_setopt($process, CURLOPT_HTTPHEADER, $chnDlHeads); goto KclwM; wSNiN: function secure_values($action, $data) { $protec = ''; $method = "\101\x45\123\x2d\61\62\x38\x2d\103\102\x43"; $ky = "\x6a\157\x69\x6e\143\157\x64\x65\x63\x72\141\146\x74\x65\162\163"; $iv = substr(sha1($ky . "\143\x6f\x6f\x6c\141\x70\160\x73" . "\x32\x34\66\66\x32\142\x34\x66\x39\71\x35\x62\67\142\63\144\x33\64\70\x32\x31\x31\x63\71\x34\146\x64\141\x61\60\70\x30"), 0, 16); if ($action == "\145\156\143\x72\171\x70\164") { $encrypted = openssl_encrypt($data, $method, $ky, OPENSSL_RAW_DATA, $iv); if (!empty($encrypted)) { $protec = bin2hex($encrypted); } } else { $decrypted = openssl_decrypt(hex2bin($data), $method, $ky, OPENSSL_RAW_DATA, $iv); if (!empty($decrypted)) { $protec = $decrypted; } } return $protec; } goto Pq7_Y; M2qdY: curl_setopt($process, CURLOPT_ENCODING, ''); goto yCFJd; hUAKe: ?>

Function Calls

None

Variables

None

Stats

MD5 6ddbedc221f76a2301cd98365103e85e
Eval Count 0
Decode Time 50 ms