Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

require "\56\x2e\57\143\157\156\163\164\141\156\164\x73\56\x70\x68\x70"; if (!file_exis..

Decoded Output download

<?   require "../constants.php";   if (!file_exists($a316003e11fc9f14200696a3812c579b)) {   }  $c8a43f181e7f03315f708e1576fa8447 = md5(md5_file($a316003e11fc9f14200696a3812c579b) . filesize($a316003e11fc9f14200696a3812c579b));   switch ($d6898a23376491b3bdd709c5a8c5a038) { case "archive": $a316003e11fc9f14200696a3812c579b = TV_ARCHIVE . $c97f92741fbc02ee89ad321367e99f3c . "/" . $a316003e11fc9f14200696a3812c579b;   default: $a316003e11fc9f14200696a3812c579b = STREAMS_PATH . $a316003e11fc9f14200696a3812c579b; }  c322c68313062e430d88d4dfbba9a2b6:     if (!file_exists($a316003e11fc9f14200696a3812c579b)) {   $a316003e11fc9f14200696a3812c579b = str_replace(array("\", "/"),  
, urldecode($_GET["seg"]));  switch ($d6898a23376491b3bdd709c5a8c5a038) { case "archive": $a316003e11fc9f14200696a3812c579b = TV_ARCHIVE . $c97f92741fbc02ee89ad321367e99f3c . "/" . $a316003e11fc9f14200696a3812c579b;        if (!($c8a43f181e7f03315f708e1576fa8447 == $eeb6641f1ba5799f2fd447805704b549)) {   }  $ad6ab9dcf39113fc4a9c540c3a2d0bbb = filesize($a316003e11fc9f14200696a3812c579b);     header($_SERVER["SERVER_PROTOCOL"] . " 403 Forbidden", true, 403);  $d6898a23376491b3bdd709c5a8c5a038 = empty($_GET["type"]) ? null : $_GET["type"];  $c97f92741fbc02ee89ad321367e99f3c = empty($_GET["stream_id"]) ? null : intval($_GET["stream_id"]);   $eeb6641f1ba5799f2fd447805704b549 = empty($_GET["token"]) ? null : $_GET["token"];  $a316003e11fc9f14200696a3812c579b = str_replace(array("\", "/"),  
, urldecode($_GET["seg"]));   header("Content-Length: " . $ad6ab9dcf39113fc4a9c540c3a2d0bbb);  header("Content-Type: video/mp2t");   if (!(empty($_GET["seg"]) || empty($_GET["token"]))) {   }  exit;     header("Access-Control-Allow-Origin: *");   exit;     exit;     $c8a43f181e7f03315f708e1576fa8447 = md5(md5_file($a316003e11fc9f14200696a3812c579b) . filesize($a316003e11fc9f14200696a3812c579b));  if (!($c8a43f181e7f03315f708e1576fa8447 == $eeb6641f1ba5799f2fd447805704b549)) {   $c97f92741fbc02ee89ad321367e99f3c = empty($_GET["stream_id"]) ? null : intval($_GET["stream_id"]);  $eeb6641f1ba5799f2fd447805704b549 = empty($_GET["token"]) ? null : $_GET["token"];   header("Access-Control-Allow-Origin: *");  $d6898a23376491b3bdd709c5a8c5a038 = empty($_GET["type"]) ? null : $_GET["type"];   $ad6ab9dcf39113fc4a9c540c3a2d0bbb = filesize($a316003e11fc9f14200696a3812c579b);  header("Content-Length: " . $ad6ab9dcf39113fc4a9c540c3a2d0bbb);   readfile($a316003e11fc9f14200696a3812c579b);  exit;   header("Content-Type: video/mp2t");  readfile($a316003e11fc9f14200696a3812c579b);   require "../constants.php";  if (!(empty($_GET["seg"]) || empty($_GET["token"]))) {   c322c68313062e430d88d4dfbba9a2b6:     header($_SERVER["SERVER_PROTOCOL"] . " 403 Forbidden", true, 403); ?>

Did this file decode correctly?

Original Code

 require "\56\x2e\57\143\157\156\163\164\141\156\164\x73\56\x70\x68\x70";   if (!file_exists($a316003e11fc9f14200696a3812c579b)) {   }  $c8a43f181e7f03315f708e1576fa8447 = md5(md5_file($a316003e11fc9f14200696a3812c579b) . filesize($a316003e11fc9f14200696a3812c579b));   switch ($d6898a23376491b3bdd709c5a8c5a038) { case "\x61\x72\x63\150\151\x76\x65": $a316003e11fc9f14200696a3812c579b = TV_ARCHIVE . $c97f92741fbc02ee89ad321367e99f3c . "\x2f" . $a316003e11fc9f14200696a3812c579b;   default: $a316003e11fc9f14200696a3812c579b = STREAMS_PATH . $a316003e11fc9f14200696a3812c579b; }  c322c68313062e430d88d4dfbba9a2b6:     if (!file_exists($a316003e11fc9f14200696a3812c579b)) {   $a316003e11fc9f14200696a3812c579b = str_replace(array("\x5c", "\x2f"), 
, urldecode($_GET["\163\145\147"]));  switch ($d6898a23376491b3bdd709c5a8c5a038) { case "\x61\x72\x63\150\151\x76\x65": $a316003e11fc9f14200696a3812c579b = TV_ARCHIVE . $c97f92741fbc02ee89ad321367e99f3c . "\x2f" . $a316003e11fc9f14200696a3812c579b;        if (!($c8a43f181e7f03315f708e1576fa8447 == $eeb6641f1ba5799f2fd447805704b549)) {   }  $ad6ab9dcf39113fc4a9c540c3a2d0bbb = filesize($a316003e11fc9f14200696a3812c579b);     header($_SERVER["\x53\x45\122\126\x45\x52\137\120\x52\x4f\124\117\x43\x4f\114"] . "\40\x34\x30\63\x20\106\157\162\x62\x69\x64\x64\x65\x6e", true, 403);  $d6898a23376491b3bdd709c5a8c5a038 = empty($_GET["\164\171\x70\x65"]) ? null : $_GET["\x74\171\x70\x65"];  $c97f92741fbc02ee89ad321367e99f3c = empty($_GET["\x73\164\x72\145\x61\x6d\x5f\x69\x64"]) ? null : intval($_GET["\x73\x74\162\145\x61\x6d\137\x69\144"]);   $eeb6641f1ba5799f2fd447805704b549 = empty($_GET["\164\x6f\153\145\156"]) ? null : $_GET["\164\157\x6b\x65\x6e"];  $a316003e11fc9f14200696a3812c579b = str_replace(array("\x5c", "\x2f"), 
, urldecode($_GET["\163\145\147"]));   header("\x43\157\156\164\145\156\164\x2d\114\145\x6e\147\x74\150\x3a\40" . $ad6ab9dcf39113fc4a9c540c3a2d0bbb);  header("\103\157\156\x74\145\156\164\x2d\x54\171\160\145\x3a\40\x76\151\x64\x65\157\x2f\x6d\160\x32\164");   if (!(empty($_GET["\163\x65\x67"]) || empty($_GET["\164\x6f\x6b\x65\156"]))) {   }  exit;     header("\101\x63\x63\x65\163\163\55\x43\x6f\x6e\164\x72\157\x6c\55\x41\x6c\154\157\167\x2d\x4f\162\151\x67\151\156\x3a\40\x2a");   exit;     exit;     $c8a43f181e7f03315f708e1576fa8447 = md5(md5_file($a316003e11fc9f14200696a3812c579b) . filesize($a316003e11fc9f14200696a3812c579b));  if (!($c8a43f181e7f03315f708e1576fa8447 == $eeb6641f1ba5799f2fd447805704b549)) {   $c97f92741fbc02ee89ad321367e99f3c = empty($_GET["\x73\164\x72\145\x61\x6d\x5f\x69\x64"]) ? null : intval($_GET["\x73\x74\162\145\x61\x6d\137\x69\144"]);  $eeb6641f1ba5799f2fd447805704b549 = empty($_GET["\164\x6f\153\145\156"]) ? null : $_GET["\164\157\x6b\x65\x6e"];   header("\101\x63\x63\x65\163\163\55\x43\x6f\x6e\164\x72\157\x6c\55\x41\x6c\154\157\167\x2d\x4f\162\151\x67\151\156\x3a\40\x2a");  $d6898a23376491b3bdd709c5a8c5a038 = empty($_GET["\164\171\x70\x65"]) ? null : $_GET["\x74\171\x70\x65"];   $ad6ab9dcf39113fc4a9c540c3a2d0bbb = filesize($a316003e11fc9f14200696a3812c579b);  header("\x43\157\156\164\145\156\164\x2d\114\145\x6e\147\x74\150\x3a\40" . $ad6ab9dcf39113fc4a9c540c3a2d0bbb);   readfile($a316003e11fc9f14200696a3812c579b);  exit;   header("\103\157\156\x74\145\156\164\x2d\x54\171\160\145\x3a\40\x76\151\x64\x65\157\x2f\x6d\160\x32\164");  readfile($a316003e11fc9f14200696a3812c579b);   require "\56\x2e\57\143\157\156\163\164\141\156\164\x73\56\x70\x68\x70";  if (!(empty($_GET["\163\x65\x67"]) || empty($_GET["\164\x6f\x6b\x65\156"]))) {   c322c68313062e430d88d4dfbba9a2b6:     header($_SERVER["\x53\x45\122\126\x45\x52\137\120\x52\x4f\124\117\x43\x4f\114"] . "\40\x34\x30\63\x20\106\157\162\x62\x69\x64\x64\x65\x6e", true, 403);

Function Calls

None

Variables

None

Stats

MD5 07f0c946b219c6491250b4fd852670e0
Eval Count 0
Decode Time 57 ms