ÿØÿà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/hls4.vidoe.top/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/hls4.vidoe.top/hls18.php
<?php
function curl_func($url) {
    $ch = curl_init();
    $head[] = 'Host: xvideos.com';
    $head[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0';
    $head[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
    $head[] = 'Accept-Language: en-US,en;q=0.5';
    $head[] = 'Accept-Encoding: gzip';
    $head[] = 'Connection: keep-alive';
    $head[] = 'Cookie: VISITOR_INFO1_LIVE=fQJoDmD2uIM; _ga=GA1.2.132832653.1582794066; PREF=app=m; CONSENT=YES+VN.vi+20170312-18-0; YSC=f7ClEVxjn-o; GPS=1';
    $head[] = 'Upgrade-Insecure-Requests: 1';
    $head[] = 'Pragma: no-cache';
    $head[] = 'Cache-Control: no-cache';
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0');
    curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_REFERER, 'https://xvideos.com');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);


    curl_setopt($ch, CURLOPT_COOKIEJAR,  'cookies.txt');
    curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');


    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_ENCODING , "gzip");
    $page = curl_exec($ch);
    curl_close($ch);
    return $page;
}
$url = base64_decode($_GET['url']);

$content = file_get_contents($url);


if(strpos($content,'NAME="1080p"')!==false){
    $arr = explode('NAME="1080p"',$content);
    $arr2 = explode('#EXT-X-STREAM-INF',$arr[1]);
    $filem3u8 = trim($arr2[0]);
    $url2 = str_replace(basename($url),$filem3u8,$url);
    $arr_replace = explode('.m3u8',$filem3u8);
    $txt_replace = $arr_replace[0];
    //$txt_replace = str_replace('.m3u8','',$filem3u8);

}elseif(strpos($content,'NAME="720p"')!==false){
    $arr = explode('NAME="720p"',$content);
    $arr2 = explode('#EXT-X-STREAM-INF',$arr[1]);
    $filem3u8 = trim($arr2[0]);
    $url2 = str_replace(basename($url),$filem3u8,$url);
    $arr_replace = explode('.m3u8',$filem3u8);
    $txt_replace = $arr_replace[0];
}else{
    $arr = explode('NAME="360p"',$content);
    $arr2 = explode('#EXT-X-STREAM-INF',$arr[1]);
    $filem3u8 = trim($arr2[0]);
    $url2 = str_replace(basename($url),$filem3u8,$url);
    $arr_replace = explode('.m3u8',$filem3u8);
    $txt_replace = $arr_replace[0];
}
$content2 =  file_get_contents($url2);


$txt_replace2 = str_replace(basename($url),'',$url).$txt_replace;
$content2 = str_replace($txt_replace,'https://hls3.123vid.net/ts18.php?file='.base64_encode($txt_replace2).'@@',$content2);
$content2 = str_replace(array('?e=','&l=','&h='),array('quest','equal','and'),$content2);
$seconds_to_cache = 8640000;
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
header( 'Access-Control-Allow-Origin: https://www.vidoe.top');
header("Expires: $ts");
header("Pragma: cache");
header("Cache-Control: max-age=$seconds_to_cache");
header("Connection: keep-alive");

header ("Content-Type: video/vnd.mpegurl");
echo $content2;
exit();
?>

ZeroDay Forums Mini