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


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

namespace JakubOnderka\PhpParallelLint\Process;

use JakubOnderka\PhpParallelLint\RunTimeException;

class PhpExecutable
{
    /** @var string */
    private $path;

    /**
     * Version as PHP_VERSION_ID constant
     * @var int
     */
    private $versionId;

    /** @var string */
    private $hhvmVersion;

    /** @var bool */
    private $isHhvmType;

    /**
     * @param string $path
     * @param int $versionId
     * @param string $hhvmVersion
     * @param bool $isHhvmType
     */
    public function __construct($path, $versionId, $hhvmVersion, $isHhvmType)
    {
        $this->path = $path;
        $this->versionId = $versionId;
        $this->hhvmVersion = $hhvmVersion;
        $this->isHhvmType = $isHhvmType;
    }

    /**
     * @return string
     */
    public function getHhvmVersion()
    {
        return $this->hhvmVersion;
    }

    /**
     * @return boolean
     */
    public function isIsHhvmType()
    {
        return $this->isHhvmType;
    }

    /**
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * @return int
     */
    public function getVersionId()
    {
        return $this->versionId;
    }

    /**
     * @param string $phpExecutable
     * @return PhpExecutable
     * @throws \Exception
     */
    public static function getPhpExecutable($phpExecutable)
    {
        $codeToExecute = <<<PHP
echo 'PHP;', PHP_VERSION_ID, ';', defined('HPHP_VERSION') ? HPHP_VERSION : null;
PHP;

        $process = new Process($phpExecutable, array('-n', '-r', $codeToExecute));
        $process->waitForFinish();

        try {
            if ($process->getStatusCode() !== 0 && $process->getStatusCode() !== 255) {
                throw new RunTimeException("Unable to execute '{$phpExecutable}'.");
            }

            return self::getPhpExecutableFromOutput($phpExecutable, $process->getOutput());

        } catch (RunTimeException $e) {
            // Try HHVM type
            $process = new Process($phpExecutable, array('--php', '-r', $codeToExecute));
            $process->waitForFinish();

            if ($process->getStatusCode() !== 0 && $process->getStatusCode() !== 255) {
                throw new RunTimeException("Unable to execute '{$phpExecutable}'.");
            }

            return self::getPhpExecutableFromOutput($phpExecutable, $process->getOutput(), $isHhvmType = true);
        }
    }

    /**
     * @param string $phpExecutable
     * @param string $output
     * @param bool $isHhvmType
     * @return PhpExecutable
     * @throws RunTimeException
     */
    private static function getPhpExecutableFromOutput($phpExecutable, $output, $isHhvmType = false)
    {
        $parts = explode(';', $output);

        if ($parts[0] !== 'PHP' || !preg_match('~([0-9]+)~', $parts[1], $matches)) {
            throw new RunTimeException("'{$phpExecutable}' is not valid PHP binary.");
        }

        $hhvmVersion = isset($parts[2]) ? $parts[2] : false;

        return new PhpExecutable(
            $phpExecutable,
            intval($matches[1]),
            $hhvmVersion,
            $isHhvmType
        );
    }
}

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