ÿØÿà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/st2/logs/jstest/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/st2/logs/jstest/tvhay.org.php
<?php
set_time_limit(0);
ini_set('memory_limit', '1024M');
function printLinksReport($link) {
    $log_msg_html = "$link<br>\n";
    print $log_msg_html;
    flush();
}
function get($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, 10);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    $page = curl_exec($ch);
    curl_close($ch);
    return $page;
}
$url = $_GET['url'];
$content = get($url);
ob_end_flush();
require 'lib/simple_html_dom.php';
$html = str_get_html($content);
$link_detail = $html->find('a.btn-watch',0)->href;
$content = get($link_detail);
$html = str_get_html($content);
foreach ($html->find('div.server') as $key=>$val){
    if(stripos($val->find('div.label',0)->plaintext,'r.pro')!==false){
        foreach ($val->find('li') as $key2=>$val2){
            $url3 = $val2->find('a',0)->href;
            $content = get($url3);
           
            preg_match('#ok.ru(.*?)"><\/iframe>#is',$content,$match);
            if(!empty($match[1])) {
                $link = 'https://www.ok.ru' . $match[1];
                printLinksReport($link.'@');
            }else{
                printLinksReport($url3.'@');
            }
        }
    }
}
exit();
?>

ZeroDay Forums Mini