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 /* __________________________________________________ | Obfuscated by YAK P..

Decoded Output download

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  | 
    |              on 2023-09-25 01:13:55              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
 namespace GDPlayer; class FileStream { protected $file = ''; protected $fileSize = ''; protected $isNotFound = false; public function __construct($file = null) { goto T_D_B0zONK5W3Do7; Xf099_qaRzQSK5k2: $this->file = $file; goto hNTK0z4KNxI4MSvY; QL4zflMT9DWpUgiI: session_write_close(); goto NrbNB9pvaIiJMxY2; vcBU9UWvTF_O7DEI: hdFycmKXaAvV5rQI: goto FwSTRjEt7mIC2JrS; fJ9cHps_550crrXD: header("Accept-Ranges: bytes", true); goto xOZ_s3qFkRkzvOyP; fqb7os6F1jHeP3X1: if (!ob_get_status()) { goto hdFycmKXaAvV5rQI; } goto QL4zflMT9DWpUgiI; Xu4bJFUjff4AItiy: ufXXpiuPs1UaMhla: goto zvuEUkyDBg2eq1hy; ZR6zlADoxQ4WLxeB: header_remove("Connection"); goto fJ9cHps_550crrXD; FwSTRjEt7mIC2JrS: ob_start(); goto ZR6zlADoxQ4WLxeB; eFvyFHmS6U4erqNp: if (is_file($file)) { goto TYCnLIYrG6Z7K2KT; } goto hZgrJPldcbyklpMx; hZgrJPldcbyklpMx: session_write_close(); goto oQI6BmDdrNBqM2gW; oQI6BmDdrNBqM2gW: $this->isNotFound = true; goto x3u2X2syKTuprITH; SvFKzn2ah7L1bjS0: header("Cache-Control: private", true); goto Xu4bJFUjff4AItiy; T_D_B0zONK5W3Do7: session_write_close(); goto fqb7os6F1jHeP3X1; hNTK0z4KNxI4MSvY: $this->fileSize = filesize($file); goto SvFKzn2ah7L1bjS0; xOZ_s3qFkRkzvOyP: header("Connection: close", true); goto YB4ZBVUmM2LGE5Ve; x3u2X2syKTuprITH: goto ufXXpiuPs1UaMhla; goto BLVFu2OwpYsnyf_q; NrbNB9pvaIiJMxY2: ob_end_clean(); goto vcBU9UWvTF_O7DEI; YB4ZBVUmM2LGE5Ve: header("Content-Type: video/mp4", true); goto eFvyFHmS6U4erqNp; l8q3CxmOvz9rPTWL: session_write_close(); goto Xf099_qaRzQSK5k2; BLVFu2OwpYsnyf_q: TYCnLIYrG6Z7K2KT: goto l8q3CxmOvz9rPTWL; zvuEUkyDBg2eq1hy: } private function getRange() { goto g09LFDMOl5qN3VbU; eqNw_dwbhYwpAXBK: if (!empty($_SERVER["HTTP_RANGE"])) { goto Pw8RwNRsUh9dzU82; } goto eu6VnTbIExNGVeJi; spG0rmmm2jOPnd_S: $start = 0; goto eh2sPDbnMasrK_rA; enWZPMSpUZ9N60b6: $end = $this->fileSize - 1; goto h_joKXBstmdmCO8m; hCKab3Mu38fbGOQr: sC7iDYkBni1lHBU3: goto an7GAi12yFjMgAUH; Sh2JQ_P0_hkpHKU6: Pw8RwNRsUh9dzU82: goto m0tMHYyZz8sQggH3; vZn8A6NjAPkjKKPP: if (!($end <= 0)) { goto m83ggVbuTeOQCpbI; } goto j8dVV1PmOHN4nC1C; an7GAi12yFjMgAUH: return [$start, $end]; goto dsblmynVSe6K2DMP; WPEScnHI_cw1OguW: http_response_code(206); goto zB3Vlq_EIGHfXi60; tmAVRm08M16hFmlq: http_response_code(200); goto rRbuRZRvYWP6JXsW; eu6VnTbIExNGVeJi: session_write_close(); goto tmAVRm08M16hFmlq; eh2sPDbnMasrK_rA: $end = 0; goto eqNw_dwbhYwpAXBK; m0tMHYyZz8sQggH3: session_write_close(); goto WPEScnHI_cw1OguW; rRbuRZRvYWP6JXsW: $end = $this->fileSize - 1; goto J3L1BpcWUGt3MMV1; zB3Vlq_EIGHfXi60: list($start, $end) = array_map("intval", array_pad(explode("-", strtr($_SERVER["HTTP_RANGE"], ["bytes=" => ''])), 2, 0)); goto vZn8A6NjAPkjKKPP; h_joKXBstmdmCO8m: m83ggVbuTeOQCpbI: goto hCKab3Mu38fbGOQr; g09LFDMOl5qN3VbU: session_write_close(); goto spG0rmmm2jOPnd_S; J3L1BpcWUGt3MMV1: goto sC7iDYkBni1lHBU3; goto Sh2JQ_P0_hkpHKU6; j8dVV1PmOHN4nC1C: session_write_close(); goto enWZPMSpUZ9N60b6; dsblmynVSe6K2DMP: } public function mp4Stream() { goto yXi1YhyQmQ1bCRa6; PI2dyZO3d8Sf_GJa: if ($fp) { goto YV_RUReTkt4bAOgm; } goto qvTaNiJdVZeq9ayc; aa7YQhBR8fLj_kaS: r3huSgrFN6RJ7b53: goto cA2NoZXvGtviRp_a; q1WiwpRQBP1CCCAO: fseek($fp, $start); goto DFXGNqrOn4uu9IKH; NeJObqjlfVZGi3Pp: AU60_N5FEKwca2hA: goto a7opQw_DV7Ulr7cm; E5nFpAxTL5Xa0jOE: header("Content-Length: " . $length); goto S_W0JoAJWKkVtmZ9; HpYRzPRCMl6zW_eU: if (!(!feof($fp) && $start <= $end)) { goto oXmjw0aky00f2G6I; } goto ORdD9hMOqjYq_A6O; ORdD9hMOqjYq_A6O: session_write_close(); goto anmAHJ3vw7MEZdKZ; oWvSEbTLS2MdLKS8: goto LJ3fqtZ33nyrRi_v; goto RBWoAbeVgV3Rc32N; O6Hjlhu4oE6tBzYD: $length = $this->fileSize - $start; goto INrJByEcL_WjplfD; x1ECjm8RGKm4x054: if ($this->isNotFound) { goto AU60_N5FEKwca2hA; } goto kjBzztcsBIFKDJuj; tAmcAOMKWHTm3JuW: echo "Page not found"; goto aa7YQhBR8fLj_kaS; kjBzztcsBIFKDJuj: list($start, $end) = $this->getRange(); goto O6Hjlhu4oE6tBzYD; S_W0JoAJWKkVtmZ9: open_resources_handler(); goto akHditWoWEjVaws0; qvTaNiJdVZeq9ayc: session_write_close(); goto ADtdqyAjLSYyw2uO; eCJUdwyJjGnCUkgb: goto TZ0Nxa3C_jLC0q9v; goto pmxTIaGUKNnqFDKF; INrJByEcL_WjplfD: header("Content-Range: " . sprintf("bytes %d-%d/%d", $start, $end, $this->fileSize)); goto E5nFpAxTL5Xa0jOE; Nv41D9hQ2XR4ibFP: echo "Service unavailable"; goto oWvSEbTLS2MdLKS8; yXi1YhyQmQ1bCRa6: session_write_close(); goto x1ECjm8RGKm4x054; exCPU10J1YUM7CaF: LJ3fqtZ33nyrRi_v: goto fpvllt1U6CcB61y9; fpvllt1U6CcB61y9: goto r3huSgrFN6RJ7b53; goto NeJObqjlfVZGi3Pp; pmxTIaGUKNnqFDKF: oXmjw0aky00f2G6I: goto QE_3RzWerNOmjogV; RBWoAbeVgV3Rc32N: YV_RUReTkt4bAOgm: goto oAw77FMaC1Df0dSR; DFXGNqrOn4uu9IKH: TZ0Nxa3C_jLC0q9v: goto HpYRzPRCMl6zW_eU; oAw77FMaC1Df0dSR: session_write_close(); goto G9pZpaj2DQ9sqfxv; G9pZpaj2DQ9sqfxv: stream_set_blocking($fp, false); goto q1WiwpRQBP1CCCAO; anmAHJ3vw7MEZdKZ: echo fread($fp, 1048576); goto sMiGIC0DGXRwyNAN; QE_3RzWerNOmjogV: fclose($fp); goto exCPU10J1YUM7CaF; a7opQw_DV7Ulr7cm: session_write_close(); goto EETiygwOJbEmYN3S; ADtdqyAjLSYyw2uO: http_response_code(503); goto Nv41D9hQ2XR4ibFP; ImgkiuIlme0C08Lq: flush(); goto eCJUdwyJjGnCUkgb; sMiGIC0DGXRwyNAN: ob_flush(); goto ImgkiuIlme0C08Lq; akHditWoWEjVaws0: $fp = @fopen($this->file, "rb"); goto PI2dyZO3d8Sf_GJa; EETiygwOJbEmYN3S: http_response_code(404); goto tAmcAOMKWHTm3JuW; cA2NoZXvGtviRp_a: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2023-09-25 01:13:55              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 namespace GDPlayer; class FileStream { protected $file = ''; protected $fileSize = ''; protected $isNotFound = false; public function __construct($file = null) { goto T_D_B0zONK5W3Do7; Xf099_qaRzQSK5k2: $this->file = $file; goto hNTK0z4KNxI4MSvY; QL4zflMT9DWpUgiI: session_write_close(); goto NrbNB9pvaIiJMxY2; vcBU9UWvTF_O7DEI: hdFycmKXaAvV5rQI: goto FwSTRjEt7mIC2JrS; fJ9cHps_550crrXD: header("\x41\143\143\145\x70\x74\55\x52\x61\x6e\x67\145\163\72\40\142\x79\x74\x65\x73", true); goto xOZ_s3qFkRkzvOyP; fqb7os6F1jHeP3X1: if (!ob_get_status()) { goto hdFycmKXaAvV5rQI; } goto QL4zflMT9DWpUgiI; Xu4bJFUjff4AItiy: ufXXpiuPs1UaMhla: goto zvuEUkyDBg2eq1hy; ZR6zlADoxQ4WLxeB: header_remove("\103\x6f\x6e\x6e\x65\143\164\x69\157\156"); goto fJ9cHps_550crrXD; FwSTRjEt7mIC2JrS: ob_start(); goto ZR6zlADoxQ4WLxeB; eFvyFHmS6U4erqNp: if (is_file($file)) { goto TYCnLIYrG6Z7K2KT; } goto hZgrJPldcbyklpMx; hZgrJPldcbyklpMx: session_write_close(); goto oQI6BmDdrNBqM2gW; oQI6BmDdrNBqM2gW: $this->isNotFound = true; goto x3u2X2syKTuprITH; SvFKzn2ah7L1bjS0: header("\x43\x61\143\150\x65\55\103\x6f\156\x74\162\157\154\72\40\160\162\151\166\x61\164\x65", true); goto Xu4bJFUjff4AItiy; T_D_B0zONK5W3Do7: session_write_close(); goto fqb7os6F1jHeP3X1; hNTK0z4KNxI4MSvY: $this->fileSize = filesize($file); goto SvFKzn2ah7L1bjS0; xOZ_s3qFkRkzvOyP: header("\x43\157\x6e\156\x65\143\x74\x69\157\156\x3a\x20\x63\x6c\157\163\145", true); goto YB4ZBVUmM2LGE5Ve; x3u2X2syKTuprITH: goto ufXXpiuPs1UaMhla; goto BLVFu2OwpYsnyf_q; NrbNB9pvaIiJMxY2: ob_end_clean(); goto vcBU9UWvTF_O7DEI; YB4ZBVUmM2LGE5Ve: header("\x43\157\x6e\164\145\x6e\x74\55\124\171\160\x65\72\x20\166\151\x64\x65\157\x2f\x6d\x70\x34", true); goto eFvyFHmS6U4erqNp; l8q3CxmOvz9rPTWL: session_write_close(); goto Xf099_qaRzQSK5k2; BLVFu2OwpYsnyf_q: TYCnLIYrG6Z7K2KT: goto l8q3CxmOvz9rPTWL; zvuEUkyDBg2eq1hy: } private function getRange() { goto g09LFDMOl5qN3VbU; eqNw_dwbhYwpAXBK: if (!empty($_SERVER["\110\x54\x54\120\137\x52\101\116\x47\105"])) { goto Pw8RwNRsUh9dzU82; } goto eu6VnTbIExNGVeJi; spG0rmmm2jOPnd_S: $start = 0; goto eh2sPDbnMasrK_rA; enWZPMSpUZ9N60b6: $end = $this->fileSize - 1; goto h_joKXBstmdmCO8m; hCKab3Mu38fbGOQr: sC7iDYkBni1lHBU3: goto an7GAi12yFjMgAUH; Sh2JQ_P0_hkpHKU6: Pw8RwNRsUh9dzU82: goto m0tMHYyZz8sQggH3; vZn8A6NjAPkjKKPP: if (!($end <= 0)) { goto m83ggVbuTeOQCpbI; } goto j8dVV1PmOHN4nC1C; an7GAi12yFjMgAUH: return [$start, $end]; goto dsblmynVSe6K2DMP; WPEScnHI_cw1OguW: http_response_code(206); goto zB3Vlq_EIGHfXi60; tmAVRm08M16hFmlq: http_response_code(200); goto rRbuRZRvYWP6JXsW; eu6VnTbIExNGVeJi: session_write_close(); goto tmAVRm08M16hFmlq; eh2sPDbnMasrK_rA: $end = 0; goto eqNw_dwbhYwpAXBK; m0tMHYyZz8sQggH3: session_write_close(); goto WPEScnHI_cw1OguW; rRbuRZRvYWP6JXsW: $end = $this->fileSize - 1; goto J3L1BpcWUGt3MMV1; zB3Vlq_EIGHfXi60: list($start, $end) = array_map("\151\156\x74\x76\x61\x6c", array_pad(explode("\55", strtr($_SERVER["\x48\124\x54\120\137\x52\x41\116\107\105"], ["\x62\171\164\145\163\75" => ''])), 2, 0)); goto vZn8A6NjAPkjKKPP; h_joKXBstmdmCO8m: m83ggVbuTeOQCpbI: goto hCKab3Mu38fbGOQr; g09LFDMOl5qN3VbU: session_write_close(); goto spG0rmmm2jOPnd_S; J3L1BpcWUGt3MMV1: goto sC7iDYkBni1lHBU3; goto Sh2JQ_P0_hkpHKU6; j8dVV1PmOHN4nC1C: session_write_close(); goto enWZPMSpUZ9N60b6; dsblmynVSe6K2DMP: } public function mp4Stream() { goto yXi1YhyQmQ1bCRa6; PI2dyZO3d8Sf_GJa: if ($fp) { goto YV_RUReTkt4bAOgm; } goto qvTaNiJdVZeq9ayc; aa7YQhBR8fLj_kaS: r3huSgrFN6RJ7b53: goto cA2NoZXvGtviRp_a; q1WiwpRQBP1CCCAO: fseek($fp, $start); goto DFXGNqrOn4uu9IKH; NeJObqjlfVZGi3Pp: AU60_N5FEKwca2hA: goto a7opQw_DV7Ulr7cm; E5nFpAxTL5Xa0jOE: header("\x43\157\156\x74\145\x6e\x74\x2d\114\145\156\x67\164\x68\x3a\40" . $length); goto S_W0JoAJWKkVtmZ9; HpYRzPRCMl6zW_eU: if (!(!feof($fp) && $start <= $end)) { goto oXmjw0aky00f2G6I; } goto ORdD9hMOqjYq_A6O; ORdD9hMOqjYq_A6O: session_write_close(); goto anmAHJ3vw7MEZdKZ; oWvSEbTLS2MdLKS8: goto LJ3fqtZ33nyrRi_v; goto RBWoAbeVgV3Rc32N; O6Hjlhu4oE6tBzYD: $length = $this->fileSize - $start; goto INrJByEcL_WjplfD; x1ECjm8RGKm4x054: if ($this->isNotFound) { goto AU60_N5FEKwca2hA; } goto kjBzztcsBIFKDJuj; tAmcAOMKWHTm3JuW: echo "\x50\141\x67\145\x20\156\x6f\x74\x20\x66\x6f\x75\x6e\x64"; goto aa7YQhBR8fLj_kaS; kjBzztcsBIFKDJuj: list($start, $end) = $this->getRange(); goto O6Hjlhu4oE6tBzYD; S_W0JoAJWKkVtmZ9: open_resources_handler(); goto akHditWoWEjVaws0; qvTaNiJdVZeq9ayc: session_write_close(); goto ADtdqyAjLSYyw2uO; eCJUdwyJjGnCUkgb: goto TZ0Nxa3C_jLC0q9v; goto pmxTIaGUKNnqFDKF; INrJByEcL_WjplfD: header("\103\157\156\164\x65\156\x74\55\122\141\x6e\147\x65\x3a\40" . sprintf("\142\x79\164\x65\x73\x20\45\144\55\45\144\x2f\45\144", $start, $end, $this->fileSize)); goto E5nFpAxTL5Xa0jOE; Nv41D9hQ2XR4ibFP: echo "\123\145\162\x76\151\x63\x65\40\165\x6e\141\166\x61\151\x6c\141\142\154\145"; goto oWvSEbTLS2MdLKS8; yXi1YhyQmQ1bCRa6: session_write_close(); goto x1ECjm8RGKm4x054; exCPU10J1YUM7CaF: LJ3fqtZ33nyrRi_v: goto fpvllt1U6CcB61y9; fpvllt1U6CcB61y9: goto r3huSgrFN6RJ7b53; goto NeJObqjlfVZGi3Pp; pmxTIaGUKNnqFDKF: oXmjw0aky00f2G6I: goto QE_3RzWerNOmjogV; RBWoAbeVgV3Rc32N: YV_RUReTkt4bAOgm: goto oAw77FMaC1Df0dSR; DFXGNqrOn4uu9IKH: TZ0Nxa3C_jLC0q9v: goto HpYRzPRCMl6zW_eU; oAw77FMaC1Df0dSR: session_write_close(); goto G9pZpaj2DQ9sqfxv; G9pZpaj2DQ9sqfxv: stream_set_blocking($fp, false); goto q1WiwpRQBP1CCCAO; anmAHJ3vw7MEZdKZ: echo fread($fp, 1048576); goto sMiGIC0DGXRwyNAN; QE_3RzWerNOmjogV: fclose($fp); goto exCPU10J1YUM7CaF; a7opQw_DV7Ulr7cm: session_write_close(); goto EETiygwOJbEmYN3S; ADtdqyAjLSYyw2uO: http_response_code(503); goto Nv41D9hQ2XR4ibFP; ImgkiuIlme0C08Lq: flush(); goto eCJUdwyJjGnCUkgb; sMiGIC0DGXRwyNAN: ob_flush(); goto ImgkiuIlme0C08Lq; akHditWoWEjVaws0: $fp = @fopen($this->file, "\162\142"); goto PI2dyZO3d8Sf_GJa; EETiygwOJbEmYN3S: http_response_code(404); goto tAmcAOMKWHTm3JuW; cA2NoZXvGtviRp_a: } }

Function Calls

None

Variables

None

Stats

MD5 24f4c78243355ce25f329826d23f2ba2
Eval Count 0
Decode Time 47 ms