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


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

use WP_CLI\Utils;

/**
 * Base command that all checksum commands rely on.
 *
 * @package wp-cli
 */
class Checksum_Base_Command extends WP_CLI_Command {

    /**
     * Normalizes directory separators to slashes.
     *
     * @param string $path Path to convert.
     *
     * @return string Path with all backslashes replaced by slashes.
     */
    public static function normalize_directory_separators( $path ) {
        return str_replace( '\\', '/', $path );
    }

    /**
     * Read a remote file and return its contents.
     *
     * @param string $url URL of the remote file to read.
     *
     * @return mixed
     */
    protected static function _read( $url ) { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore -- Could be used in classes extending this class.
        $headers  = array( 'Accept' => 'application/json' );
        $response = Utils\http_request(
            'GET',
            $url,
            null,
            $headers,
            array( 'timeout' => 30 )
        );
        if ( 200 === $response->status_code ) {
            return $response->body;
        }
        WP_CLI::error( "Couldn't fetch response from {$url} (HTTP code {$response->status_code})." );
    }

    /**
     * Recursively get the list of files for a given path.
     *
     * @param string $path Root path to start the recursive traversal in.
     *
     * @return array<string>
     */
    protected function get_files( $path ) {
        $filtered_files = array();
        try {
            $files = new RecursiveIteratorIterator(
                new RecursiveCallbackFilterIterator(
                    new RecursiveDirectoryIterator(
                        $path,
                        RecursiveDirectoryIterator::SKIP_DOTS
                    ),
                    function ( $current ) use ( $path ) {
                        return $this->filter_file( self::normalize_directory_separators( substr( $current->getPathname(), strlen( $path ) ) ) );
                    }
                ),
                RecursiveIteratorIterator::CHILD_FIRST
            );
            foreach ( $files as $file_info ) {
                if ( $file_info->isFile() ) {
                    $filtered_files[] = self::normalize_directory_separators( substr( $file_info->getPathname(), strlen( $path ) ) );
                }
            }
        } catch ( Exception $e ) {
            WP_CLI::error( $e->getMessage() );
        }

        return $filtered_files;
    }

    /**
     * Whether to include the file in the verification or not.
     *
     * Can be overridden in subclasses.
     *
     * @param string $filepath Path to a file.
     *
     * @return bool
     */
    protected function filter_file( $filepath ) {
        return true;
    }
}

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