shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
mpc.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
Http
/
Controllers
/
CP
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
CpController.php
<?php namespace Statamic\Http\Controllers\CP; use Illuminate\Auth\Access\AuthorizationException as LaravelAuthException; use Illuminate\Http\Request; use Statamic\Exceptions\AuthorizationException; use Statamic\Facades\File; use Statamic\Facades\Folder; use Statamic\Facades\YAML; use Statamic\Http\Controllers\Controller; use Statamic\Statamic; use Statamic\Support\Arr; use Statamic\Support\Str; /** * The base control panel controller. */ class CpController extends Controller { /** * @var \Illuminate\Http\Request */ protected $request; /** * Create a new CpController. */ public function __construct(Request $request) { $this->request = $request; } /** * Get all the template names from the current theme. * * @return array */ public function templates() { $templates = []; foreach (Folder::disk('resources')->getFilesByTypeRecursively('templates', 'html') as $path) { $parts = explode('/', $path); array_shift($parts); $templates[] = Str::removeRight(implode('/', $parts), '.html'); } return $templates; } public function themes() { $themes = []; foreach (Folder::disk('themes')->getFolders('/') as $folder) { $name = $folder; // Get the name if one exists in a meta file if (File::disk('themes')->exists($folder.'/meta.yaml')) { $meta = YAML::parse(File::disk('themes')->get($folder.'/meta.yaml')); $name = Arr::get($meta, 'name', $folder); } $themes[] = compact('folder', 'name'); } return $themes; } /** * 404. */ public function pageNotFound() { return response()->view('statamic::errors.404', [], 404); } public function authorize($ability, $args = [], $message = null) { $message = $message ?? __('This action is unauthorized.'); try { return parent::authorize($ability, $args); } catch (LaravelAuthException $e) { throw new AuthorizationException($message); } } public function authorizeIf($condition, $ability, $args = [], $message = null) { if ($condition) { return $this->authorize($ability, $args, $message); } } public function authorizePro() { if (! Statamic::pro()) { throw new AuthorizationException(__('Statamic Pro is required.')); } } public function authorizeProIf($condition) { if ($condition) { return $this->authorizePro(); } } }
© 2026 UnknownSec