Get link tv.zing.vn

Lấy link (getlink) tải video chất lượng 720p, 480p và 360p từ Zing TV dễ dàng chỉ với một cú nhấn chuột!

Up lên hosting rồi chạy (http://domain.com?url=http://tv.zing.vn/video/Hoa-Thien-Cot-Tap-1/IWZBZF8O.html )

Get link ZingTv Stream 10/2015

<?php
class zing {
    public $_text = '';
    public $_key = 'f_pk_ZingTV_1_@z';
    public $_iv = 'f_iv_ZingTV_1_@z';
    public $_result = '';
    public function _decrypt(){
        if($this->_text != ''){
            $cipher = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_CBC, '');
            $iv_size = mcrypt_enc_get_iv_size($cipher);
            if(mcrypt_generic_init($cipher, $this->_key, $this->_iv) != -1){
                $cipherText = mdecrypt_generic($cipher,$this->_hexToString($this->_text));
                mcrypt_generic_deinit($cipher);
                $this->_result = $cipherText;
                return true;
            }else{
                return false;
            }
        }
    }
    protected function _hexToString($hex){
        if(!is_string($hex)){
            return null;
        }
        $char = '';
        for($i=0; $i<strlen($hex);$i+=2){
            $char .= chr(hexdec($hex{$i}.$hex{($i+1)}));
        }
        return $char;
    }
}
$link = isset($_GET['url']) ? $_GET['url'] : '';
$zing = file_get_contents($_GET['url']);
//$zing = file_get_contents('http://tv.zing.vn/video/Hoa-Thien-Cot-Tap-1/IWZBZF8O.html');
preg_match_all('/xmlURL: "([^>]*)",/U', $zing, $link_zing);
$xml = str_replace( 'media', 'media-embed', $link_zing[1][0]);
$sourceXML = file_get_contents('compress.zlib://'.$xml);
                 
$f360 = explode('<source streamingType="1"><![CDATA[',$sourceXML);$f360=explode(']]></source>',$f360[1]);$getf360=new zing; $getf360->_text=''.$f360[0].''; if($getf360->_decrypt()!=false);
if($getf360->_result != ''){
    $f480 = explode('<f480 streamingType="1"><![CDATA[',$sourceXML);$f480=explode(']]></f480>',$f480[1]);$getf480=new zing; $getf480->_text=''.$f480[0].''; if($getf480->_decrypt()!=false);
    $f720 = explode('<f720 streamingType="1"><![CDATA[',$sourceXML);$f720=explode(']]></f720>',$f720[1]);$getf720=new zing; $getf720->_text=''.$f720[0].''; if($getf720->_decrypt()!=false);
$link = '720p: '.$getf720->_result.'<br> 480p: '.$getf480->_result.'<br> 360p: '.$getf360->_result;
} else {
    $f360 = explode('<source streamingType="2"><![CDATA[',$sourceXML);$f360=explode(']]></source>',$f360[1]);$getf360=new zing; $getf360->_text=''.$f360[0].''; if($getf360->_decrypt()!=false);
    if($getf360->_result != ''){
        $f480 = explode('<f480 streamingType="2"><![CDATA[',$sourceXML);$f480=explode(']]></f480>',$f480[1]);$getf480=new zing; $getf480->_text=''.$f480[0].''; if($getf480->_decrypt()!=false);
        $f720 = explode('<f720 streamingType="2"><![CDATA[',$sourceXML);$f720=explode(']]></f720>',$f720[1]);$getf720=new zing; $getf720->_text=''.$f720[0].''; if($getf720->_decrypt()!=false);
 $link = '720p: '.$getf720->_result.'<br> 480p: '.$getf480->_result.'<br> 360p: '.$getf360->_result;
    } else {
        $f360 = explode('<source streamingType="3"><![CDATA[',$sourceXML);$f360=explode(']]></source>',$f360[1]);$getf360=new zing; $getf360->_text=''.$f360[0].''; if($getf360->_decrypt()!=false);
        $f480 = explode('<f480 streamingType="3"><![CDATA[',$sourceXML);$f480=explode(']]></f480>',$f480[1]);$getf480=new zing; $getf480->_text=''.$f480[0].''; if($getf480->_decrypt()!=false);
        $f720 = explode('<f720 streamingType="3"><![CDATA[',$sourceXML);$f720=explode(']]></f720>',$f720[1]);$getf720=new zing; $getf720->_text=''.$f720[0].''; if($getf720->_decrypt()!=false);
 $link = '720p: '.$getf720->_result.'<br> 480p: '.$getf480->_result.'<br> 360p: '.$getf360->_result;
    }
}
//echo $link;
?>

Cách dricertlink



<?php
/**
 * Class Name: KZ_Crypt
 * Author: Killer
**/
class KZ_Crypt {
    public $_text = '';
 
    //Chìa khoá để mở kho báu ^^
    public $_key = 'f_pk_ZingTV_1_@z';
    public $_iv = 'f_iv_ZingTV_1_@z';
 
    //Kết quả trả về
    public $_result = '';
 
    /**
     * Hàm mã hoá
    **/
    public function _encrypt(){
        if($this->_text != ''){
            $cipher = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_CBC, '');
            $iv_size = mcrypt_enc_get_iv_size($cipher);
            if (mcrypt_generic_init($cipher, $this->_key, $this->_iv) != -1){
                $cipherText = mcrypt_generic($cipher,$this->_text);
                mcrypt_generic_deinit($cipher);
                $this->_result = bin2hex($cipherText);
                return true;
            }
        }else{
            return false;
        }
    }
 
    /**
     * Hàm giải mã
    **/
    public function _decrypt(){
        if($this->_text != ''){
            $cipher = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_CBC, '');
            $iv_size = mcrypt_enc_get_iv_size($cipher);
            if(mcrypt_generic_init($cipher, $this->_key, $this->_iv) != -1){
                $cipherText = mdecrypt_generic($cipher,$this->_hexToString($this->_text));
                mcrypt_generic_deinit($cipher);
                $this->_result = $cipherText;
                return true;
            }else{
                return false;
            }
        }
    }
 
    /**
     * Hàm chuyển đổi từ mã hex sang chuỗi.
    **/
    protected function _hexToString($hex){
        if(!is_string($hex)){
            return null;
        }
        $char = '';
        for($i=0; $i<strlen($hex);$i+=2){
            $char .= chr(hexdec($hex{$i}.$hex{($i+1)}));
        }
        return $char;
    }
}

isset($_GET['url']) ? $_GET['url'] : '';
function getlink($url)
{
    $source = file_get_contents($url);
    $link="http://tv.zing.vn/video/Naruto-Tap-2/IWZ98DC7.html";
    preg_match("%<source src=\"(.*)\" type=\"video\/mp4\"%i",$source,$link);
    return $link[1];
}
if($_GET['url'])
{
    $url=getlink($_GET['url']);
    echo $url;
}
?> 

các bạn tạo một file là zingtv.php

các bạn dán code này vào đó:

<?php
// Code By SthuThuat.Blogspot.Com
function zing($link){
$source = file_get_contents($link);
if(preg_match_all('#<source src="(.+?)" type="video/mp4" data-res="(.+?)"/>#is',$source,$data)){
if(!empty($data[1][1])){
return $data[1][1];
}else{
return $data[1][0];
}
}else{
return 'không tìm thấy link';
}
}
 echo zing($_GET['link']);
?> 
sau đó các bạn chạy domain.com/zing.php?link=link phim tv.zing.vn 

trong đó thì link phim tv.zing.vn các bạn lấy ở tv.zing.vn nhé

تعليق واحد

  1. Là sao
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
Site is Blocked
Sorry! This site is not available in your country.