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/img.123vid.top/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/img.123vid.top/yt_trend2_con.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 format_string($str2){
    $str = bodau($str2);
    $str = preg_replace('/^[^\p{L}\p{Nd}]+/',' ', $str);
    $str = trim($str);
    $str = preg_replace('/\s+/', ' ', $str);
    $str = preg_replace('/\s+/', '-', $str);
    return empty($str)?str_replace(' ','-',$str2):strtolower($str);
}
function bodau($str)
{
    $chuCoDau=array("à","á","ạ","ả","ã","â","ầ","ấ","ậ","ẩ","ẫ","ă",
        "ằ","ắ","ặ","ẳ","ẵ","è","é","ẹ","ẻ","ẽ","ê","ề"
    ,"ế","ệ","ể","ễ",
        "ì","í","ị","ỉ","ĩ",
        "ò","ó","ọ","ỏ","õ","ô","ồ","ố","ộ","ổ","ỗ","ơ"
    ,"ờ","ớ","ợ","ở","ỡ",
        "ù","ú","ụ","ủ","ũ","ư","ừ","ứ","ự","ử","ữ",
        "ỳ","ý","ỵ","ỷ","ỹ",
        "đ",
        "À","Á","Ạ","Ả","Ã","Â","Ầ","Ấ","Ậ","Ẩ","Ẫ","Ă"
    ,"Ằ","Ắ","Ặ","Ẳ","Ẵ",
        "È","É","Ẹ","Ẻ","Ẽ","Ê","Ề","Ế","Ệ","Ể","Ễ",
        "Ì","Í","Ị","Ỉ","Ĩ",
        "Ò","Ó","Ọ","Ỏ","Õ","Ô","Ồ","Ố","Ộ","Ổ","Ỗ","Ơ"
    ,"Ờ","Ớ","Ợ","Ở","Ỡ",
        "Ù","Ú","Ụ","Ủ","Ũ","Ư","Ừ","Ứ","Ự","Ử","Ữ",
        "Ỳ","Ý","Ỵ","Ỷ","Ỹ",
        "Đ","?","&",",","/",".","!","@","#","$","%","//",":","\"","\\","'","$","^","(",")","\"","=","_","__","\"","“","”","-"," - ","|","[","]");

    $chuKoDau=array("a","a","a","a","a","a","a","a","a","a","a"
    ,"a","a","a","a","a","a",
        "e","e","e","e","e","e","e","e","e","e","e",
        "i","i","i","i","i",
        "o","o","o","o","o","o","o","o","o","o","o","o"
    ,"o","o","o","o","o",
        "u","u","u","u","u","u","u","u","u","u","u",
        "y","y","y","y","y",
        "d",
        "A","A","A","A","A","A","A","A","A","A","A","A"
    ,"A","A","A","A","A",
        "E","E","E","E","E","E","E","E","E","E","E",
        "I","I","I","I","I",
        "O","O","O","O","O","O","O","O","O","O","O","O"
    ,"O","O","O","O","O",
        "U","U","U","U","U","U","U","U","U","U","U",
        "Y","Y","Y","Y","Y",
        "D","","","","","","","","","","","","","","","","","","","","","","","","","","","",'-','','','');
    $outstr = str_replace($chuCoDau,$chuKoDau,$str);
    $outstr = strtolower(trim($outstr));
    return $outstr;
}
function curl_func($url,$ref) {
    $ch = curl_init();
    $head[] = 'Host: m.youtube.com';
    $head[] ='User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0';
    $head[] = 'Accept: */*';
    $head[] = 'Accept-Language: en-US,en;q=0.5';
    $head[] = 'Accept-Encoding: gzip';
    $head[] = 'x-youtube-sts: 18421';
    $head[] = 'x-spf-referer: '.$ref;
    $head[] = 'X-YouTube-Client-Name: 2';
    $head[] = 'X-YouTube-Client-Version: 2.20200612.00.01';
    $head[] = 'X-YouTube-Device: cbr=Firefox&cbrand=mozilla&cbrver=77.0&ceng=Gecko&cengver=77.0&cmodel=firefox&cos=Windows&cosver=10.0&cplatform=MOBILE';
    $head[] = 'X-YouTube-Page-CL: 316164186';
    $head[] = 'X-YouTube-Page-Label: youtube.ytfe.mweb_20200611_0_RC1';
    $head[] = 'X-YouTube-Variants-Checksum: d733162d153183fc3d0ca28228a5f040';
    $head[] = 'X-YouTube-Utc-Offset: 420';
    $head[] = 'X-YouTube-Time-Zone: Asia/Ho_Chi_Minh';
    $head[] = 'X-YouTube-Ad-Signals: dt=1592151096861&flash=0&frm&u_tz=420&u_his=5&u_java&u_h=768&u_w=1366&u_ah=728&u_aw=1366&u_cd=24&u_nplug&u_nmime&bc=29&bih=152&biw=1349&brdim=-8%2C-8%2C-8%2C-8%2C1366%2C0%2C1382%2C744%2C1366%2C152&vis=1&wgl=true&ca_type=image';
    $head[] = 'Connection: keep-alive';
    $head[] = 'Referer: '.$ref;
    $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; ST-1st4jvl=itct=CA8QybcCIhMI_7G6ntmB6gIV1hNYCh0zzQkT';
    $head[] = 'Pragma: no-cache';
    $head[] = 'Cache-Control: no-cache';
    $head[] = 'TE: Trailers';
    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, $ref);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_COOKIEJAR,  'cookies-m-youtube-com-trend.txt');
    curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies-m-youtube-com-trend.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;
}
$ref = base64_decode($_GET['ref']);
$token = $_GET['token'];
$url = 'https://m.youtube.com/feed/trending?ctoken='.$token.'&pbj=1';
$content2 = curl_func($url,$ref);
$data = json_decode(trim($content2),true);

$detail['ref'] = base64_encode($ref);
$detail['next_token'] = $data['response']['continuationContents']['sectionListContinuation']['continuations']['0']['nextContinuationData']['continuation'];

$detail['videos'] = array();
$i=0;
foreach($data['response']['continuationContents']['sectionListContinuation']['contents'] as $key=>$val){

        $detail['videos'][$i]['title'] = $val['itemSectionRenderer']['contents']['0']['videoWithContextRenderer']['headline']['runs']['0']['text'];
        $detail['videos'][$i]['ftitle'] = format_string($detail['videos'][$i]['title']);
        $detail['videos'][$i]['id'] = $val['itemSectionRenderer']['contents']['0']['videoWithContextRenderer']['navigationEndpoint']['watchEndpoint']['videoId'];
        $detail['videos'][$i]['id_you_encode'] = bin2hex(str_encode($detail['videos'][$i]['id'], 'ngocgiac'));
        $detail['videos'][$i]['img'] = $val['itemSectionRenderer']['contents']['0']['videoWithContextRenderer']['thumbnail']['thumbnails']['4']['url'];
        $detail['videos'][$i]['duration'] = $val['itemSectionRenderer']['contents']['0']['videoWithContextRenderer']['lengthText']['runs']['0']['text'];

    $detail['videos'][$i]['label'] = $val['itemSectionRenderer']['contents']['0']['videoWithContextRenderer']['headline']['accessibility']['accessibilityData']['label'];
    $detail['videos'][$i]['view'] = $val['itemSectionRenderer']['contents']['0']['videoWithContextRenderer']['shortViewCountText']['runs']['0']['text'];
    $detail['videos'][$i]['channel_name'] = $val['itemSectionRenderer']['contents']['0']['videoWithContextRenderer']['shortBylineText']['runs']['0']['text'];
    $detail['videos'][$i]['channel_url'] = $val['itemSectionRenderer']['contents']['0']['videoWithContextRenderer']['shortBylineText']['runs']['0']['navigationEndpoint']['commandMetadata']['webCommandMetadata']['url'];
    if(strpos($detail['videos'][$i]['channel_url'],'channel/')!==false){
        $detail['videos'][$i]['channel_type'] = 'channel_ucid';
    }else{
        $detail['videos'][$i]['channel_type'] = 'channel_user';
    }
    $detail['videos'][$i]['channel_id'] = basename($detail['videos'][$i]['channel_url']);
        $i++;

}
print_r($detail);
exit();
header('Access-Control-Allow-Origin: https://123vid.top');
echo json_encode($detail);
exit();
print_r($detail);
exit();
?>

ZeroDay Forums Mini