/opt/cpanel/ea-wappspector/src/Matchers
<?php namespace Plesk\Wappspector\Matchers; use League\Flysystem\Filesystem; use League\Flysystem\FilesystemException; use League\Flysystem\StorageAttributes; use Plesk\Wappspector\MatchResult\DotNet as MatchResult; use Plesk\Wappspector\MatchResult\EmptyMatchResult; use Plesk\Wappspector\MatchResult\MatchResultInterface; class DotNet implements MatcherInterface { use UpLevelMatcherTrait; private const HEX_SIGNATURE = '4d5a'; /** * @throws FilesystemException */ public function doMatch(Filesystem $fs, string $path): MatchResultInterface { foreach ($fs->listContents($path) as $item) { /** @var StorageAttributes $item */ if (!$item->isFile() || !str_ends_with($item->path(), '.dll')) { continue; } $handle = $fs->readStream($item->path()); $hex = bin2hex(fread($handle, 4)); if (str_contains($hex, self::HEX_SIGNATURE)) { return new MatchResult($path); } } return new EmptyMatchResult(); } }
.
Edit
..
Edit
CakePHP.php
Edit
CodeIgniter.php
Edit
Composer.php
Edit
DotNet.php
Edit
Drupal.php
Edit
Duda.php
Edit
Joomla.php
Edit
Laravel.php
Edit
MatcherInterface.php
Edit
NodeJs.php
Edit
Php.php
Edit
Prestashop.php
Edit
Python.php
Edit
Ruby.php
Edit
Sitejet.php
Edit
Siteplus.php
Edit
Sitepro.php
Edit
Symfony.php
Edit
Typo3.php
Edit
UpLevelMatcherTrait.php
Edit
WebPresenceBuilder.php
Edit
Wordpress.php
Edit
Yii.php
Edit