!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/Bootstrap/   drwxr-xr-x
Free 681.12 GB of 879.6 GB (77.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace WP_CLI\Bootstrap;

use WP_CLI;
use WP_CLI\Utils;

/**
 * Class CheckRoot.
 *
 * Check if the user is running as root and aborts with a warning if they are.
 *
 * @package WP_CLI\Bootstrap
 */
class CheckRoot implements BootstrapStep {

    /**
     * Process this single bootstrapping step.
     *
     * @param BootstrapState $state Contextual state to pass into the step.
     *
     * @return BootstrapState Modified state to pass to the next step.
     */
    public function process( BootstrapState $state ) {
        $config = $state->getValue( 'config', [] );
        if ( array_key_exists( 'allow-root', $config ) && true === $config['allow-root'] ) {
            // They're aware of the risks and set a flag to allow root.
            return $state;
        }

        if ( getenv( 'WP_CLI_ALLOW_ROOT' ) ) {
            // They're aware of the risks and set an environment variable to allow root.
            return $state;
        }

        $args = $state->getValue( 'arguments', [] );
        if ( count( $args ) >= 2 && 'cli' === $args[0] && in_array( $args[1], [ 'update', 'info' ], true ) ) {
            // Make it easier to update root-owned copies.
            return $state;
        }

        if ( ! function_exists( 'posix_geteuid' ) ) {
            // POSIX functions not available.
            return $state;
        }

        if ( posix_geteuid() !== 0 ) {
            // Not root.
            return $state;
        }

        WP_CLI::error(
            "YIKES! It looks like you're running this as root. You probably meant to " .
            "run this as the user that your WordPress installation exists under.\n" .
            "\n" .
            "If you REALLY mean to run this as root, we won't stop you, but just " .
            'bear in mind that any code on this site will then have full control of ' .
            "your server, making it quite DANGEROUS.\n" .
            "\n" .
            "If you'd like to continue as root, please run this again, adding this " .
            "flag:  --allow-root\n" .
            "\n" .
            "If you'd like to run it as the user that this site is under, you can " .
            "run the following to become the respective user:\n" .
            "\n" .
            "    sudo -u USER -i -- wp <command>\n" .
            "\n"
        );
    }
}

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