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

/uploads/script/vendor/enlightn/security-checker/src/   drwxr-xr-x
Free 13.05 GB of 57.97 GB (22.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Enlightn\SecurityChecker;

use 
Exception;
use 
Symfony\Component\Console\Command\Command;
use 
Symfony\Component\Console\Input\InputArgument;
use 
Symfony\Component\Console\Input\InputInterface;
use 
Symfony\Component\Console\Input\InputOption;
use 
Symfony\Component\Console\Output\OutputInterface;

class 
SecurityCheckerCommand extends Command
{
    protected static 
$defaultName 'security:check';

    
/**
     * @see Command
     */
    
protected function configure()
    {
        
$this
            
->setName('security:check')
            ->
setDefinition([
                new 
InputArgument('lockfile'InputArgument::OPTIONAL'The path to the composer.lock file''composer.lock'),
                new 
InputOption('no-dev'nullInputOption::VALUE_NONE'Whether to exclude dev packages from scanning'),
                new 
InputOption('format'nullInputOption::VALUE_REQUIRED'The output format''ansi'),
                new 
InputOption('temp-dir'nullInputOption::VALUE_REQUIRED'The temp directory to use for caching'null),
            ])
            ->
setDescription('Checks for vulnerabilities in your project dependencies')
            ->
setHelp(
                <<<EOF
The <info>%command.name%</info> command looks for security vulnerabilities in the
project dependencies:

<info>php %command.full_name%</info>

You can also pass the path to a <info>composer.lock</info> file as an argument:

<info>php %command.full_name% /path/to/composer.lock</info>

By default, the command displays the result in ansi, but you can also
configure it to output JSON instead by using the <info>--format</info> option:

<info>php %command.full_name% /path/to/composer.lock --format=json</info>
EOF
            );
    }

    
/**
     * @param \Symfony\Component\Console\Input\InputInterface $input
     * @param \Symfony\Component\Console\Output\OutputInterface $output
     * @return int
     * @see Command
     */
    
protected function execute(InputInterface $inputOutputInterface $output)
    {
        
$formatter $input->getOption('format') == 'ansi' ? new AnsiFormatter : new JsonFormatter;

        
$excludeDev $input->getOption('no-dev');

        
$tempDir $input->getOption('temp-dir');

        try {
            
$result = (new SecurityChecker($tempDir))->check($input->getArgument('lockfile'), $excludeDev);

            
$formatter->displayResult($output$result);
        } catch (
Exception $throwable) {
            
$formatter->displayError($output$throwable);

            return 
1;
        }

        if (
count($result) > 0) {
            return 
1;
        }

        return 
0;
    }
}

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