����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/vidoe.top/proxy/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/vidoe.top/proxy/a_test.php
<?php
function str_encode($data,$pwd)
{
    $x = 0;
    $a = 0;
    $j = 0;
    $Zcrypt = '';
    $pwd_length = strlen($pwd);
    for ($i = 0; $i < 255; $i++) {
        $key[$i] = ord(substr($pwd, ($i % $pwd_length)+1, 1));
        $counter[$i] = $i;
    }
    for ($i = 0; $i < 255; $i++) {
        $x = ($x + $counter[$i] + $key[$i]) % 256;
        $temp_swap = $counter[$i];
        $counter[$i] = $counter[$x];
        $counter[$x] = $temp_swap;
    }
    for ($i = 0; $i < strlen($data); $i++) {
        $a = ($a + 1) % 256;
        $j = ($j + $counter[$a]) % 256;
        $temp = $counter[$a];
        $counter[$a] = $counter[$j];
        $counter[$j] = $temp;
        $k = $counter[(($counter[$a] + $counter[$j]) % 256)];
        $Zcipher = ord(substr($data, $i, 1)) ^ $k;
        $Zcrypt .= chr($Zcipher);
    }
    return $Zcrypt;
}

function curl_func($url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    $head[] = "Connection: keep-alive";
    $head[] = "Keep-Alive: 300";
    $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
    $head[] = "Accept-Language: en-us,en;q=0.5";
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36');
    curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
    //curl_setopt($ch, CURLOPT_REFERER, 'http://www.phimmoi.net');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
    $page = curl_exec($ch);
    curl_close($ch);
    return $page;
}

if(!isset($_GET['time'])){
    return;
}

/*$time = $_GET['time'];
$time_check = time()-5;
$time_check2 = time()+5;
if($time < $time_check){
    return;
}
if($time > $time_check2){
    return;
}*/

$url = str_encode(hex2bin($_GET['a']),'123Vid@Net');

//$url = 'https://anime47.com/xem-phim-wei-kanjian-erduo-la-ep-07/157360.html';
$memcache = new Memcache;
$memcache->connect('45.252.249.168', 11211) or die ("Sorry, could not connect memcached! . We're working on getting this fixed as soon as we can.");
$key_url = md5($url.'2');
$content = '';
$cache_show_source = $memcache->get($key_url);
if($cache_show_source and $cache_show_source!='') {
    $content = $cache_show_source;
}else{
    for($i=1;$i<=3;$i++) {
        //$content = curl_func('https://st2.vidoe.top/proxy/bypass4/my_test.php?linkf=' . $url);

        $url_base64 = base64_encode($url);
        $content = curl_func('https://st2.vidoe.top/logs/get_page.php?url=' . $url_base64);
        if(!empty($content) and strpos($content,'anime47.com')!==false){
            break;
        }
    }
    if($content and $content!='') {
        if(strpos($content,'googlevideo.com')!==false or strpos($content,'fembed.com')!==false) {
            $memcache->set($key_url, $content, MEMCACHE_COMPRESSED, 1200);
        }
    }
}

//$content = curl_func('http://45.252.249.168/logs/v2/examples/curl.php?url=' . base64_encode($url));
$type = 'video/mp4';
$link_play = '';

if(stripos($_SERVER['HTTP_USER_AGENT'],'firefox')!==false){
    if (strpos($content, 'https:\/\/api.anime47.com\/sen') !== false) {
        $arr2 = explode('https:\/\/api.anime47.com\/sen\/get.php?url=', $content);
        $arr3 = explode('scrolling=', $arr2[1]);
        $link_play = trim($arr3[0]);
        $link_play = base64_decode($link_play);
        $content = curl_func($link_play);
        preg_match('#data-file="(.*?)"#is', $content, $match);
        $url2 = $match[1];
        $link_play = str_replace('/master.m3u8', '', $url2);
        $type = 'video/mp4';
    } else if (strpos($content, 'fembed.com') !== false) {
        $arr_content = explode('fembed.com', $content);
        $arr_content2 = explode('scrolling=', $arr_content[1]);
        $link_play = urldecode(trim($arr_content2[0]));
        $link_play = str_replace(array('\/v\/', '\"', ' '), array('', '', ''), $link_play);
        $id_f_encode = bin2hex(str_encode($link_play, '123Vid@Net'));
        $link_play = 'https://st2.vidoe.top/drive/news_test.php?f=' . $id_f_encode . '&time=' . time();
        $type = 'video/mp4';
    } else if (strpos($content, '123phim.top') !== false) {
        $arr_content = explode('123phim.top', $content);
        $arr_content2 = explode('scrolling=', $arr_content[1]);
        $link_play = urldecode(trim($arr_content2[0]));
        $link_play = str_replace(array('\/v\/', '\"', ' '), array('', '', ''), $link_play);
        $id_f_encode = bin2hex(str_encode($link_play, '123Vid@Net'));
        $link_play = 'https://st2.vidoe.top/drive/news_test.php?f=' . $id_f_encode . '&time=' . time();
        $type = 'video/mp4';
    }
}else {
    if (strpos($content, 'fembed.com') !== false) {
        $arr_content = explode('fembed.com', $content);
        $arr_content2 = explode('scrolling=', $arr_content[1]);
        $link_play = urldecode(trim($arr_content2[0]));
        $link_play = str_replace(array('\/v\/', '\"', ' '), array('', '', ''), $link_play);
        $id_f_encode = bin2hex(str_encode($link_play, '123Vid@Net'));
        $link_play = 'https://st2.vidoe.top/drive/news_test.php?f=' . $id_f_encode . '&time=' . time();
        $type = 'video/mp4';
    } else if (strpos($content, '123phim.top') !== false) {
        $arr_content = explode('123phim.top', $content);
        $arr_content2 = explode('scrolling=', $arr_content[1]);
        $link_play = urldecode(trim($arr_content2[0]));
        $link_play = str_replace(array('\/v\/', '\"', ' '), array('', '', ''), $link_play);
        $id_f_encode = bin2hex(str_encode($link_play, '123Vid@Net'));
        $link_play = 'https://st2.vidoe.top/drive/news_test.php?f=' . $id_f_encode . '&time=' . time();
        $type = 'video/mp4';
    } else if (strpos($content, 'https:\/\/api.anime47.com\/sen') !== false) {
        $arr2 = explode('https:\/\/api.anime47.com\/sen\/get.php?url=', $content);
        $arr3 = explode('scrolling=', $arr2[1]);
        $link_play = trim($arr3[0]);
        $link_play = base64_decode($link_play);
        $content = curl_func($link_play);
        preg_match('#data-file="(.*?)"#is', $content, $match);
        $url2 = $match[1];
        $link_play = str_replace('/master.m3u8', '', $url2);
        $type = 'video/mp4';
        require '../lib/simple_html_dom.php';
        $html = str_get_html($content);
        $v_embed = $html->find('div.knswli-video-left',0)->innertext;
        echo '<meta name="robots"content="noindex"><meta name="referrer"content="no-referrer"><script src="https://adminplayer.sohatv.vn/resource/init-script/playerInitScript.js" type="text/javascript"></script><script async src="https://statics.lotuscdn.vn/web/v1/js/w.video-detail.01082020.min.js"></script><script type="text/javascript"nonce="sclotusinnline">var appSettings={sessionid:\'\',userid:\'\',userrole:\'\',domain:\'https://lotus.vn\',domainDynamicLink:\'https://lt.lotus.vn\',defaultuseravatar:\'https://statics.lotuscdn.vn/web/v1/images/default_user_avatar.jpg\',defaultimage:\'https://statics.lotuscdn.vn/web/v1/images/thumb_default_share.png\',kinghub:{api_host:"https://webpub.lotuscdn.vn"+"/api/webkinghub",app_api_host:"https://webpub.lotuscdn.vn"+"/api/appkinghub",socket_host:"https://wio.lotus.vn",api_logging:\'https://lg.lotus.vn/pv\'},isbeta:false,showcomment:false,allowCommentAction:false,blankimage:\'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D\'};(runinit=window.runinit||[]).push(function(){videoDetail.initFirstPlayer();});</script><style>body { padding: 0px!important; margin: 0px !important;width: 100%; height: 100%;}</style><div class="knswli-video-left">'.$v_embed.'</div>';
        exit();
    } else if (strpos($content, 'openload.co') !== false) {
        $arr_content = explode('openload.co', $content);
        $arr_content2 = explode('scrolling=', $arr_content[1]);
        $link_go = urldecode(trim($arr_content2[0]));
        $link_go = str_replace(array('\/embed\/', '\"', ' '), array('', '', ''), $link_go);
        header('Location: https://openload.co/embed/' . $link_go);
        exit();
    } else if (strpos($content, 'fbcdn.net') !== false) {
        $arr_content = explode('\",label:\"api\"', $content);
        $arr_content2 = explode('{file:\"', $arr_content[0]);
        $link_play = urldecode(trim($arr_content2[1]));
        $link_play = str_replace(array('\/', '\"', ' '), array('/', '', ''), $link_play);
        $type = 'video/mp4';
    }
}
?>
<html style="width: 100%; height: 100%"><head>
    <title>-Server 2 embed-</title>
    <style type="text/css">
        body {
            background: #000000;
            margin: 0px;
            padding: 0px;
        }
    </style>
    <link href="https://img.123vid.top/videojs/video-js.css" rel="stylesheet" />
    <link href="https://img.123vid.top/videojs/vsg-skin.css" rel="stylesheet">
</head>
<body style="width: 100%; height: 100%">
<?php
if($link_play !='') {

        ?>
        <video autoplay controls id="ht_player" style="width: 100%; height: 100%" class="video-js vjs-theme-forest vjs-16-9"
               preload="auto" poster="" data-setup="{ }">
            <source src="<?php echo $link_play; ?>" type='<?php echo $type;?>'/>
            <p>Video Playback Not Supported</p>
        </video>
        <script type="text/javascript">
            //var player = videojs('#ht_player');
            //player.play();
        </script>
 <?php
}
?>
<script src="https://img.123vid.top/videojs/video.js"></script>
<script src="https://img.123vid.top/videojs/videojs-contrib-hls.js"></script>
<script type="text/javascript">
    var player = videojs('#ht_player');
    player.on('contextmenu', function(e) {
        e.preventDefault();
    });
</script>
</body></html>

ZeroDay Forums Mini