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/AdvisoryParser.php

<?php

namespace Enlightn\SecurityChecker;

use Symfony\Component\Finder\Finder;
use Symfony\Component\Yaml\Yaml;

class AdvisoryParser
{
    /**
     * @var string
     */
    private $advisoriesDirectory;

    private $advisories = [];

    public function __construct($advisoriesDirectory)
    {
        $this->advisoriesDirectory = $advisoriesDirectory;
    }

    public function getAdvisories(array $allowList = [])
    {
        $files = (new Finder)->in($this->advisoriesDirectory)->files()->name('*.yaml');

        foreach ($files as $fileInfo) {
            $contents = Yaml::parseFile($fileInfo->getRealPath());

            if (isset($contents['cve']) && in_array($contents['cve'], $allowList, true)) {
                continue;
            }

            if (isset($contents['title']) && in_array($contents['title'], $allowList, true)) {
                continue;
            }

            $package = str_replace('composer://', '', $contents['reference']);

            unset($contents['reference']);

            $this->advisories[$package][] = $contents;
        }

        return $this->advisories;
    }
}

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