ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() 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/ |
<?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('movieandtube.com','phim79.com'); $referer=get_domain($_SERVER['HTTP_REFERER']); if(!$referer || !in_array($referer,$acceptedDomains)) { header('HTTP/1.0 403 Forbidden'); exit(MSG_NO_ACCESS); }*/ include "simple_html_dom.php"; 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 'Mobile_Detect.php'; $detect = new Mobile_Detect; require '../lib/aes_decrypt.class.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 decodeCryptZingTV($text){ $key = 'f_pk_ZingTV_1_@z'; $iv = 'f_iv_ZingTV_1_@z'; if($text != ''){ $cipher = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_CBC, ''); $iv_size = mcrypt_enc_get_iv_size($cipher); if(mcrypt_generic_init($cipher, $key, $iv) != -1){ $char = ''; for($i=0; $i<strlen($text);$i+=2){ $char .= chr(hexdec($text{$i}.$text{($i+1)})); } $cipherText = mdecrypt_generic($cipher,$char); mcrypt_generic_deinit($cipher); return $cipherText; }else{ return false; } } } /*if(!function_exists (hex2bin)){ function hex2bin($hexdata) { $bindata = ''; for ($i=0;$i<strlen($hexdata);$i+=2) { $bindata .= chr(hexdec(substr($hexdata,$i,2))); } return $bindata; } }*/ 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; } function curl($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; } function CurlZing($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; } function post($url,$data) { $header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,"; $header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; $header[] = "Cache-Control: max-age=0"; $header[] = "Connection: keep-alive"; $header[] = "Keep-Alive: 300"; $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $header[] = "Accept-Language: en-us,en;q=0.5"; $header[] = "Pragma: "; // browsers keep this blank. $user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36'; $process = curl_init($url); curl_setopt($process, CURLOPT_HTTPHEADER, $header); curl_setopt($process, CURLOPT_REFERER, 'http://www.anivn.com'); //curl_setopt($process, CURLOPT_HEADER, 1); curl_setopt($process, CURLOPT_USERAGENT, $user_agent); //curl_setopt($process, CURLOPT_COOKIEFILE, 'cookies.txt'); // curl_setopt($process, CURLOPT_COOKIEJAR, 'cookies.txt'); curl_setopt($process, CURLOPT_ENCODING , 'gzip'); curl_setopt($process, CURLOPT_TIMEOUT, 10); //if ($this->proxy) curl_setopt($process, CURLOPT_PROXY, $this->proxy); curl_setopt($process, CURLOPT_POSTFIELDS, $data); curl_setopt($process, CURLOPT_RETURNTRANSFER, 1); curl_setopt($process, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($process, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($process, CURLOPT_FOLLOWLOCATION, 0); curl_setopt($process, CURLOPT_POST, 1); $return = curl_exec($process); curl_close($process); return $return; } $url = $_GET['url']; if(empty($url)){ echo curl('http://dauvantay.ischool.vn/curl/check.php'); exit(); } //$url = str_encode(hex2bin($url),'ngocgiac'); $pos7 = strpos($url,'hdonline.vn'); if($pos7!==false) { $arr_url = explode('-',$url); $txt_mid = str_replace('.html','',$arr_url[count($arr_url)-1]); if(strpos($txt_mid,'.')!==false){ $arr_mid = explode('.',$txt_mid); $fid = intval($arr_mid[0]); }else{ $fid = intval($txt_mid); } preg_match('#tap-(.*?)-#is',$url,$match); if(intval($match[1])>0){ $epi = intval($match[1]); }else{ $epi= 1; } $content = curl('http://dauvantay.ischool.vn/curl/get_page_hdonline.php?url=' . $url); preg_match('#xmlplay\?(.*?)\"\,#is',$content,$match); if(!empty($match[1])) { $urlxml = 'http://hdonline.vn/frontend/episode/xmlplay?' . $match[1]; }else{ include '../lib/phpunpark/inc/JavaScriptUnpacker.php'; $jsu = new JavaScriptUnpacker(); preg_match('#eval\((.*?)\{\}\)\)#is',$content,$match1); $encode = 'eval('.$match1[1].'{}))'; $decode = $jsu->Unpack($encode); preg_match('#xmlplay\?(.*?)\"\,#is',$decode,$match); ///frontend\/episode\/xmlplay?ep=1&fid=14265&token=NmY1MjQyNDE0YjMwNmY2YzMzNTg1NDZkNjI1ODRlNDc1NTMyNWE0YjYxNTg2NTQ2MzEzMDZhMzc0NjUzNmY2YTM5NjczZDNk-1498536711&mirand=c33065cf7de1fb73f8d48bb53b910cdb $arr_token = explode('token=',$match[1]); $urlxml = 'http://hdonline.vn/frontend/episode/xmlplay?ep='.$epi.'&fid='.$fid.'&token=' . $arr_token[1]; } $url2 = base64_encode($urlxml.'&format=json'); $content = curl('http://dauvantay.ischool.vn/curl/get_page_hdonline_detail.php?url=' . $url2); $array = json_decode($content,true); print_r($array); exit(); } ?> <html> <head> <title>-Server movieantube-phimle1 embed-</title> <style type="text/css"> body { background: #000000; margin: 0px; padding: 0px; } </style> <link href="http://movieandtube.com/proxy/jscript/video_js/video-js.css" rel="stylesheet" type="text/css" /> <script src="http://movieandtube.com/proxy/jscript/video_js/video.js"></script> <link href="http://movieandtube.com/proxy/jscript/video_js/button-styles.css" rel="stylesheet" type="text/css" /> <script src="http://movieandtube.com/proxy/jscript/video_js/video-quality-selector.js"></script> <script> videojs.options.flash.swf = "http://movieandtube.com/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(); ?>