!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/vendor/wp-cli/shell-command/src/   drwxr-xr-x
Free 711.11 GB of 879.6 GB (80.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use WP_CLI\Utils;

class Shell_Command extends WP_CLI_Command {

    /**
     * Opens an interactive PHP console for running and testing PHP code.
     *
     * `wp shell` allows you to evaluate PHP statements and expressions
     * interactively, from within a WordPress environment. Type a bit of code,
     * hit enter, and see the code execute right before you. Because WordPress
     * is loaded, you have access to all the functions, classes and globals
     * that you can use within a WordPress plugin, for example.
     *
     * ## OPTIONS
     *
     * [--basic]
     * : Force the use of WP-CLI's built-in PHP REPL, even if the Boris or
     * PsySH PHP REPLs are available.
     *
     * ## EXAMPLES
     *
     *     # Call get_bloginfo() to get the name of the site.
     *     $ wp shell
     *     wp> get_bloginfo( 'name' );
     *     => string(6) "WP-CLI"
     */
    public function __invoke( $_, $assoc_args ) {
        $implementations = array(
            'Psy\\Shell',
            'Boris\\Boris',
            'WP_CLI\\Shell\\REPL',
        );

        if ( Utils\get_flag_value( $assoc_args, 'basic' ) ) {
            $class = 'WP_CLI\\Shell\\REPL';
        } else {
            foreach ( $implementations as $candidate ) {
                if ( class_exists( $candidate ) ) {
                    $class = $candidate;
                    break;
                }
            }
        }

        if ( 'Psy\\Shell' === $class ) {
            $shell = new Psy\Shell();
            $shell->run();
        } else {
            $repl = new $class( 'wp> ' );
            $repl->start();
        }
    }
}

:: 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.0508 ]--