!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/pail/src/   drwxr-xr-x
Free 28.41 GB of 117.98 GB (24.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Pail;

use 
Illuminate\Support\Facades\Process;
use 
Illuminate\Support\Str;
use 
Laravel\Pail\Printers\CliPrinter;
use 
Laravel\Pail\ValueObjects\MessageLogged;
use 
Symfony\Component\Console\Output\OutputInterface;

class 
ProcessFactory
{
    
/**
     * Creates a new instance of the process factory.
     */
    
public function run(File $fileOutputInterface $outputstring $basePathOptions $options): void
    
{
        
$printer = new CliPrinter($output$basePath);

        
$remainingBuffer '';

        
Process::timeout($options->timeout())
            ->
tty(false)
            ->
run(
                
$this->command($file),
                function (
string $typestring $buffer) use ($options$printer, &$remainingBuffer) {
                    
$lines Str::of($buffer)->explode("\n");

                    if (
$remainingBuffer !== '' && isset($lines[0])) {
                        
$lines[0] = $remainingBuffer.$lines[0];
                        
$remainingBuffer '';
                    }

                    if (
$lines->last() === '') {
                        
$lines $lines->slice(0, -1);
                    } elseif (! 
str_ends_with((string) $lines->last(), "\n")) {
                        
$remainingBuffer $lines->pop();
                    }

                    
$lines
                        
->filter(fn (string $line) => $line !== '')
                        ->
map(fn (string $line) => MessageLogged::fromJson($line))
                        ->
filter(fn (MessageLogged $messageLogged) => $options->accepts($messageLogged))
                        ->
each(fn (MessageLogged $messageLogged) => $printer->print($messageLogged));
                }
            );
    }

    
/**
     * Returns the raw command.
     */
    
protected function command(File $file): string
    
{
        return 
'\\tail -F "'.$file->__toString().'"';
    }
}

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