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 eval(str_rot13(gzinflate(base64_decode('DZfHroTaEUU/x89iQE6yPCDnnJlY5JyhCV/v20OkRsW..

Decoded Output download

header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
header('allow-origin: *');
header("Access-Control-Allow-Headers: ACCEPT, CONTENT-TYPE, X-CSRF-TOKEN");
header("Access-Control-Allow-Methods: GET, POST, OPTIONS, DELETE");

//  ID   
$id = isset($_GET['id']) ? $_GET['id'] : 'default_id'; //  'default_id'  ID  ,   

//  cURL
$curl = curl_init();

//   
curl_setopt_array($curl, [
    CURLOPT_URL => "https://api.viju.ru/api/v1/tv/channels/" . $id . "/playlist", //  URL  ID
    CURLOPT_RETURNTRANSFER => true, 
    CURLOPT_ENCODING => "gzip", 
    CURLOPT_MAXREDIRS => 10, 
    CURLOPT_TIMEOUT => 30, 
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 
    CURLOPT_CUSTOMREQUEST => "GET", 
    CURLOPT_HTTPHEADER => [
        "authorization: Bearer eyJ1dWlkIjoiZGFkZDdiNWItY2FhNC00NDcyLWE2ZGYtNDAzNTU3OTM5MWNhIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI3ZTU2ODNkZi0wZjA3LTRkYzYtYWQ0OS01YmIwNzU1Y2E0MzEiLCJleHAiOjE3MzQ4Njk2MjYsInVzZXJfaWQiOiI2YTRlOWQwMS0wYzU2LTQyZmEtYTJlYS1iNjRkMWY1MWMzYTQiLCJwcm9maWxlX2lkIjoiNGJmN2MxNDItODFmZS00NmViLTg0NmMtNWM0M2IyMjJiZTJmIiwidmlzaXRvcl9pZCI6IjQwMjdiYmIyLWUxMzEtNDA0YS1iMDcwLTlkMzYyMTNhYzk3NiJ9.riDlBfYL9rfiJ18q2Aq9fjXX5Yx4uBCAgzD4BXxUrgP4smOglU154ANJ-MylwMtxZ6RD73KEhrSL6LmR-QnEr-KbxD7BLYgDfL3ZMccDxFa0IUH-4e6sOIK9479fXRYAoNE0HjgTL8IeKwqD69xOQpQXGiZfpsukj_teRWeoH4t9e9aVhnj2hNdpCXr_ujkNYAzLB9abHVcxNJp3fra6MZqW5wQoCXEMY_C8Gk647UPQzfB-vOIfm664kT8pJ6tUay8jho7MCryeFMadpd9Ww0d4p50oW3wkOY_npPXWlNPcC1cHPQWOCVWkEiVyBtD9gx7iIJy6a6EZBoq4PEjiEpkZGx6r_cL3moaE0QbVLzwJWWp6ZjmD-RP_6oSyreQpI9tSLa6B6aNefwf3zRyhHCjHtYtB4WVyDobjcaKUlDc7Cu4YUQUDD_fRp8IwZ4aA6IPJUBSUGdy8hjMTqF7DioIVWcbhxGAiRgmFaCXYV8Ew0eMLw0t9dckrUrJZ4yy3OZFxq1j9WnUCKDPRspxFANDASBshKeacF_aQGRdM5UWKDkAWcg_ZwbH3QTojppc_SM7iMSdfyJBSNDElyfVH-kCv0z6AiJoH9wK5FE6XD8sIzFwnVS_jK0I7Ng6Wd78eDfpAqCPwtYr0E83b6Pa3IXS-2TSX7NHHs7-AqdUiW0g",
        "visitorid: 4027bbb2-e131-404a-b070-9d36213ac976",
        "x-timezone: 2",
        "accept-language: ru",
        "accept-encoding: gzip",
        "user-agent: okhttp/4.10.0"
    ],
]);

//  
$response = curl_exec($curl);
$err = curl_error($curl);

//   cURL
curl_close($curl);

//    
if ($err) {
    echo "cURL Error #:" . $err;
} else {
    //  ,     gzip
    if (substr($response, 0, 2) == "") {
        $response = gzdecode($response);
    }
    
    //  JSON
    $data = json_decode($response, true);
    if (isset($data['url'])) {
        //   URL
        header('Location: ' . $data['url']);
        exit;
    } else {
        echo "URL    ";
    }
}


?>

Did this file decode correctly?

Original Code

<?php
eval(str_rot13(gzinflate(base64_decode('DZfHroTaEUU/x89iQE6yPCDnnJlY5JyhCV/v20OkRsWBXWvtvZvff86pzdb8K6q9rv9Z5nonsP9t+5pv+z91U/2vyhsY/edflXqbIxldz7C9bkvP3yrw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X14zzDJVpYz/YOhWMVL3YZxhJWYjIu7Fpn9hVp1rDlzYU4LDMx/0iel8rn47vGtxSoLyOae7WjwEZMXLy4Y/8yOPYLAzrwcTGSoxRmcx0X13Vb8hvMDYy1l5bLgg6J6Wuw2FiAWPez95WhwC7Np46SgLrenIuziFe1fyl1l/Vug+C9XyvZvAPtca/9vUJ7gBombhH7PfUlH6r+BRBrIJp9y9teRjYqejtW1ovW2QYWnOd7bMED5URpab9W0UgKDk2T93Mu45v55xSmivbd4Pf7DmQ31o7hrMjjRMmM3/1pQwp9mmp/NeoZchHSYg7gS/PMNaioME2LKfFatJuO8kXl9xXkcxQ5ClvyQyM1+5LCvwPU/e424DEuNh6l5ACgqAANY+Td78AGjbK7Bwkai6xxWfZVpgUEtS1vTseQVIRvznSxlii4lWl9sO/XrN4hDj3ul/i2jeHYDnYv5HBUB+d25/EIC7813HXn+EUZ8LbDqfHi5afasv30v22k09JNc2Vc90x3sg/MBr9HjdImYYnMrHzmqQblCGLyVLH/vg0rBQhL24ebgu0hLS/KsbCz5n3gg62cjwMhqEhiDr7OfQoUP4Xi3w6/D4qNHP5J8aguuq5y6/HSPvx9rb+hKh0gvtSG8kSBnEsN4kyqPq+Yvb81ETktjuUFVkRvm9zxwa83XfSDW12CAO+zEg/fPSdyqjxK/F9udYV+Tnr3GBlvpninAaBpuEkJuIwi46brBvRGF3QGiRRFATAuq5BEAPJWfVE5r///de//37/+T8='))));
?>

Function Calls

gzinflate 20
str_rot13 20
gzuncompress 20
base64_decode 40

Variables

None

Stats

MD5 06811c660bf6f70312054b8aada3fb1f
Eval Count 40
Decode Time 256 ms