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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/symfony/process/   drwxr-xr-x
Free 116.97 GB of 200.55 GB (58.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ProcessUtils.php (3.2 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;

use 
Symfony\Component\Process\Exception\InvalidArgumentException;

/**
 * ProcessUtils is a bunch of utility methods.
 *
 * This class contains static methods only and is not meant to be instantiated.
 *
 * @author Martin HasoĊˆ <martin.hason@gmail.com>
 */
class ProcessUtils
{
    
/**
     * This class should not be instantiated.
     */
    
private function __construct()
    {
    }

    
/**
     * Escapes a string to be used as a shell argument.
     *
     * @param string $argument The argument that will be escaped
     *
     * @return string The escaped argument
     */
    
public static function escapeArgument($argument)
    {
        
//Fix for PHP bug #43784 escapeshellarg removes % from given string
        //Fix for PHP bug #49446 escapeshellarg doesn't work on Windows
        //@see https://bugs.php.net/bug.php?id=43784
        //@see https://bugs.php.net/bug.php?id=49446
        
if ('\\' === DIRECTORY_SEPARATOR) {
            if (
'' === $argument) {
                return 
escapeshellarg($argument);
            }

            
$escapedArgument '';
            
$quote false;
            foreach (
preg_split('/(")/'$argument, -1PREG_SPLIT_NO_EMPTY PREG_SPLIT_DELIM_CAPTURE) as $part) {
                if (
'"' === $part) {
                    
$escapedArgument .= '\\"';
                } elseif (
self::isSurroundedBy($part'%')) {
                    
// Avoid environment variable expansion
                    
$escapedArgument .= '^%"'.substr($part1, -1).'"^%';
                } else {
                    
// escape trailing backslash
                    
if ('\\' === substr($part, -1)) {
                        
$part .= '\\';
                    }
                    
$quote true;
                    
$escapedArgument .= $part;
                }
            }
            if (
$quote) {
                
$escapedArgument '"'.$escapedArgument.'"';
            }

            return 
$escapedArgument;
        }

        return 
escapeshellarg($argument);
    }

    
/**
     * Validates and normalizes a Process input.
     *
     * @param string $caller The name of method call that validates the input
     * @param mixed  $input  The input to validate
     *
     * @return mixed The validated input
     *
     * @throws InvalidArgumentException In case the input is not valid
     */
    
public static function validateInput($caller$input)
    {
        if (
null !== $input) {
            if (
is_resource($input)) {
                return 
$input;
            }
            if (
is_string($input)) {
                return 
$input;
            }
            if (
is_scalar($input)) {
                return (string) 
$input;
            }

            throw new 
InvalidArgumentException(sprintf('%s only accepts strings or stream resources.'$caller));
        }

        return 
$input;
    }

    private static function 
isSurroundedBy($arg$char)
    {
        return 
strlen($arg) && $char === $arg[0] && $char === $arg[strlen($arg) - 1];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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