Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/vendor/enlightn/security-checker/src/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/vendor/enlightn/security-checker/src/AnsiFormatter.php

<?php

namespace Enlightn\SecurityChecker;

use Exception;
use Symfony\Component\Console\Output\OutputInterface;

class AnsiFormatter implements FormatterInterface
{
    /**
     * Display the result.
     *
     * @param \Symfony\Component\Console\Output\OutputInterface $output
     * @param array $result
     * @return void
     */
    public function displayResult(OutputInterface $output, array $result)
    {
        if ($count = count($result)) {
            $status = 'CRITICAL';
            $style = 'error';
        } else {
            $status = 'OK';
            $style = 'info';
        }

        $output->writeln(sprintf(
            '<%s>[%s] %d %s known vulnerabilities</>',
            $style,
            $status,
            $count,
            1 === $count ? 'package has' : 'packages have'
        ));

        if (0 !== $count) {
            $output->write("\n");

            foreach ($result as $dependency => $issues) {
                $dependencyFullName = $dependency.' ('.$issues['version'].')';
                $output->writeln('<info>'.$dependencyFullName."\n".str_repeat(
                    '-',
                    strlen($dependencyFullName)
                )."</>\n");

                foreach ($issues['advisories'] as $issue => $details) {
                    $output->write(' * ');
                    if (! empty($details['cve'])) {
                        $output->write('<comment>'.$details['cve'].': </comment>');
                    }
                    $output->writeln($details['title']);

                    if (! empty($details['link'])) {
                        $output->writeln('   '.$details['link']);
                    }

                    $output->writeln('');
                }
            }
        }
    }

    /**
     * Display the error.
     *
     * @param \Symfony\Component\Console\Output\OutputInterface $output
     * @param \Exception $exception
     * @return void
     */
    public function displayError(OutputInterface $output, Exception $exception)
    {
        $output->writeln(sprintf(
            '<error>[ERROR] Vulnerabilities scan failed with exception: %s</error>',
            $exception->getMessage()
        ));
    }
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net