added official hacktheboo2024 writeups
This commit is contained in:
parent
1f7a9b0566
commit
e3c46450f7
327 changed files with 14303 additions and 0 deletions
14
htb/hacktheboo2024/web/web_void_whispers/challenge/index.php
Normal file
14
htb/hacktheboo2024/web/web_void_whispers/challenge/index.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php spl_autoload_register(function ($name) {
|
||||
if (preg_match('/Controller$/', $name)) {
|
||||
$name = "controllers/{$name}";
|
||||
} elseif (preg_match('/Model$/', $name)) {
|
||||
$name = "models/{$name}";
|
||||
}
|
||||
include_once "{$name}.php";
|
||||
});
|
||||
|
||||
$router = new Router();
|
||||
$router->new('GET', '/', 'IndexController@index');
|
||||
$router->new('POST', '/update', 'IndexController@updateSetting');
|
||||
|
||||
die($router->match());
|
Loading…
Add table
Add a link
Reference in a new issue