├── .DS_Store ├── .env.example ├── .git-credentials ├── .gitattributes ├── .gitignore ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ └── ResetPasswordController.php │ │ ├── Controller.php │ │ ├── HomeController.php │ │ ├── adminController.php │ │ └── ctfController.php │ ├── Kernel.php │ └── Middleware │ │ ├── EncryptCookies.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php └── User.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── database.php ├── filesystems.php ├── mail.php ├── queue.php ├── services.php ├── session.php └── view.php ├── ctf.sql ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ └── 2014_10_12_100000_create_password_resets_table.php └── seeds │ └── DatabaseSeeder.php ├── nohup.out ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── admin │ └── assets │ │ ├── css │ │ ├── admin.css │ │ ├── amazeui.min.css │ │ └── app.css │ │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ │ ├── i │ │ ├── app-icon72x72@2x.png │ │ ├── examples │ │ │ ├── admin-chrome.png │ │ │ ├── admin-firefox.png │ │ │ ├── admin-ie.png │ │ │ ├── admin-opera.png │ │ │ ├── admin-safari.png │ │ │ ├── adminPage.png │ │ │ ├── blogPage.png │ │ │ ├── landing.png │ │ │ ├── landingPage.png │ │ │ ├── loginPage.png │ │ │ └── sidebarPage.png │ │ ├── favicon.png │ │ └── startup-640x1096.png │ │ ├── img │ │ ├── 32.jpg │ │ ├── 43.jpg │ │ ├── a1.png │ │ ├── a10.png │ │ ├── a2.png │ │ ├── a3.png │ │ ├── a4.png │ │ ├── a5.png │ │ ├── a6.png │ │ ├── a7.png │ │ ├── a8.png │ │ ├── a9.png │ │ ├── lbbg.png │ │ ├── logo.png │ │ ├── syncfusion-icons-white.png │ │ ├── user01.png │ │ ├── user02.png │ │ ├── user03.png │ │ ├── user04.png │ │ ├── user05.png │ │ ├── user06.png │ │ └── user07.png │ │ └── js │ │ ├── amazeui.min.js │ │ ├── app.js │ │ ├── echarts.min.js │ │ ├── iscroll.js │ │ └── jquery.min.js ├── css │ └── app.css ├── ctf │ ├── assets │ │ ├── .DS_Store │ │ ├── css │ │ │ ├── .DS_Store │ │ │ ├── bootstrap.css │ │ │ ├── popup-box.css │ │ │ ├── style-responsive.css │ │ │ ├── style.css │ │ │ ├── style2.css │ │ │ ├── table-responsive.css │ │ │ ├── to-do.css │ │ │ └── zabuto_calendar.css │ │ ├── font-awesome │ │ │ ├── .DS_Store │ │ │ ├── css │ │ │ │ ├── .DS_Store │ │ │ │ └── font-awesome.css │ │ │ └── fonts │ │ │ │ ├── .DS_Store │ │ │ │ ├── FontAwesome.otf │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ ├── fontawesome-webfont.svg │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ └── fontawesome-webfont.woff │ │ ├── fonts │ │ │ ├── .DS_Store │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ ├── img │ │ │ ├── .DS_Store │ │ │ ├── friends │ │ │ │ ├── .DS_Store │ │ │ │ ├── fr-01.jpg │ │ │ │ ├── fr-02.jpg │ │ │ │ ├── fr-03.jpg │ │ │ │ ├── fr-04.jpg │ │ │ │ ├── fr-05.jpg │ │ │ │ ├── fr-06.jpg │ │ │ │ ├── fr-07.jpg │ │ │ │ ├── fr-08.jpg │ │ │ │ ├── fr-09.jpg │ │ │ │ ├── fr-10.jpg │ │ │ │ └── fr-11.jpg │ │ │ ├── login-bg.jpg │ │ │ ├── nu1l.jpg │ │ │ ├── portfolio │ │ │ │ ├── .DS_Store │ │ │ │ ├── port01.jpg │ │ │ │ ├── port02.jpg │ │ │ │ ├── port03.jpg │ │ │ │ ├── port04.jpg │ │ │ │ ├── port05.jpg │ │ │ │ └── port06.jpg │ │ │ ├── ui-sam.jpg │ │ │ └── veneno.jpg │ │ ├── js │ │ │ ├── .DS_Store │ │ │ ├── bootstrap-inputmask │ │ │ │ ├── .DS_Store │ │ │ │ └── bootstrap-inputmask.min.js │ │ │ ├── bootstrap-switch.js │ │ │ ├── bootstrap.min.js │ │ │ ├── calendar-conf-events.js │ │ │ ├── chart-master │ │ │ │ ├── .DS_Store │ │ │ │ └── Chart.js │ │ │ ├── chartjs-conf.js │ │ │ ├── common-scripts.js │ │ │ ├── easy-pie-chart.js │ │ │ ├── fancybox │ │ │ │ ├── .DS_Store │ │ │ │ ├── jquery.fancybox.css │ │ │ │ └── jquery.fancybox.js │ │ │ ├── form-component.js │ │ │ ├── fullcalendar │ │ │ │ ├── .DS_Store │ │ │ │ ├── bootstrap-fullcalendar.css │ │ │ │ └── fullcalendar.min.js │ │ │ ├── gritter-conf.js │ │ │ ├── gritter │ │ │ │ ├── .DS_Store │ │ │ │ ├── css │ │ │ │ │ ├── .DS_Store │ │ │ │ │ ├── jquery.gritter.css │ │ │ │ │ └── jquery.gritter0.css │ │ │ │ ├── images │ │ │ │ │ ├── .DS_Store │ │ │ │ │ ├── gritter-light.png │ │ │ │ │ ├── gritter-long.png │ │ │ │ │ ├── gritter.png │ │ │ │ │ └── ie-spacer.gif │ │ │ │ └── js │ │ │ │ │ ├── .DS_Store │ │ │ │ │ └── jquery.gritter.js │ │ │ ├── jquery-1.8.3.min.js │ │ │ ├── jquery-easy-pie-chart │ │ │ │ ├── .DS_Store │ │ │ │ ├── jquery.easy-pie-chart.css │ │ │ │ └── jquery.easy-pie-chart.js │ │ │ ├── jquery-ui-1.9.2.custom.min.js │ │ │ ├── jquery.backstretch.min.js │ │ │ ├── jquery.dcjqaccordion.2.7.js │ │ │ ├── jquery.js │ │ │ ├── jquery.magnific-popup.js │ │ │ ├── jquery.nicescroll.js │ │ │ ├── jquery.scrollTo.min.js │ │ │ ├── jquery.sparkline.js │ │ │ ├── jquery.tagsinput.js │ │ │ ├── jquery.ui.touch-punch.min.js │ │ │ ├── morris-conf.js │ │ │ ├── sparkline-chart.js │ │ │ ├── tasks.js │ │ │ └── zabuto_calendar.js │ │ └── lineicons │ │ │ ├── .DS_Store │ │ │ ├── fonts │ │ │ ├── .DS_Store │ │ │ ├── linecons.eot │ │ │ ├── linecons.svg │ │ │ ├── linecons.ttf │ │ │ └── linecons.woff │ │ │ ├── index.html │ │ │ ├── lte-ie7.js │ │ │ └── style.css │ └── build │ │ ├── toastr.css │ │ ├── toastr.js.map │ │ ├── toastr.min.css │ │ └── toastr.min.js ├── favicon.ico ├── index.php ├── js │ └── app.js ├── robots.txt └── web.config ├── readme.md ├── resources ├── assets │ ├── js │ │ ├── app.js │ │ ├── bootstrap.js │ │ └── components │ │ │ └── ExampleComponent.vue │ └── sass │ │ ├── _variables.scss │ │ └── app.scss ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php └── views │ ├── adminpage │ ├── addtask.blade.php │ ├── editnotice.blade.php │ ├── edittask.blade.php │ ├── editteam.blade.php │ ├── hint.blade.php │ ├── home.blade.php │ ├── index.blade.php │ ├── notice.blade.php │ ├── task.blade.php │ └── team.blade.php │ ├── auth │ ├── login.blade.php │ ├── passwords │ │ ├── email.blade.php │ │ └── reset.blade.php │ └── register.blade.php │ ├── ctf │ ├── about.blade.php │ ├── challenge.blade.php │ ├── home.blade.php │ ├── index.blade.php │ ├── notice.blade.php │ └── score.blade.php │ ├── home.blade.php │ ├── jump.blade.php │ ├── layouts │ └── app.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── webpack.mix.js /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/.DS_Store -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_LOG_LEVEL=debug 6 | APP_URL=http://localhost 7 | 8 | DB_CONNECTION=mysql 9 | DB_HOST=127.0.0.1 10 | DB_PORT=3306 11 | DB_DATABASE=homestead 12 | DB_USERNAME=homestead 13 | DB_PASSWORD=secret 14 | 15 | BROADCAST_DRIVER=log 16 | CACHE_DRIVER=file 17 | SESSION_DRIVER=file 18 | SESSION_LIFETIME=120 19 | QUEUE_DRIVER=sync 20 | 21 | REDIS_HOST=127.0.0.1 22 | REDIS_PASSWORD=null 23 | REDIS_PORT=6379 24 | 25 | MAIL_DRIVER=smtp 26 | MAIL_HOST=smtp.mailtrap.io 27 | MAIL_PORT=2525 28 | MAIL_USERNAME=null 29 | MAIL_PASSWORD=null 30 | MAIL_ENCRYPTION=null 31 | 32 | PUSHER_APP_ID= 33 | PUSHER_APP_KEY= 34 | PUSHER_APP_SECRET= 35 | PUSHER_APP_CLUSTER=mt1 36 | -------------------------------------------------------------------------------- /.git-credentials: -------------------------------------------------------------------------------- 1 | http://1iqu0r:Dhy.2023@github.com 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | /.idea 7 | /.vagrant 8 | Homestead.json 9 | Homestead.yaml 10 | npm-debug.log 11 | yarn-error.log 12 | .env 13 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | $this->load(__DIR__.'/Commands'); 39 | 40 | require base_path('routes/console.php'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 40 | } 41 | 42 | /** 43 | * Get a validator for an incoming registration request. 44 | * 45 | * @param array $data 46 | * @return \Illuminate\Contracts\Validation\Validator 47 | */ 48 | protected function validator(array $data) 49 | { 50 | return Validator::make($data, [ 51 | 'name' => 'required|string|max:255|unique:users', 52 | 'email' => 'required|string|email|max:255|unique:users', 53 | 'password' => 'required|string|min:6|confirmed', 54 | ]); 55 | } 56 | 57 | /** 58 | * Create a new user instance after a valid registration. 59 | * 60 | * @param array $data 61 | * @return \App\User 62 | */ 63 | protected function create(array $data) 64 | { 65 | return User::create([ 66 | 'name' => $data['name'], 67 | 'email' => $data['email'], 68 | 'password' => bcrypt($data['password']), 69 | ]); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 18 | } 19 | 20 | /** 21 | * Show the application dashboard. 22 | * 23 | * @return \Illuminate\Http\Response 24 | */ 25 | public function index() 26 | { 27 | $user = DB::table('task')->where('typetask','pwn')->pluck('id')->toArray(); 28 | if(in_array('5',$user)){ 29 | var_dump($user); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 31 | \App\Http\Middleware\EncryptCookies::class, 32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 | \Illuminate\Session\Middleware\StartSession::class, 34 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 | \App\Http\Middleware\VerifyCsrfToken::class, 37 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 | ], 39 | 40 | 'api' => [ 41 | 'throttle:60,1', 42 | 'bindings', 43 | ], 44 | ]; 45 | 46 | /** 47 | * The application's route middleware. 48 | * 49 | * These middleware may be assigned to groups or used individually. 50 | * 51 | * @var array 52 | */ 53 | protected $routeMiddleware = [ 54 | 'auth' => \Illuminate\Auth\Middleware\Authenticate::class, 55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 57 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 58 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 59 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 60 | ]; 61 | } 62 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 'FORWARDED', 24 | Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR', 25 | Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST', 26 | Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT', 27 | Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO', 28 | ]; 29 | } 30 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'App\Listeners\EventListener', 18 | ], 19 | ]; 20 | 21 | /** 22 | * Register any events for your application. 23 | * 24 | * @return void 25 | */ 26 | public function boot() 27 | { 28 | parent::boot(); 29 | 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | // 43 | } 44 | 45 | /** 46 | * Define the "web" routes for the application. 47 | * 48 | * These routes all receive session state, CSRF protection, etc. 49 | * 50 | * @return void 51 | */ 52 | protected function mapWebRoutes() 53 | { 54 | Route::middleware('web') 55 | ->namespace($this->namespace) 56 | ->group(base_path('routes/web.php')); 57 | } 58 | 59 | /** 60 | * Define the "api" routes for the application. 61 | * 62 | * These routes are typically stateless. 63 | * 64 | * @return void 65 | */ 66 | protected function mapApiRoutes() 67 | { 68 | Route::prefix('api') 69 | ->middleware('api') 70 | ->namespace($this->namespace) 71 | ->group(base_path('routes/api.php')); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "description": "The Laravel Framework.", 4 | "keywords": ["framework", "laravel"], 5 | "license": "MIT", 6 | "type": "project", 7 | "require": { 8 | "php": ">=7.0.0", 9 | "fideloper/proxy": "~3.3", 10 | "laravel/framework": "5.5.*", 11 | "laravel/tinker": "~1.0" 12 | }, 13 | "require-dev": { 14 | "filp/whoops": "~2.0", 15 | "fzaninotto/faker": "~1.4", 16 | "mockery/mockery": "~1.0", 17 | "phpunit/phpunit": "~6.0", 18 | "symfony/thanks": "^1.0" 19 | }, 20 | "autoload": { 21 | "classmap": [ 22 | "database/seeds", 23 | "database/factories" 24 | ], 25 | "psr-4": { 26 | "App\\": "app/" 27 | } 28 | }, 29 | "autoload-dev": { 30 | "psr-4": { 31 | "Tests\\": "tests/" 32 | } 33 | }, 34 | "extra": { 35 | "laravel": { 36 | "dont-discover": [ 37 | ] 38 | } 39 | }, 40 | "scripts": { 41 | "post-root-package-install": [ 42 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 43 | ], 44 | "post-create-project-cmd": [ 45 | "@php artisan key:generate" 46 | ], 47 | "post-autoload-dump": [ 48 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 49 | "@php artisan package:discover" 50 | ] 51 | }, 52 | "config": { 53 | "preferred-install": "dist", 54 | "sort-packages": true, 55 | "optimize-autoloader": true 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | ], 48 | ], 49 | 50 | /* 51 | |-------------------------------------------------------------------------- 52 | | User Providers 53 | |-------------------------------------------------------------------------- 54 | | 55 | | All authentication drivers have a user provider. This defines how the 56 | | users are actually retrieved out of your database or other storage 57 | | mechanisms used by this application to persist your user's data. 58 | | 59 | | If you have multiple user tables or models you may configure multiple 60 | | sources which represent each model / table. These sources may then 61 | | be assigned to any extra authentication guards you have defined. 62 | | 63 | | Supported: "database", "eloquent" 64 | | 65 | */ 66 | 67 | 'providers' => [ 68 | 'users' => [ 69 | 'driver' => 'eloquent', 70 | 'model' => App\User::class, 71 | ], 72 | 73 | // 'users' => [ 74 | // 'driver' => 'database', 75 | // 'table' => 'users', 76 | // ], 77 | ], 78 | 79 | /* 80 | |-------------------------------------------------------------------------- 81 | | Resetting Passwords 82 | |-------------------------------------------------------------------------- 83 | | 84 | | You may specify multiple password reset configurations if you have more 85 | | than one user table or model in the application and you want to have 86 | | separate password reset settings based on the specific user types. 87 | | 88 | | The expire time is the number of minutes that the reset token should be 89 | | considered valid. This security feature keeps tokens short-lived so 90 | | they have less time to be guessed. You may change this as needed. 91 | | 92 | */ 93 | 94 | 'passwords' => [ 95 | 'users' => [ 96 | 'provider' => 'users', 97 | 'table' => 'password_resets', 98 | 'expire' => 60, 99 | ], 100 | ], 101 | 102 | ]; 103 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'encrypted' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | */ 30 | 31 | 'stores' => [ 32 | 33 | 'apc' => [ 34 | 'driver' => 'apc', 35 | ], 36 | 37 | 'array' => [ 38 | 'driver' => 'array', 39 | ], 40 | 41 | 'database' => [ 42 | 'driver' => 'database', 43 | 'table' => 'cache', 44 | 'connection' => null, 45 | ], 46 | 47 | 'file' => [ 48 | 'driver' => 'file', 49 | 'path' => storage_path('framework/cache/data'), 50 | ], 51 | 52 | 'memcached' => [ 53 | 'driver' => 'memcached', 54 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 55 | 'sasl' => [ 56 | env('MEMCACHED_USERNAME'), 57 | env('MEMCACHED_PASSWORD'), 58 | ], 59 | 'options' => [ 60 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 61 | ], 62 | 'servers' => [ 63 | [ 64 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 65 | 'port' => env('MEMCACHED_PORT', 11211), 66 | 'weight' => 100, 67 | ], 68 | ], 69 | ], 70 | 71 | 'redis' => [ 72 | 'driver' => 'redis', 73 | 'connection' => 'default', 74 | ], 75 | 76 | ], 77 | 78 | /* 79 | |-------------------------------------------------------------------------- 80 | | Cache Key Prefix 81 | |-------------------------------------------------------------------------- 82 | | 83 | | When utilizing a RAM based store such as APC or Memcached, there might 84 | | be other applications utilizing the same cache. So, we'll specify a 85 | | value to get prefixed to all our keys so we can avoid collisions. 86 | | 87 | */ 88 | 89 | 'prefix' => env( 90 | 'CACHE_PREFIX', 91 | str_slug(env('APP_NAME', 'laravel'), '_').'_cache' 92 | ), 93 | 94 | ]; 95 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Database Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here are each of the database connections setup for your application. 24 | | Of course, examples of configuring each database platform that is 25 | | supported by Laravel is shown below to make development simple. 26 | | 27 | | 28 | | All database work in Laravel is done through the PHP PDO facilities 29 | | so make sure you have the driver for your particular database of 30 | | choice installed on your machine before you begin development. 31 | | 32 | */ 33 | 34 | 'connections' => [ 35 | 36 | 'sqlite' => [ 37 | 'driver' => 'sqlite', 38 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 39 | 'prefix' => '', 40 | ], 41 | 42 | 'mysql' => [ 43 | 'driver' => 'mysql', 44 | 'host' => env('DB_HOST', '127.0.0.1'), 45 | 'port' => env('DB_PORT', '3306'), 46 | 'database' => env('DB_DATABASE', 'forge'), 47 | 'username' => env('DB_USERNAME', 'forge'), 48 | 'password' => env('DB_PASSWORD', ''), 49 | 'unix_socket' => env('DB_SOCKET', ''), 50 | 'charset' => 'utf8mb4', 51 | 'collation' => 'utf8mb4_unicode_ci', 52 | 'prefix' => '', 53 | 'strict' => true, 54 | 'engine' => null, 55 | ], 56 | 57 | 'pgsql' => [ 58 | 'driver' => 'pgsql', 59 | 'host' => env('DB_HOST', '127.0.0.1'), 60 | 'port' => env('DB_PORT', '5432'), 61 | 'database' => env('DB_DATABASE', 'forge'), 62 | 'username' => env('DB_USERNAME', 'forge'), 63 | 'password' => env('DB_PASSWORD', ''), 64 | 'charset' => 'utf8', 65 | 'prefix' => '', 66 | 'schema' => 'public', 67 | 'sslmode' => 'prefer', 68 | ], 69 | 70 | 'sqlsrv' => [ 71 | 'driver' => 'sqlsrv', 72 | 'host' => env('DB_HOST', 'localhost'), 73 | 'port' => env('DB_PORT', '1433'), 74 | 'database' => env('DB_DATABASE', 'forge'), 75 | 'username' => env('DB_USERNAME', 'forge'), 76 | 'password' => env('DB_PASSWORD', ''), 77 | 'charset' => 'utf8', 78 | 'prefix' => '', 79 | ], 80 | 81 | ], 82 | 83 | /* 84 | |-------------------------------------------------------------------------- 85 | | Migration Repository Table 86 | |-------------------------------------------------------------------------- 87 | | 88 | | This table keeps track of all the migrations that have already run for 89 | | your application. Using this information, we can determine which of 90 | | the migrations on disk haven't actually been run in the database. 91 | | 92 | */ 93 | 94 | 'migrations' => 'migrations', 95 | 96 | /* 97 | |-------------------------------------------------------------------------- 98 | | Redis Databases 99 | |-------------------------------------------------------------------------- 100 | | 101 | | Redis is an open source, fast, and advanced key-value store that also 102 | | provides a richer set of commands than a typical key-value systems 103 | | such as APC or Memcached. Laravel makes it easy to dig right in. 104 | | 105 | */ 106 | 107 | 'redis' => [ 108 | 109 | 'client' => 'predis', 110 | 111 | 'default' => [ 112 | 'host' => env('REDIS_HOST', '127.0.0.1'), 113 | 'password' => env('REDIS_PASSWORD', null), 114 | 'port' => env('REDIS_PORT', 6379), 115 | 'database' => 0, 116 | ], 117 | 118 | ], 119 | 120 | ]; 121 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "s3", "rackspace" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | ], 65 | 66 | ], 67 | 68 | ]; 69 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_DRIVER', 'smtp'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | SMTP Host Address 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may provide the host address of the SMTP server used by your 27 | | applications. A default option is provided that is compatible with 28 | | the Mailgun mail service which will provide reliable deliveries. 29 | | 30 | */ 31 | 32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 33 | 34 | /* 35 | |-------------------------------------------------------------------------- 36 | | SMTP Host Port 37 | |-------------------------------------------------------------------------- 38 | | 39 | | This is the SMTP port used by your application to deliver e-mails to 40 | | users of the application. Like the host we have set this value to 41 | | stay compatible with the Mailgun e-mail application by default. 42 | | 43 | */ 44 | 45 | 'port' => env('MAIL_PORT', 587), 46 | 47 | /* 48 | |-------------------------------------------------------------------------- 49 | | Global "From" Address 50 | |-------------------------------------------------------------------------- 51 | | 52 | | You may wish for all e-mails sent by your application to be sent from 53 | | the same address. Here, you may specify a name and address that is 54 | | used globally for all e-mails that are sent by your application. 55 | | 56 | */ 57 | 58 | 'from' => [ 59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 60 | 'name' => env('MAIL_FROM_NAME', 'Example'), 61 | ], 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | E-Mail Encryption Protocol 66 | |-------------------------------------------------------------------------- 67 | | 68 | | Here you may specify the encryption protocol that should be used when 69 | | the application send e-mail messages. A sensible default using the 70 | | transport layer security protocol should provide great security. 71 | | 72 | */ 73 | 74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | SMTP Server Username 79 | |-------------------------------------------------------------------------- 80 | | 81 | | If your SMTP server requires a username for authentication, you should 82 | | set it here. This will get used to authenticate with your server on 83 | | connection. You may also set the "password" value below this one. 84 | | 85 | */ 86 | 87 | 'username' => env('MAIL_USERNAME'), 88 | 89 | 'password' => env('MAIL_PASSWORD'), 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Sendmail System Path 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When using the "sendmail" driver to send e-mails, we will need to know 97 | | the path to where Sendmail lives on this server. A default path has 98 | | been provided here, which will work well on most of your systems. 99 | | 100 | */ 101 | 102 | 'sendmail' => '/usr/sbin/sendmail -bs', 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Markdown Mail Settings 107 | |-------------------------------------------------------------------------- 108 | | 109 | | If you are using Markdown based email rendering, you may configure your 110 | | theme and component paths here, allowing you to customize the design 111 | | of the emails. Or, you may simply stick with the Laravel defaults! 112 | | 113 | */ 114 | 115 | 'markdown' => [ 116 | 'theme' => 'default', 117 | 118 | 'paths' => [ 119 | resource_path('views/vendor/mail'), 120 | ], 121 | ], 122 | 123 | ]; 124 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_DRIVER', 'sync'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Queue Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may configure the connection information for each server that 26 | | is used by your application. A default configuration has been added 27 | | for each back-end shipped with Laravel. You are free to add more. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | ], 50 | 51 | 'sqs' => [ 52 | 'driver' => 'sqs', 53 | 'key' => env('SQS_KEY', 'your-public-key'), 54 | 'secret' => env('SQS_SECRET', 'your-secret-key'), 55 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 56 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 57 | 'region' => env('SQS_REGION', 'us-east-1'), 58 | ], 59 | 60 | 'redis' => [ 61 | 'driver' => 'redis', 62 | 'connection' => 'default', 63 | 'queue' => 'default', 64 | 'retry_after' => 90, 65 | ], 66 | 67 | ], 68 | 69 | /* 70 | |-------------------------------------------------------------------------- 71 | | Failed Queue Jobs 72 | |-------------------------------------------------------------------------- 73 | | 74 | | These options configure the behavior of failed queue job logging so you 75 | | can control which database and table are used to store the jobs that 76 | | have failed. You may change them to any database / table you wish. 77 | | 78 | */ 79 | 80 | 'failed' => [ 81 | 'database' => env('DB_CONNECTION', 'mysql'), 82 | 'table' => 'failed_jobs', 83 | ], 84 | 85 | ]; 86 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | ], 21 | 22 | 'ses' => [ 23 | 'key' => env('SES_KEY'), 24 | 'secret' => env('SES_SECRET'), 25 | 'region' => 'us-east-1', 26 | ], 27 | 28 | 'sparkpost' => [ 29 | 'secret' => env('SPARKPOST_SECRET'), 30 | ], 31 | 32 | 'stripe' => [ 33 | 'model' => App\User::class, 34 | 'key' => env('STRIPE_KEY'), 35 | 'secret' => env('STRIPE_SECRET'), 36 | ], 37 | 38 | ]; 39 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => realpath(storage_path('framework/views')), 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | define(App\User::class, function (Faker $faker) { 17 | return [ 18 | 'name' => $faker->name, 19 | 'email' => $faker->unique()->safeEmail, 20 | 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret 21 | 'remember_token' => str_random(10), 22 | ]; 23 | }); 24 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->string('password'); 21 | $table->rememberToken(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('users'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.17", 14 | "bootstrap-sass": "^3.3.7", 15 | "cross-env": "^5.1", 16 | "jquery": "^3.2", 17 | "laravel-mix": "^1.0", 18 | "lodash": "^4.17.4", 19 | "vue": "^2.5.7" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Feature 14 | 15 | 16 | 17 | ./tests/Unit 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Handle Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/admin/assets/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/admin/assets/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/admin/assets/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/admin/assets/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/admin/assets/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /public/admin/assets/i/app-icon72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/app-icon72x72@2x.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/admin-chrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/admin-chrome.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/admin-firefox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/admin-firefox.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/admin-ie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/admin-ie.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/admin-opera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/admin-opera.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/admin-safari.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/admin-safari.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/adminPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/adminPage.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/blogPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/blogPage.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/landing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/landing.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/landingPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/landingPage.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/loginPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/loginPage.png -------------------------------------------------------------------------------- /public/admin/assets/i/examples/sidebarPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/examples/sidebarPage.png -------------------------------------------------------------------------------- /public/admin/assets/i/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/favicon.png -------------------------------------------------------------------------------- /public/admin/assets/i/startup-640x1096.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/i/startup-640x1096.png -------------------------------------------------------------------------------- /public/admin/assets/img/32.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/32.jpg -------------------------------------------------------------------------------- /public/admin/assets/img/43.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/43.jpg -------------------------------------------------------------------------------- /public/admin/assets/img/a1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a1.png -------------------------------------------------------------------------------- /public/admin/assets/img/a10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a10.png -------------------------------------------------------------------------------- /public/admin/assets/img/a2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a2.png -------------------------------------------------------------------------------- /public/admin/assets/img/a3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a3.png -------------------------------------------------------------------------------- /public/admin/assets/img/a4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a4.png -------------------------------------------------------------------------------- /public/admin/assets/img/a5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a5.png -------------------------------------------------------------------------------- /public/admin/assets/img/a6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a6.png -------------------------------------------------------------------------------- /public/admin/assets/img/a7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a7.png -------------------------------------------------------------------------------- /public/admin/assets/img/a8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a8.png -------------------------------------------------------------------------------- /public/admin/assets/img/a9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/a9.png -------------------------------------------------------------------------------- /public/admin/assets/img/lbbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/lbbg.png -------------------------------------------------------------------------------- /public/admin/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/logo.png -------------------------------------------------------------------------------- /public/admin/assets/img/syncfusion-icons-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/syncfusion-icons-white.png -------------------------------------------------------------------------------- /public/admin/assets/img/user01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/user01.png -------------------------------------------------------------------------------- /public/admin/assets/img/user02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/user02.png -------------------------------------------------------------------------------- /public/admin/assets/img/user03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/user03.png -------------------------------------------------------------------------------- /public/admin/assets/img/user04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/user04.png -------------------------------------------------------------------------------- /public/admin/assets/img/user05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/user05.png -------------------------------------------------------------------------------- /public/admin/assets/img/user06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/user06.png -------------------------------------------------------------------------------- /public/admin/assets/img/user07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/admin/assets/img/user07.png -------------------------------------------------------------------------------- /public/ctf/assets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/css/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/css/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/css/style2.css: -------------------------------------------------------------------------------- 1 | html,body,.container{font-family:lato,latooffline,sans-serif}h1,h2{font-family:raleway,ralewayoffline,sans-serif;font-weight:500;letter-spacing:2px}a{color:#337ab7;text-decoration:none}table>thead>tr>td{border-top:none!important}#score-graph{height:450px;display:block;clear:both}.fa-spin.spinner{margin-top:225px;text-align:center;opacity:.5}.spinner-error{padding-top:20vh;text-align:center;opacity:.5}.jumbotron{background-color:#343a40;color:#fff;border-radius:0;text-align:center}.form-control{position:relative;display:block;padding:.8em;border-radius:0;background:#f0f0f0;color:#aaa;font-weight:400;font-family:avenir next,helvetica neue,Helvetica,Arial,sans-serif;-webkit-appearance:none}.form-control:focus{background-color:transparent;border-color:#a3d39c;box-shadow:0 0 0 .2rem #a3d39c;transition:background-color .3s,border-color .3s}.input-filled-valid{background-color:transparent;border-color:#a3d39c;box-shadow:0 0 0 .2rem #a3d39c;transition:background-color .3s,border-color .3s}.input-filled-invalid{background-color:transparent;border-color:#d46767;box-shadow:0 0 0 .2rem #d46767;transition:background-color .3s,border-color .3s}.btn-outlined.btn-theme{background:0 0;color:#545454;border-color:#545454;border:3px solid}.btn-outlined{border-radius:0;-webkit-transition:all .3s;-moz-transition:all .3s;transition:all .3s}.btn{letter-spacing:1px;text-decoration:none;-moz-user-select:none;border-radius:0;cursor:pointer;display:inline-block;margin-bottom:0;vertical-align:middle;white-space:nowrap;font-size:14px;line-height:20px;font-weight:700;padding:8px 20px}.btn-info{background-color:#5b7290!important;border-color:#5b7290!important}.badge-info{background-color:#5b7290!important}.alert{border-radius:0!important;padding:.8em}.btn-fa{cursor:pointer}.close{cursor:pointer}.cursor-pointer{cursor:pointer}.cursor-help{cursor:help}select.form-control{height:auto!important}.card{border-radius:0!important}.modal-content{-webkit-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important}.fa-disabled{opacity:.5;cursor:not-allowed} 2 | -------------------------------------------------------------------------------- /public/ctf/assets/css/table-responsive.css: -------------------------------------------------------------------------------- 1 | /*Unseen Column*/ 2 | @media only screen and (max-width: 800px) { 3 | #unseen table td:nth-child(2), 4 | #unseen table th:nth-child(2) {display: none;} 5 | } 6 | 7 | @media only screen and (max-width: 640px) { 8 | #unseen table td:nth-child(4), 9 | #unseen table th:nth-child(4), 10 | #unseen table td:nth-child(7), 11 | #unseen table th:nth-child(7), 12 | #unseen table td:nth-child(8), 13 | #unseen table th:nth-child(8){display: none;} 14 | } 15 | 16 | /*flip-scroll*/ 17 | 18 | @media only screen and (max-width: 800px) { 19 | #flip-scroll .cf:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } 20 | #flip-scroll * html .cf { zoom: 1; } 21 | #flip-scroll *:first-child+html .cf { zoom: 1; } 22 | #flip-scroll table { width: 100%; border-collapse: collapse; border-spacing: 0; } 23 | 24 | #flip-scroll th, 25 | #flip-scroll td { margin: 0; vertical-align: top; } 26 | #flip-scroll th { text-align: left; } 27 | #flip-scroll table { display: block; position: relative; width: 100%; } 28 | #flip-scroll thead { display: block; float: left; } 29 | #flip-scroll tbody { display: block; width: auto; position: relative; overflow-x: auto; white-space: nowrap; } 30 | #flip-scroll thead tr { display: block; } 31 | #flip-scroll th { display: block; text-align: right; } 32 | #flip-scroll tbody tr { display: inline-block; vertical-align: top; } 33 | #flip-scroll td { display: block; min-height: 1.25em; text-align: left; } 34 | 35 | 36 | /* sort out borders */ 37 | 38 | #flip-scroll th { border-bottom: 0; border-left: 0; } 39 | #flip-scroll td { border-left: 0; border-right: 0; border-bottom: 0; } 40 | #flip-scroll tbody tr { border-left: 1px solid #babcbf; } 41 | #flip-scroll th:last-child, 42 | #flip-scroll td:last-child { border-bottom: 1px solid #babcbf; } 43 | } 44 | 45 | /*no more table*/ 46 | 47 | @media only screen and (max-width: 800px) { 48 | /* Force table to not be like tables anymore */ 49 | #no-more-tables table, 50 | #no-more-tables thead, 51 | #no-more-tables tbody, 52 | #no-more-tables th, 53 | #no-more-tables td, 54 | #no-more-tables tr { 55 | display: block; 56 | } 57 | 58 | /* Hide table headers (but not display: none;, for accessibility) */ 59 | #no-more-tables thead tr { 60 | position: absolute; 61 | top: -9999px; 62 | left: -9999px; 63 | } 64 | 65 | #no-more-tables tr { border: 1px solid #ccc; } 66 | 67 | #no-more-tables td { 68 | /* Behave like a "row" */ 69 | border: none; 70 | border-bottom: 1px solid #eee; 71 | position: relative; 72 | padding-left: 50%; 73 | white-space: normal; 74 | text-align:left; 75 | } 76 | 77 | #no-more-tables td:before { 78 | /* Now like a table header */ 79 | position: absolute; 80 | /* Top/left values mimic padding */ 81 | top: 6px; 82 | left: 6px; 83 | width: 45%; 84 | padding-right: 10px; 85 | white-space: nowrap; 86 | text-align:left; 87 | font-weight: bold; 88 | } 89 | 90 | /* 91 | Label the data 92 | */ 93 | #no-more-tables td:before { content: attr(data-title); } 94 | } -------------------------------------------------------------------------------- /public/ctf/assets/css/to-do.css: -------------------------------------------------------------------------------- 1 | /*--------------Tasks Widget--------------*/ 2 | 3 | .task-content { 4 | margin-bottom: 30px; 5 | } 6 | 7 | .task-panel { 8 | background: #fff; 9 | text-align: left; 10 | box-shadow: 0px 3px 2px #aab2bd; 11 | margin: 5px; 12 | } 13 | 14 | .tasks-widget .task-content:after { 15 | clear: both; 16 | } 17 | 18 | .tasks-widget .task-footer { 19 | margin-top: 5px; 20 | } 21 | 22 | .tasks-widget .task-footer:after, 23 | .tasks-widget .task-footer:before { 24 | content: ""; 25 | display: table; 26 | line-height: 0; 27 | } 28 | 29 | .tasks-widget .task-footer:after { 30 | clear: both; 31 | } 32 | 33 | .tasks-widget .task-list { 34 | padding:0; 35 | margin:0; 36 | } 37 | 38 | .tasks-widget .task-list > li { 39 | position:relative; 40 | padding:10px 5px; 41 | border-bottom:1px dashed #eaeaea; 42 | } 43 | 44 | .tasks-widget .task-list li.last-line { 45 | border-bottom:none; 46 | } 47 | 48 | .tasks-widget .task-list li > .task-bell { 49 | margin-left:10px; 50 | } 51 | 52 | .tasks-widget .task-list li > .task-checkbox { 53 | float:left; 54 | width:30px; 55 | } 56 | 57 | .tasks-widget .task-list li > .task-title { 58 | overflow:hidden; 59 | margin-right:10px; 60 | } 61 | 62 | .tasks-widget .task-list li > .task-config { 63 | position:absolute; 64 | top:10px; 65 | right:10px; 66 | } 67 | 68 | .tasks-widget .task-list li .task-title .task-title-sp { 69 | margin-right:5px; 70 | } 71 | 72 | .tasks-widget .task-list li.task-done .task-title-sp { 73 | text-decoration:line-through; 74 | color: #bbbbbb; 75 | } 76 | 77 | .tasks-widget .task-list li.task-done { 78 | background:#f6f6f6; 79 | } 80 | 81 | .tasks-widget .task-list li.task-done:hover { 82 | background:#f4f4f4; 83 | } 84 | 85 | .tasks-widget .task-list li:hover { 86 | background:#f9f9f9; 87 | } 88 | 89 | .tasks-widget .task-list li .task-config { 90 | display:none; 91 | } 92 | 93 | .tasks-widget .task-list li:hover > .task-config { 94 | display:block; 95 | margin-bottom:0 !important; 96 | } 97 | 98 | 99 | @media only screen and (max-width: 320px) { 100 | 101 | .tasks-widget .task-config-btn { 102 | float:inherit; 103 | display:block; 104 | } 105 | 106 | .tasks-widget .task-list-projects li > .label { 107 | margin-bottom:5px; 108 | } 109 | 110 | } -------------------------------------------------------------------------------- /public/ctf/assets/css/zabuto_calendar.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Zabuto Calendar 3 | */ 4 | 5 | div.zabuto_calendar { 6 | margin: 0; 7 | padding: 10px; 8 | } 9 | 10 | .calendar-month-header {font-size:116%!important;} 11 | .calendar-month-header th {font-weight:600!important;} 12 | 13 | div.zabuto_calendar .table { 14 | width: 100%; 15 | margin: 0; 16 | padding: 0px; 17 | } 18 | 19 | div.zabuto_calendar .table th, 20 | div.zabuto_calendar .table td { 21 | padding: 11.9px 0px; 22 | text-align: center; 23 | } 24 | 25 | div.zabuto_calendar .table tr th, 26 | div.zabuto_calendar .table tr td { 27 | background-color:; 28 | } 29 | 30 | div.zabuto_calendar .table tr.calendar-month-header th { 31 | background-color:; 32 | } 33 | 34 | div.zabuto_calendar .table tr.calendar-month-header th span { 35 | cursor: pointer; 36 | display: inline-block; 37 | padding-bottom:0px; 38 | 39 | } 40 | 41 | div.zabuto_calendar .table tr.calendar-dow-header th { 42 | background-color:; 43 | } 44 | 45 | div.zabuto_calendar .table tr:last-child { 46 | border-bottom: 0px solid #dddddd; 47 | } 48 | 49 | div.zabuto_calendar .table tr.calendar-month-header th { 50 | padding:10px; 51 | 52 | } 53 | 54 | div.zabuto_calendar .table-bordered tr.calendar-month-header th { 55 | border-left: 0; 56 | border-right: 0; 57 | } 58 | 59 | div.zabuto_calendar .table-bordered tr.calendar-month-header th:first-child { 60 | border-left: 0px solid #dddddd; 61 | } 62 | 63 | div.zabuto_calendar div.calendar-month-navigation { 64 | cursor: pointer; 65 | margin: 0; 66 | padding: 0; 67 | padding-top:0px; 68 | } 69 | 70 | div.zabuto_calendar tr.calendar-dow-header th, 71 | div.zabuto_calendar tr.calendar-dow td { 72 | width: 14%; 73 | } 74 | 75 | div.zabuto_calendar .table tr td div.day { 76 | margin: 0px; 77 | padding-top: 0px; 78 | padding-bottom: 0px; 79 | } 80 | 81 | /* actions and events */ 82 | div.zabuto_calendar .table tr td.event div.day, 83 | div.zabuto_calendar ul.legend li.event { 84 | background-color:; 85 | } 86 | 87 | div.zabuto_calendar .table tr td.dow-clickable, 88 | div.zabuto_calendar .table tr td.event-clickable { 89 | cursor: pointer; 90 | } 91 | 92 | /* badge */ 93 | div.zabuto_calendar .badge-today, 94 | div.zabuto_calendar div.legend span.badge-today { 95 | background-color:; 96 | color: #ffffff; 97 | text-shadow: none; 98 | } 99 | 100 | div.zabuto_calendar .badge-event, 101 | div.zabuto_calendar div.legend span.badge-event { 102 | background-color:; 103 | color: #ffffff; 104 | text-shadow: none; 105 | } 106 | 107 | div.zabuto_calendar .badge-event { 108 | font-size: 0.95em; 109 | padding-left: 8px; 110 | padding-right: 8px; 111 | padding-bottom: 4px; 112 | } 113 | 114 | /* legend */ 115 | div.zabuto_calendar div.legend { 116 | margin-top: 15px; 117 | text-align: right; 118 | padding-right:10px; 119 | padding-bottom:10px; 120 | } 121 | 122 | div.zabuto_calendar div.legend span { 123 | font-size: 10px; 124 | font-weight: normal; 125 | } 126 | 127 | div.zabuto_calendar div.legend span.legend-text:after, 128 | div.zabuto_calendar div.legend span.legend-block:after, 129 | div.zabuto_calendar div.legend span.legend-list:after, 130 | div.zabuto_calendar div.legend span.legend-spacer:after { 131 | content: ' '; 132 | } 133 | 134 | div.zabuto_calendar div.legend span.legend-spacer { 135 | padding-left: 25px; 136 | } 137 | 138 | div.zabuto_calendar ul.legend > span { 139 | padding-left: 2px; 140 | } 141 | 142 | div.zabuto_calendar ul.legend { 143 | display: inline-block; 144 | list-style: none outside none; 145 | margin: 0; 146 | padding: 0; 147 | } 148 | 149 | div.zabuto_calendar ul.legend li { 150 | display: inline-block; 151 | height: 8px; 152 | width: 8px; 153 | margin-left: 5px; 154 | } 155 | 156 | div.zabuto_calendar ul.legend 157 | div.zabuto_calendar ul.legend li:first-child { 158 | margin-left: 7px; 159 | } 160 | 161 | div.zabuto_calendar ul.legend li:last-child { 162 | margin-right: 5px; 163 | } 164 | 165 | div.zabuto_calendar div.legend span.badge { 166 | font-size: 0.9em; 167 | border-radius: 5px 5px 5px 5px; 168 | padding-left: 5px; 169 | padding-right: 5px; 170 | padding-top: 2px; 171 | padding-bottom: 3px; 172 | } 173 | 174 | /* responsive */ 175 | @media (max-width: 979px) { 176 | div.zabuto_calendar .table th, 177 | div.zabuto_calendar .table td { 178 | padding: 2px 1px; 179 | } 180 | } 181 | -------------------------------------------------------------------------------- /public/ctf/assets/font-awesome/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/font-awesome/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/font-awesome/css/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/font-awesome/css/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/font-awesome/fonts/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/font-awesome/fonts/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/ctf/assets/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/ctf/assets/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/ctf/assets/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/ctf/assets/fonts/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/fonts/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/ctf/assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/ctf/assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/ctf/assets/img/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-01.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-02.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-03.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-04.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-05.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-06.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-07.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-08.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-09.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-09.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-10.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/friends/fr-11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/friends/fr-11.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/login-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/login-bg.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/nu1l.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/nu1l.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/portfolio/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/portfolio/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/img/portfolio/port01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/portfolio/port01.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/portfolio/port02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/portfolio/port02.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/portfolio/port03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/portfolio/port03.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/portfolio/port04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/portfolio/port04.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/portfolio/port05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/portfolio/port05.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/portfolio/port06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/portfolio/port06.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/ui-sam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/ui-sam.jpg -------------------------------------------------------------------------------- /public/ctf/assets/img/veneno.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/img/veneno.jpg -------------------------------------------------------------------------------- /public/ctf/assets/js/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/bootstrap-inputmask/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/bootstrap-inputmask/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/bootstrap-inputmask/bootstrap-inputmask.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Bootstrap.js by @mdo and @fat, extended by @ArnoldDaniels. 3 | * plugins: bootstrap-inputmask.js 4 | * Copyright 2012 Twitter, Inc. 5 | * http://www.apache.org/licenses/LICENSE-2.0.txt 6 | */ 7 | !function(e){var t=window.orientation!==undefined,n=navigator.userAgent.toLowerCase().indexOf("android")>-1,r=function(t,r){if(n)return;this.$element=e(t),this.options=e.extend({},e.fn.inputmask.defaults,r),this.mask=String(r.mask),this.init(),this.listen(),this.checkVal()};r.prototype={init:function(){var t=this.options.definitions,n=this.mask.length;this.tests=[],this.partialPosition=this.mask.length,this.firstNonMaskPos=null,e.each(this.mask.split(""),e.proxy(function(e,r){r=="?"?(n--,this.partialPosition=e):t[r]?(this.tests.push(new RegExp(t[r])),this.firstNonMaskPos===null&&(this.firstNonMaskPos=this.tests.length-1)):this.tests.push(null)},this)),this.buffer=e.map(this.mask.split(""),e.proxy(function(e,n){if(e!="?")return t[e]?this.options.placeholder:e},this)),this.focusText=this.$element.val(),this.$element.data("rawMaskFn",e.proxy(function(){return e.map(this.buffer,function(e,t){return this.tests[t]&&e!=this.options.placeholder?e:null}).join("")},this))},listen:function(){if(this.$element.attr("readonly"))return;var t=(navigator.userAgent.match(/msie/i)?"paste":"input")+".mask";this.$element.on("unmask",e.proxy(this.unmask,this)).on("focus.mask",e.proxy(this.focusEvent,this)).on("blur.mask",e.proxy(this.blurEvent,this)).on("keydown.mask",e.proxy(this.keydownEvent,this)).on("keypress.mask",e.proxy(this.keypressEvent,this)).on(t,e.proxy(this.pasteEvent,this))},caret:function(e,t){if(this.$element.length===0)return;if(typeof e=="number")return t=typeof t=="number"?t:e,this.$element.each(function(){if(this.setSelectionRange)this.setSelectionRange(e,t);else if(this.createTextRange){var n=this.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select()}});if(this.$element[0].setSelectionRange)e=this.$element[0].selectionStart,t=this.$element[0].selectionEnd;else if(document.selection&&document.selection.createRange){var n=document.selection.createRange();e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length}return{begin:e,end:t}},seekNext:function(e){var t=this.mask.length;while(++e<=t&&!this.tests[e]);return e},seekPrev:function(e){while(--e>=0&&!this.tests[e]);return e},shiftL:function(e,t){var n=this.mask.length;if(e<0)return;for(var r=e,i=this.seekNext(t);rn.length)break}else this.buffer[i]==n.charAt(s)&&i!=this.partialPosition&&(s++,r=i);if(!e&&r+1=this.partialPosition)this.writeBuffer(),e||this.$element.val(this.$element.val().substring(0,r+1));return this.partialPosition?i:this.firstNonMaskPos}},e.fn.inputmask=function(t){return this.each(function(){var n=e(this),i=n.data("inputmask");i||n.data("inputmask",i=new r(this,t))})},e.fn.inputmask.defaults={mask:"",placeholder:"_",definitions:{9:"[0-9]",a:"[A-Za-z]","?":"[A-Za-z0-9]","*":"."}},e.fn.inputmask.Constructor=r,e(document).on("focus.inputmask.data-api","[data-mask]",function(t){var n=e(this);if(n.data("inputmask"))return;t.preventDefault(),n.inputmask(n.data())})}(window.jQuery) -------------------------------------------------------------------------------- /public/ctf/assets/js/calendar-conf-events.js: -------------------------------------------------------------------------------- 1 | var Script = function () { 2 | 3 | 4 | /* initialize the external events 5 | -----------------------------------------------------------------*/ 6 | 7 | $('#external-events div.external-event').each(function() { 8 | 9 | // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/) 10 | // it doesn't need to have a start or end 11 | var eventObject = { 12 | title: $.trim($(this).text()) // use the element's text as the event title 13 | }; 14 | 15 | // store the Event Object in the DOM element so we can get to it later 16 | $(this).data('eventObject', eventObject); 17 | 18 | // make the event draggable using jQuery UI 19 | $(this).draggable({ 20 | zIndex: 999, 21 | revert: true, // will cause the event to go back to its 22 | revertDuration: 0 // original position after the drag 23 | }); 24 | 25 | }); 26 | 27 | 28 | /* initialize the calendar 29 | -----------------------------------------------------------------*/ 30 | 31 | var date = new Date(); 32 | var d = date.getDate(); 33 | var m = date.getMonth(); 34 | var y = date.getFullYear(); 35 | 36 | $('#calendar').fullCalendar({ 37 | header: { 38 | left: 'prev,next today', 39 | center: 'title', 40 | right: 'month,basicWeek,basicDay' 41 | }, 42 | editable: true, 43 | droppable: true, // this allows things to be dropped onto the calendar !!! 44 | drop: function(date, allDay) { // this function is called when something is dropped 45 | 46 | // retrieve the dropped element's stored Event Object 47 | var originalEventObject = $(this).data('eventObject'); 48 | 49 | // we need to copy it, so that multiple events don't have a reference to the same object 50 | var copiedEventObject = $.extend({}, originalEventObject); 51 | 52 | // assign it the date that was reported 53 | copiedEventObject.start = date; 54 | copiedEventObject.allDay = allDay; 55 | 56 | // render the event on the calendar 57 | // the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/) 58 | $('#calendar').fullCalendar('renderEvent', copiedEventObject, true); 59 | 60 | // is the "remove after drop" checkbox checked? 61 | if ($('#drop-remove').is(':checked')) { 62 | // if so, remove the element from the "Draggable Events" list 63 | $(this).remove(); 64 | } 65 | 66 | }, 67 | events: [ 68 | { 69 | title: 'All Day Event', 70 | start: new Date(y, m, 1) 71 | }, 72 | { 73 | title: 'Long Event', 74 | start: new Date(y, m, d-5), 75 | end: new Date(y, m, d-2) 76 | }, 77 | { 78 | id: 999, 79 | title: 'Repeating Event', 80 | start: new Date(y, m, d-3, 16, 0), 81 | allDay: false 82 | }, 83 | { 84 | id: 999, 85 | title: 'Repeating Event', 86 | start: new Date(y, m, d+4, 16, 0), 87 | allDay: false 88 | }, 89 | { 90 | title: 'Meeting', 91 | start: new Date(y, m, d, 10, 30), 92 | allDay: false 93 | }, 94 | { 95 | title: 'Lunch', 96 | start: new Date(y, m, d, 12, 0), 97 | end: new Date(y, m, d, 14, 0), 98 | allDay: false 99 | }, 100 | { 101 | title: 'Birthday Party', 102 | start: new Date(y, m, d+1, 19, 0), 103 | end: new Date(y, m, d+1, 22, 30), 104 | allDay: false 105 | }, 106 | { 107 | title: 'Click for Google', 108 | start: new Date(y, m, 28), 109 | end: new Date(y, m, 29), 110 | url: 'http://google.com/' 111 | } 112 | ] 113 | }); 114 | 115 | 116 | }(); -------------------------------------------------------------------------------- /public/ctf/assets/js/chart-master/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/chart-master/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/chartjs-conf.js: -------------------------------------------------------------------------------- 1 | var Script = function () { 2 | 3 | 4 | var doughnutData = [ 5 | { 6 | value: 30, 7 | color:"#1abc9c" 8 | }, 9 | { 10 | value : 50, 11 | color : "#2ecc71" 12 | }, 13 | { 14 | value : 100, 15 | color : "#3498db" 16 | }, 17 | { 18 | value : 40, 19 | color : "#9b59b6" 20 | }, 21 | { 22 | value : 120, 23 | color : "#34495e" 24 | } 25 | 26 | ]; 27 | var lineChartData = { 28 | labels : ["","","","","","",""], 29 | datasets : [ 30 | { 31 | fillColor : "rgba(220,220,220,0.5)", 32 | strokeColor : "rgba(220,220,220,1)", 33 | pointColor : "rgba(220,220,220,1)", 34 | pointStrokeColor : "#fff", 35 | data : [65,59,90,81,56,55,40] 36 | }, 37 | { 38 | fillColor : "rgba(151,187,205,0.5)", 39 | strokeColor : "rgba(151,187,205,1)", 40 | pointColor : "rgba(151,187,205,1)", 41 | pointStrokeColor : "#fff", 42 | data : [28,48,40,19,96,27,100] 43 | } 44 | ] 45 | 46 | }; 47 | var pieData = [ 48 | { 49 | value: 30, 50 | color:"#1abc9c" 51 | }, 52 | { 53 | value : 50, 54 | color : "#16a085" 55 | }, 56 | { 57 | value : 100, 58 | color : "#27ae60" 59 | } 60 | 61 | ]; 62 | var barChartData = { 63 | labels : ["January","February","March","April","May","June","July"], 64 | datasets : [ 65 | { 66 | fillColor : "rgba(220,220,220,0.5)", 67 | strokeColor : "rgba(220,220,220,1)", 68 | data : [65,59,90,81,56,55,40] 69 | }, 70 | { 71 | fillColor : "rgba(151,187,205,0.5)", 72 | strokeColor : "rgba(151,187,205,1)", 73 | data : [28,48,40,19,96,27,100] 74 | } 75 | ] 76 | 77 | }; 78 | var chartData = [ 79 | { 80 | value : Math.random(), 81 | color: "#D97041" 82 | }, 83 | { 84 | value : Math.random(), 85 | color: "#C7604C" 86 | }, 87 | { 88 | value : Math.random(), 89 | color: "#21323D" 90 | }, 91 | { 92 | value : Math.random(), 93 | color: "#9D9B7F" 94 | }, 95 | { 96 | value : Math.random(), 97 | color: "#7D4F6D" 98 | }, 99 | { 100 | value : Math.random(), 101 | color: "#584A5E" 102 | } 103 | ]; 104 | var radarChartData = { 105 | labels : ["","","","","","",""], 106 | datasets : [ 107 | { 108 | fillColor : "rgba(220,220,220,0.5)", 109 | strokeColor : "rgba(220,220,220,1)", 110 | pointColor : "rgba(220,220,220,1)", 111 | pointStrokeColor : "#fff", 112 | data : [65,59,90,81,56,55,40] 113 | }, 114 | { 115 | fillColor : "rgba(151,187,205,0.5)", 116 | strokeColor : "rgba(151,187,205,1)", 117 | pointColor : "rgba(151,187,205,1)", 118 | pointStrokeColor : "#fff", 119 | data : [28,48,40,19,96,27,100] 120 | } 121 | ] 122 | 123 | }; 124 | new Chart(document.getElementById("doughnut").getContext("2d")).Doughnut(doughnutData); 125 | new Chart(document.getElementById("line").getContext("2d")).Line(lineChartData); 126 | new Chart(document.getElementById("radar").getContext("2d")).Radar(radarChartData); 127 | new Chart(document.getElementById("polarArea").getContext("2d")).PolarArea(chartData); 128 | new Chart(document.getElementById("bar").getContext("2d")).Bar(barChartData); 129 | new Chart(document.getElementById("pie").getContext("2d")).Pie(pieData); 130 | 131 | 132 | }(); -------------------------------------------------------------------------------- /public/ctf/assets/js/common-scripts.js: -------------------------------------------------------------------------------- 1 | /*---LEFT BAR ACCORDION----*/ 2 | $(function() { 3 | $('#nav-accordion').dcAccordion({ 4 | eventType: 'click', 5 | autoClose: true, 6 | saveState: true, 7 | disableLink: true, 8 | speed: 'slow', 9 | showCount: false, 10 | autoExpand: true, 11 | // cookie: 'dcjq-accordion-1', 12 | classExpand: 'dcjq-current-parent' 13 | }); 14 | }); 15 | 16 | var Script = function () { 17 | 18 | 19 | // sidebar dropdown menu auto scrolling 20 | 21 | jQuery('#sidebar .sub-menu > a').click(function () { 22 | var o = ($(this).offset()); 23 | diff = 250 - o.top; 24 | if(diff>0) 25 | $("#sidebar").scrollTo("-="+Math.abs(diff),500); 26 | else 27 | $("#sidebar").scrollTo("+="+Math.abs(diff),500); 28 | }); 29 | 30 | 31 | 32 | // sidebar toggle 33 | 34 | $(function() { 35 | function responsiveView() { 36 | var wSize = $(window).width(); 37 | if (wSize <= 768) { 38 | $('#container').addClass('sidebar-close'); 39 | $('#sidebar > ul').hide(); 40 | } 41 | 42 | if (wSize > 768) { 43 | $('#container').removeClass('sidebar-close'); 44 | $('#sidebar > ul').show(); 45 | } 46 | } 47 | $(window).on('load', responsiveView); 48 | $(window).on('resize', responsiveView); 49 | }); 50 | 51 | $('.fa-bars').click(function () { 52 | if ($('#sidebar > ul').is(":visible") === true) { 53 | $('#main-content').css({ 54 | 'margin-left': '0px' 55 | }); 56 | $('#sidebar').css({ 57 | 'margin-left': '-210px' 58 | }); 59 | $('#sidebar > ul').hide(); 60 | $("#container").addClass("sidebar-closed"); 61 | } else { 62 | $('#main-content').css({ 63 | 'margin-left': '210px' 64 | }); 65 | $('#sidebar > ul').show(); 66 | $('#sidebar').css({ 67 | 'margin-left': '0' 68 | }); 69 | $("#container").removeClass("sidebar-closed"); 70 | } 71 | }); 72 | 73 | // custom scrollbar 74 | $("#sidebar").niceScroll({styler:"fb",cursorcolor:"#4ECDC4", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: ''}); 75 | 76 | $("html").niceScroll({styler:"fb",cursorcolor:"#4ECDC4", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: '', zindex: '1000'}); 77 | 78 | // widget tools 79 | 80 | jQuery('.panel .tools .fa-chevron-down').click(function () { 81 | var el = jQuery(this).parents(".panel").children(".panel-body"); 82 | if (jQuery(this).hasClass("fa-chevron-down")) { 83 | jQuery(this).removeClass("fa-chevron-down").addClass("fa-chevron-up"); 84 | el.slideUp(200); 85 | } else { 86 | jQuery(this).removeClass("fa-chevron-up").addClass("fa-chevron-down"); 87 | el.slideDown(200); 88 | } 89 | }); 90 | 91 | jQuery('.panel .tools .fa-times').click(function () { 92 | jQuery(this).parents(".panel").parent().remove(); 93 | }); 94 | 95 | 96 | // tool tips 97 | 98 | $('.tooltips').tooltip(); 99 | 100 | // popovers 101 | 102 | $('.popovers').popover(); 103 | 104 | 105 | 106 | // custom bar chart 107 | 108 | if ($(".custom-bar-chart")) { 109 | $(".bar").each(function () { 110 | var i = $(this).find(".value").html(); 111 | $(this).find(".value").html(""); 112 | $(this).find(".value").animate({ 113 | height: i 114 | }, 2000) 115 | }) 116 | } 117 | 118 | 119 | }(); -------------------------------------------------------------------------------- /public/ctf/assets/js/easy-pie-chart.js: -------------------------------------------------------------------------------- 1 | var Script = function () { 2 | 3 | // easy pie chart 4 | 5 | $('.percentage').easyPieChart({ 6 | animate: 1000, 7 | size: 135, 8 | barColor:'#ff6c60' 9 | }); 10 | $('.percentage-light').easyPieChart({ 11 | barColor: function(percent) { 12 | percent /= 100; 13 | return "rgb(" + Math.round(255 * (1-percent)) + ", " + Math.round(255 * percent) + ", 0)"; 14 | }, 15 | trackColor: '#666', 16 | scaleColor: false, 17 | lineCap: 'butt', 18 | lineWidth: 15, 19 | animate: 1000 20 | }); 21 | 22 | $('.update-easy-pie-chart').click(function(){ 23 | $('.easy-pie-chart .percentage').each(function() { 24 | var newValue = Math.floor(100*Math.random()); 25 | $(this).data('easyPieChart').update(newValue); 26 | $('span', this).text(newValue); 27 | }); 28 | }); 29 | 30 | $('.updateEasyPieChart').on('click', function(e) { 31 | e.preventDefault(); 32 | $('.percentage, .percentage-light').each(function() { 33 | var newValue = Math.round(100*Math.random()); 34 | $(this).data('easyPieChart').update(newValue); 35 | $('span', this).text(newValue); 36 | }); 37 | }); 38 | 39 | }(); -------------------------------------------------------------------------------- /public/ctf/assets/js/fancybox/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/fancybox/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/fancybox/jquery.fancybox.css: -------------------------------------------------------------------------------- 1 | /*! fancyBox v2.1.3 fancyapps.com | fancyapps.com/fancybox/#license */ 2 | .fancybox-wrap, 3 | .fancybox-skin, 4 | .fancybox-outer, 5 | .fancybox-inner, 6 | .fancybox-image, 7 | .fancybox-wrap iframe, 8 | .fancybox-wrap object, 9 | .fancybox-nav, 10 | .fancybox-nav span, 11 | .fancybox-tmp 12 | { 13 | padding: 0; 14 | margin: 0; 15 | border: 0; 16 | outline: none; 17 | vertical-align: top; 18 | } 19 | 20 | .fancybox-wrap { 21 | position: absolute; 22 | top: 0; 23 | left: 0; 24 | z-index: 8020; 25 | } 26 | 27 | .fancybox-skin { 28 | position: relative; 29 | background: #f9f9f9; 30 | color: #444; 31 | text-shadow: none; 32 | -webkit-border-radius: 4px; 33 | -moz-border-radius: 4px; 34 | border-radius: 4px; 35 | } 36 | 37 | .fancybox-opened { 38 | z-index: 8030; 39 | } 40 | 41 | .fancybox-opened .fancybox-skin { 42 | -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 43 | -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 44 | box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 45 | } 46 | 47 | .fancybox-outer, .fancybox-inner { 48 | position: relative; 49 | } 50 | 51 | .fancybox-inner { 52 | overflow: hidden; 53 | } 54 | 55 | .fancybox-type-iframe .fancybox-inner { 56 | -webkit-overflow-scrolling: touch; 57 | } 58 | 59 | .fancybox-error { 60 | color: #444; 61 | font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; 62 | margin: 0; 63 | padding: 15px; 64 | white-space: nowrap; 65 | } 66 | 67 | .fancybox-image, .fancybox-iframe { 68 | display: block; 69 | width: 100%; 70 | height: 100%; 71 | } 72 | 73 | .fancybox-image { 74 | max-width: 100%; 75 | max-height: 100%; 76 | } 77 | 78 | #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { 79 | background-image: url('http://thevectorlab.net/flatlab/assets/fancybox/source/fancybox_sprite.png'); 80 | } 81 | 82 | #fancybox-loading { 83 | position: fixed; 84 | top: 50%; 85 | left: 50%; 86 | margin-top: -22px; 87 | margin-left: -22px; 88 | background-position: 0 -108px; 89 | opacity: 0.8; 90 | cursor: pointer; 91 | z-index: 8060; 92 | } 93 | 94 | #fancybox-loading div { 95 | width: 44px; 96 | height: 44px; 97 | background: url('http://thevectorlab.net/flatlab/assets/fancybox/source/fancybox_loading.gif') center center no-repeat; 98 | } 99 | 100 | .fancybox-close { 101 | position: absolute; 102 | top: -18px; 103 | right: -18px; 104 | width: 36px; 105 | height: 36px; 106 | cursor: pointer; 107 | z-index: 8040; 108 | } 109 | 110 | .fancybox-nav { 111 | position: absolute; 112 | top: 0; 113 | width: 40%; 114 | height: 100%; 115 | cursor: pointer; 116 | text-decoration: none; 117 | background: transparent url('http://thevectorlab.net/flatlab/assets/fancybox/source/blank.gif'); /* helps IE */ 118 | -webkit-tap-highlight-color: rgba(0,0,0,0); 119 | z-index: 8040; 120 | } 121 | 122 | .fancybox-prev { 123 | left: 0; 124 | } 125 | 126 | .fancybox-next { 127 | right: 0; 128 | } 129 | 130 | .fancybox-nav span { 131 | position: absolute; 132 | top: 50%; 133 | width: 36px; 134 | height: 34px; 135 | margin-top: -18px; 136 | cursor: pointer; 137 | z-index: 8040; 138 | visibility: hidden; 139 | } 140 | 141 | .fancybox-prev span { 142 | left: 10px; 143 | background-position: 0 -36px; 144 | } 145 | 146 | .fancybox-next span { 147 | right: 10px; 148 | background-position: 0 -72px; 149 | } 150 | 151 | .fancybox-nav:hover span { 152 | visibility: visible; 153 | } 154 | 155 | .fancybox-tmp { 156 | position: absolute; 157 | top: -99999px; 158 | left: -99999px; 159 | visibility: hidden; 160 | max-width: 99999px; 161 | max-height: 99999px; 162 | overflow: visible !important; 163 | } 164 | 165 | /* Overlay helper */ 166 | 167 | .fancybox-lock { 168 | overflow: hidden; 169 | } 170 | 171 | .fancybox-overlay { 172 | position: absolute; 173 | top: 0; 174 | left: 0; 175 | overflow: hidden; 176 | display: none; 177 | z-index: 8010; 178 | background: url('http://thevectorlab.net/flatlab/assets/fancybox/source/fancybox_overlay.png'); 179 | } 180 | 181 | .fancybox-overlay-fixed { 182 | position: fixed; 183 | bottom: 0; 184 | right: 0; 185 | } 186 | 187 | .fancybox-lock .fancybox-overlay { 188 | overflow: auto; 189 | overflow-y: scroll; 190 | } 191 | 192 | /* Title helper */ 193 | 194 | .fancybox-title { 195 | visibility: hidden; 196 | font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; 197 | position: relative; 198 | text-shadow: none; 199 | z-index: 8050; 200 | } 201 | 202 | .fancybox-opened .fancybox-title { 203 | visibility: visible; 204 | } 205 | 206 | .fancybox-title-float-wrap { 207 | position: absolute; 208 | bottom: 0; 209 | right: 50%; 210 | margin-bottom: -35px; 211 | z-index: 8050; 212 | text-align: center; 213 | } 214 | 215 | .fancybox-title-float-wrap .child { 216 | display: inline-block; 217 | margin-right: -100%; 218 | padding: 2px 20px; 219 | background: transparent; /* Fallback for web browsers that doesn't support RGBa */ 220 | background: rgba(0, 0, 0, 0.8); 221 | -webkit-border-radius: 15px; 222 | -moz-border-radius: 15px; 223 | border-radius: 15px; 224 | text-shadow: 0 1px 2px #222; 225 | color: #FFF; 226 | font-weight: bold; 227 | line-height: 24px; 228 | white-space: nowrap; 229 | } 230 | 231 | .fancybox-title-outside-wrap { 232 | position: relative; 233 | margin-top: 10px; 234 | color: #fff; 235 | } 236 | 237 | .fancybox-title-inside-wrap { 238 | padding-top: 10px; 239 | } 240 | 241 | .fancybox-title-over-wrap { 242 | position: absolute; 243 | bottom: 0; 244 | left: 0; 245 | color: #fff; 246 | padding: 10px; 247 | background: #000; 248 | background: rgba(0, 0, 0, .8); 249 | } -------------------------------------------------------------------------------- /public/ctf/assets/js/fullcalendar/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/fullcalendar/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter-conf.js: -------------------------------------------------------------------------------- 1 | var Gritter = function () { 2 | 3 | $('#add-sticky').click(function(){ 4 | 5 | var unique_id = $.gritter.add({ 6 | // (string | mandatory) the heading of the notification 7 | title: 'This is a Sticky Notice!', 8 | // (string | mandatory) the text inside the notification 9 | text: 'Hover me to enable the Close Button. This note also contains a link example. Thank you so much to try Dashgum. Developed by Alvarez.is.', 10 | // (string | optional) the image to display on the left 11 | image: 'assets/img/ui-sam.jpg', 12 | // (bool | optional) if you want it to fade out on its own or just sit there 13 | sticky: true, 14 | // (int | optional) the time you want it to be alive for before fading out 15 | time: '', 16 | // (string | optional) the class name you want to apply to that specific message 17 | class_name: 'my-sticky-class' 18 | }); 19 | 20 | // You can have it return a unique id, this can be used to manually remove it later using 21 | /* 22 | setTimeout(function(){ 23 | 24 | $.gritter.remove(unique_id, { 25 | fade: true, 26 | speed: 'slow' 27 | }); 28 | 29 | }, 6000) 30 | */ 31 | 32 | return false; 33 | 34 | }); 35 | 36 | $('#add-regular').click(function(){ 37 | 38 | $.gritter.add({ 39 | // (string | mandatory) the heading of the notification 40 | title: 'This is a Regular Notice!', 41 | // (string | mandatory) the text inside the notification 42 | text: 'This will fade out after a certain amount of time. This note also contains a link example. Thank you so much to try Dashgum. Developed by Alvarez.is.', 43 | // (string | optional) the image to display on the left 44 | image: 'assets/img/ui-sam.jpg', 45 | // (bool | optional) if you want it to fade out on its own or just sit there 46 | sticky: false, 47 | // (int | optional) the time you want it to be alive for before fading out 48 | time: '' 49 | }); 50 | 51 | return false; 52 | 53 | }); 54 | 55 | $('#add-max').click(function(){ 56 | 57 | $.gritter.add({ 58 | // (string | mandatory) the heading of the notification 59 | title: 'This is a notice with a max of 3 on screen at one time!', 60 | // (string | mandatory) the text inside the notification 61 | text: 'This will fade out after a certain amount of time. This note also contains a link example. Thank you so much to try Dashgum. Developed by Alvarez.is.', 62 | // (string | optional) the image to display on the left 63 | image: 'assets/img/ui-sam.jpg', 64 | // (bool | optional) if you want it to fade out on its own or just sit there 65 | sticky: false, 66 | // (function) before the gritter notice is opened 67 | before_open: function(){ 68 | if($('.gritter-item-wrapper').length == 3) 69 | { 70 | // Returning false prevents a new gritter from opening 71 | return false; 72 | } 73 | } 74 | }); 75 | 76 | return false; 77 | 78 | }); 79 | 80 | $('#add-without-image').click(function(){ 81 | 82 | $.gritter.add({ 83 | // (string | mandatory) the heading of the notification 84 | title: 'This is a Notice Without an Image!', 85 | // (string | mandatory) the text inside the notification 86 | text: 'This will fade out after a certain amount of time. This note also contains a link example. Thank you so much to try Dashgum. Developed by Alvarez.is.' 87 | }); 88 | 89 | return false; 90 | }); 91 | 92 | $('#add-gritter-light').click(function(){ 93 | 94 | $.gritter.add({ 95 | // (string | mandatory) the heading of the notification 96 | title: 'This is a Light Notification', 97 | // (string | mandatory) the text inside the notification 98 | text: 'Just add a "gritter-light" class_name to your $.gritter.add or globally to $.gritter.options.class_name', 99 | class_name: 'gritter-light' 100 | }); 101 | 102 | return false; 103 | }); 104 | 105 | $("#remove-all").click(function(){ 106 | 107 | $.gritter.removeAll(); 108 | return false; 109 | 110 | }); 111 | 112 | 113 | 114 | }(); -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/gritter/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/css/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/gritter/css/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/css/jquery.gritter.css: -------------------------------------------------------------------------------- 1 | /* the norm */ 2 | #gritter-notice-wrapper { 3 | position:fixed; 4 | top:20px; 5 | right:20px; 6 | width:301px; 7 | z-index:9999; 8 | } 9 | #gritter-notice-wrapper.top-left { 10 | left: 20px; 11 | right: auto; 12 | } 13 | #gritter-notice-wrapper.bottom-right { 14 | top: auto; 15 | left: auto; 16 | bottom: 20px; 17 | right: 20px; 18 | } 19 | #gritter-notice-wrapper.bottom-left { 20 | top: auto; 21 | right: auto; 22 | bottom: 20px; 23 | left: 20px; 24 | } 25 | .gritter-item-wrapper { 26 | position:relative; 27 | margin:0 0 10px 0; 28 | background:url('../images/ie-spacer.gif'); /* ie7/8 fix */ 29 | } 30 | .gritter-top { 31 | background:url(../images/gritter.png) no-repeat left -30px; 32 | height:10px; 33 | } 34 | .hover .gritter-top { 35 | background-position:right -30px; 36 | } 37 | .gritter-bottom { 38 | background:url(../images/gritter.png) no-repeat left bottom; 39 | height:8px; 40 | margin:0; 41 | } 42 | .hover .gritter-bottom { 43 | background-position: bottom right; 44 | } 45 | .gritter-item { 46 | display:block; 47 | background:url(../images/gritter.png) no-repeat left -40px; 48 | color:#eee; 49 | padding:2px 11px 8px 11px; 50 | font-size: 11px; 51 | font-family:verdana; 52 | } 53 | .hover .gritter-item { 54 | background-position:right -40px; 55 | } 56 | .gritter-item p { 57 | padding:0; 58 | margin:0; 59 | word-wrap:break-word; 60 | } 61 | .gritter-close { 62 | display:none; 63 | position:absolute; 64 | top:5px; 65 | left:3px; 66 | background:url(../images/gritter.png) no-repeat left top; 67 | cursor:pointer; 68 | width:30px; 69 | height:30px; 70 | text-indent:-9999em; 71 | } 72 | .gritter-title { 73 | font-size:14px; 74 | font-weight:bold; 75 | padding:0 0 7px 0; 76 | display:block; 77 | text-shadow:1px 1px 0 #000; /* Not supported by IE :( */ 78 | } 79 | .gritter-image { 80 | width:48px; 81 | height:48px; 82 | float:left; 83 | } 84 | .gritter-with-image, 85 | .gritter-without-image { 86 | padding:0; 87 | } 88 | .gritter-with-image { 89 | width:220px; 90 | float:right; 91 | } 92 | /* for the light (white) version of the gritter notice */ 93 | .gritter-light .gritter-item, 94 | .gritter-light .gritter-bottom, 95 | .gritter-light .gritter-top, 96 | .gritter-light .gritter-close { 97 | background-image: url(../images/gritter-light.png); 98 | color: #222; 99 | } 100 | .gritter-light .gritter-title { 101 | text-shadow: none; 102 | } 103 | -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/css/jquery.gritter0.css: -------------------------------------------------------------------------------- 1 | /* the norm */ 2 | #gritter-notice-wrapper { 3 | position:fixed; 4 | top:20px; 5 | right:20px; 6 | width:301px; 7 | z-index:9999; 8 | } 9 | #gritter-notice-wrapper.top-left { 10 | left: 20px; 11 | right: auto; 12 | } 13 | #gritter-notice-wrapper.bottom-right { 14 | top: auto; 15 | left: auto; 16 | bottom: 20px; 17 | right: 20px; 18 | } 19 | #gritter-notice-wrapper.bottom-left { 20 | top: auto; 21 | right: auto; 22 | bottom: 20px; 23 | left: 20px; 24 | } 25 | .gritter-item-wrapper { 26 | position:relative; 27 | margin:0 0 10px 0; 28 | background:url('../images/ie-spacer.gif'); /* ie7/8 fix */ 29 | } 30 | .gritter-top { 31 | background:url("..images/gritter.png") no-repeat left -30px; 32 | height:10px; 33 | } 34 | .hover .gritter-top { 35 | background-position:right -30px; 36 | } 37 | .gritter-bottom { 38 | background:url("../images/gritter.png") no-repeat left bottom; 39 | height:8px; 40 | margin:0; 41 | } 42 | .hover .gritter-bottom { 43 | background-position: bottom right; 44 | } 45 | .gritter-item { 46 | display:block; 47 | background:url("../images/gritter.png") no-repeat left -40px; 48 | color:#eee; 49 | padding:2px 11px 8px 11px; 50 | font-size: 11px; 51 | font-family:verdana; 52 | } 53 | .hover .gritter-item { 54 | background-position:right -40px; 55 | } 56 | .gritter-item p { 57 | padding:0; 58 | margin:0; 59 | word-wrap:break-word; 60 | } 61 | .gritter-close { 62 | display:none; 63 | position:absolute; 64 | top:5px; 65 | left:3px; 66 | background:url("../images/gritter.png") no-repeat left top; 67 | cursor:pointer; 68 | width:30px; 69 | height:30px; 70 | } 71 | .gritter-title { 72 | font-size:14px; 73 | font-weight:bold; 74 | padding:0 0 7px 0; 75 | display:block; 76 | text-shadow:1px 1px 0 #000; /* Not supported by IE :( */ 77 | } 78 | .gritter-image { 79 | width:48px; 80 | height:48px; 81 | float:left; 82 | } 83 | .gritter-with-image, 84 | .gritter-without-image { 85 | padding:0; 86 | } 87 | .gritter-with-image { 88 | width:220px; 89 | float:right; 90 | } 91 | /* for the light (white) version of the gritter notice */ 92 | .gritter-light .gritter-item, 93 | .gritter-light .gritter-bottom, 94 | .gritter-light .gritter-top, 95 | .gritter-light .gritter-close { 96 | background-image: url("../images/gritter-light.png"); 97 | color: #222; 98 | } 99 | .gritter-light .gritter-title { 100 | text-shadow: none; 101 | } 102 | -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/gritter/images/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/images/gritter-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/gritter/images/gritter-light.png -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/images/gritter-long.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/gritter/images/gritter-long.png -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/images/gritter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/gritter/images/gritter.png -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/images/ie-spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/gritter/images/ie-spacer.gif -------------------------------------------------------------------------------- /public/ctf/assets/js/gritter/js/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/gritter/js/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/jquery-easy-pie-chart/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/js/jquery-easy-pie-chart/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/js/jquery-easy-pie-chart/jquery.easy-pie-chart.css: -------------------------------------------------------------------------------- 1 | .easyPieChart { 2 | position: relative; 3 | text-align: center; 4 | } 5 | 6 | .easyPieChart canvas { 7 | position: absolute; 8 | top: 0; 9 | left: 0; 10 | } 11 | -------------------------------------------------------------------------------- /public/ctf/assets/js/jquery.backstretch.min.js: -------------------------------------------------------------------------------- 1 | /*! Backstretch - v2.0.3 - 2012-11-30 2 | * http://srobbin.com/jquery-plugins/backstretch/ 3 | * Copyright (c) 2012 Scott Robbin; Licensed MIT */ 4 | (function(e,t,n){"use strict";e.fn.backstretch=function(r,s){return(r===n||r.length===0)&&e.error("No images were supplied for Backstretch"),e(t).scrollTop()===0&&t.scrollTo(0,0),this.each(function(){var t=e(this),n=t.data("backstretch");n&&(s=e.extend(n.options,s),n.destroy(!0)),n=new i(this,r,s),t.data("backstretch",n)})},e.backstretch=function(t,n){return e("body").backstretch(t,n).data("backstretch")},e.expr[":"].backstretch=function(t){return e(t).data("backstretch")!==n},e.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var r={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},img:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxWidth:"none",zIndex:-999999}},i=function(n,i,o){this.options=e.extend({},e.fn.backstretch.defaults,o||{}),this.images=e.isArray(i)?i:[i],e.each(this.images,function(){e("")[0].src=this}),this.isBody=n===document.body,this.$container=e(n),this.$wrap=e('
').css(r.wrap).appendTo(this.$container),this.$root=this.isBody?s?e(t):e(document):this.$container;if(!this.isBody){var u=this.$container.css("position"),a=this.$container.css("zIndex");this.$container.css({position:u==="static"?"relative":u,zIndex:a==="auto"?0:a,background:"none"}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&s?"fixed":"absolute"}),this.index=0,this.show(this.index),e(t).on("resize.backstretch",e.proxy(this.resize,this)).on("orientationchange.backstretch",e.proxy(function(){this.isBody&&t.pageYOffset===0&&(t.scrollTo(0,1),this.resize())},this))};i.prototype={resize:function(){try{var e={left:0,top:0},n=this.isBody?this.$root.width():this.$root.innerWidth(),r=n,i=this.isBody?t.innerHeight?t.innerHeight:this.$root.height():this.$root.innerHeight(),s=r/this.$img.data("ratio"),o;s>=i?(o=(s-i)/2,this.options.centeredY&&(e.top="-"+o+"px")):(s=i,r=s*this.$img.data("ratio"),o=(r-n)/2,this.options.centeredX&&(e.left="-"+o+"px")),this.$wrap.css({width:n,height:i}).find("img:not(.deleteable)").css({width:r,height:s}).css(e)}catch(u){}return this},show:function(t){if(Math.abs(t)>this.images.length-1)return;this.index=t;var n=this,i=n.$wrap.find("img").addClass("deleteable"),s=e.Event("backstretch.show",{relatedTarget:n.$container[0]});return clearInterval(n.interval),n.$img=e("").css(r.img).bind("load",function(t){var r=this.width||e(t.target).width(),o=this.height||e(t.target).height();e(this).data("ratio",r/o),e(this).fadeIn(n.options.speed||n.options.fade,function(){i.remove(),n.paused||n.cycle(),n.$container.trigger(s,n)}),n.resize()}).appendTo(n.$wrap),n.$img.attr("src",n.images[t]),n},next:function(){return this.show(this.index1&&(clearInterval(this.interval),this.interval=setInterval(e.proxy(function(){this.paused||this.next()},this),this.options.duration)),this},destroy:function(n){e(t).off("resize.backstretch orientationchange.backstretch"),clearInterval(this.interval),n||this.$wrap.remove(),this.$container.removeData("backstretch")}};var s=function(){var e=navigator.userAgent,n=navigator.platform,r=e.match(/AppleWebKit\/([0-9]+)/),i=!!r&&r[1],s=e.match(/Fennec\/([0-9]+)/),o=!!s&&s[1],u=e.match(/Opera Mobi\/([0-9]+)/),a=!!u&&u[1],f=e.match(/MSIE ([0-9]+)/),l=!!f&&f[1];return!((n.indexOf("iPhone")>-1||n.indexOf("iPad")>-1||n.indexOf("iPod")>-1)&&i&&i<534||t.operamini&&{}.toString.call(t.operamini)==="[object OperaMini]"||u&&a<7458||e.indexOf("Android")>-1&&i&&i<533||o&&o<6||"palmGetResource"in t&&i&&i<534||e.indexOf("MeeGo")>-1&&e.indexOf("NokiaBrowser/8.5.0")>-1||l&&l<=6)}()})(jQuery,window); -------------------------------------------------------------------------------- /public/ctf/assets/js/jquery.scrollTo.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2007-2013 Ariel Flesler - afleslergmailcom | http://flesler.blogspot.com 3 | * Dual licensed under MIT and GPL. 4 | * @author Ariel Flesler 5 | * @version 1.4.6 6 | */ 7 | ;(function($){var h=$.scrollTo=function(a,b,c){$(window).scrollTo(a,b,c)};h.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};h.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(e,f,g){if(typeof f=='object'){g=f;f=0}if(typeof g=='function')g={onAfter:g};if(e=='max')e=9e9;g=$.extend({},h.defaults,g);f=f||g.duration;g.queue=g.queue&&g.axis.length>1;if(g.queue)f/=2;g.offset=both(g.offset);g.over=both(g.over);return this._scrollable().each(function(){if(e==null)return;var d=this,$elem=$(d),targ=e,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(g.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=h.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(g.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=g.offset[pos]||0;if(g.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*g.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(g.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&g.queue){if(old!=attr[key])animate(g.onAfterFirst);delete attr[key]}});animate(g.onAfter);function animate(a){$elem.animate(attr,f,g.easing,a&&function(){a.call(this,targ,g)})}}).end()};h.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery); 8 | -------------------------------------------------------------------------------- /public/ctf/assets/js/jquery.ui.touch-punch.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery UI Touch Punch 0.2.3 3 | * 4 | * Copyright 2011–2014, Dave Furfero 5 | * Dual licensed under the MIT or GPL Version 2 licenses. 6 | * 7 | * Depends: 8 | * jquery.ui.widget.js 9 | * jquery.ui.mouse.js 10 | */ 11 | !function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery); -------------------------------------------------------------------------------- /public/ctf/assets/js/morris-conf.js: -------------------------------------------------------------------------------- 1 | var Script = function () { 2 | 3 | //morris chart 4 | 5 | $(function () { 6 | // data stolen from http://howmanyleft.co.uk/vehicle/jaguar_'e'_type 7 | var tax_data = [ 8 | {"period": "2011 Q3", "licensed": 3407, "sorned": 660}, 9 | {"period": "2011 Q2", "licensed": 3351, "sorned": 629}, 10 | {"period": "2011 Q1", "licensed": 3269, "sorned": 618}, 11 | {"period": "2010 Q4", "licensed": 3246, "sorned": 661}, 12 | {"period": "2009 Q4", "licensed": 3171, "sorned": 676}, 13 | {"period": "2008 Q4", "licensed": 3155, "sorned": 681}, 14 | {"period": "2007 Q4", "licensed": 3226, "sorned": 620}, 15 | {"period": "2006 Q4", "licensed": 3245, "sorned": null}, 16 | {"period": "2005 Q4", "licensed": 3289, "sorned": null} 17 | ]; 18 | Morris.Line({ 19 | element: 'hero-graph', 20 | data: tax_data, 21 | xkey: 'period', 22 | ykeys: ['licensed', 'sorned'], 23 | labels: ['Licensed', 'Off the road'], 24 | lineColors:['#4ECDC4','#ed5565'] 25 | }); 26 | 27 | Morris.Donut({ 28 | element: 'hero-donut', 29 | data: [ 30 | {label: 'Jam', value: 25 }, 31 | {label: 'Frosted', value: 40 }, 32 | {label: 'Custard', value: 25 }, 33 | {label: 'Sugar', value: 10 } 34 | ], 35 | colors: ['#3498db', '#2980b9', '#34495e'], 36 | formatter: function (y) { return y + "%" } 37 | }); 38 | 39 | Morris.Area({ 40 | element: 'hero-area', 41 | data: [ 42 | {period: '2010 Q1', iphone: 2666, ipad: null, itouch: 2647}, 43 | {period: '2010 Q2', iphone: 2778, ipad: 2294, itouch: 2441}, 44 | {period: '2010 Q3', iphone: 4912, ipad: 1969, itouch: 2501}, 45 | {period: '2010 Q4', iphone: 3767, ipad: 3597, itouch: 5689}, 46 | {period: '2011 Q1', iphone: 6810, ipad: 1914, itouch: 2293}, 47 | {period: '2011 Q2', iphone: 5670, ipad: 4293, itouch: 1881}, 48 | {period: '2011 Q3', iphone: 4820, ipad: 3795, itouch: 1588}, 49 | {period: '2011 Q4', iphone: 15073, ipad: 5967, itouch: 5175}, 50 | {period: '2012 Q1', iphone: 10687, ipad: 4460, itouch: 2028}, 51 | {period: '2012 Q2', iphone: 8432, ipad: 5713, itouch: 1791} 52 | ], 53 | 54 | xkey: 'period', 55 | ykeys: ['iphone', 'ipad', 'itouch'], 56 | labels: ['iPhone', 'iPad', 'iPod Touch'], 57 | hideHover: 'auto', 58 | lineWidth: 1, 59 | pointSize: 5, 60 | lineColors: ['#4a8bc2', '#ff6c60', '#a9d86e'], 61 | fillOpacity: 0.5, 62 | smooth: true 63 | }); 64 | 65 | Morris.Bar({ 66 | element: 'hero-bar', 67 | data: [ 68 | {device: 'iPhone', geekbench: 136}, 69 | {device: 'iPhone 3G', geekbench: 137}, 70 | {device: 'iPhone 3GS', geekbench: 275}, 71 | {device: 'iPhone 4', geekbench: 380}, 72 | {device: 'iPhone 4S', geekbench: 655}, 73 | {device: 'iPhone 5', geekbench: 1571} 74 | ], 75 | xkey: 'device', 76 | ykeys: ['geekbench'], 77 | labels: ['Geekbench'], 78 | barRatio: 0.4, 79 | xLabelAngle: 35, 80 | hideHover: 'auto', 81 | barColors: ['#ac92ec'] 82 | }); 83 | 84 | new Morris.Line({ 85 | element: 'examplefirst', 86 | xkey: 'year', 87 | ykeys: ['value'], 88 | labels: ['Value'], 89 | data: [ 90 | {year: '2008', value: 20}, 91 | {year: '2009', value: 10}, 92 | {year: '2010', value: 5}, 93 | {year: '2011', value: 5}, 94 | {year: '2012', value: 20} 95 | ] 96 | }); 97 | 98 | $('.code-example').each(function (index, el) { 99 | eval($(el).text()); 100 | }); 101 | }); 102 | 103 | }(); 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /public/ctf/assets/js/sparkline-chart.js: -------------------------------------------------------------------------------- 1 | var Script = function () { 2 | 3 | $(".sparkline").each(function(){ 4 | var $data = $(this).data(); 5 | 6 | $data.valueSpots = {'0:': $data.spotColor}; 7 | 8 | $(this).sparkline( $data.data || "html", $data, 9 | { 10 | tooltipFormat: '' + 11 | ' {{offset:names}} ({{percent.1}}%)' 12 | }); 13 | 14 | 15 | 16 | 17 | }); 18 | 19 | //sparkline chart 20 | 21 | $("#barchart").sparkline([5,3,6,7,5,6,4,2,3,4,6,8,9,10,8,6,5,7,6,5,4,7,4], { 22 | type: 'bar', 23 | height: '65', 24 | barWidth: 8, 25 | barSpacing: 5, 26 | barColor: '#fff' 27 | // tooltipFormat: '' + 28 | // ' {{offset:names}} ({{percent.1}}%)' 29 | 30 | }); 31 | 32 | 33 | $("#linechart").sparkline([1,5,3,7,9,3,6,4,7,9,7,6,2], { 34 | type: 'line', 35 | width: '300', 36 | height: '75', 37 | fillColor: '', 38 | lineColor: '#fff', 39 | lineWidth: 2, 40 | spotColor: '#fff', 41 | minSpotColor: '#fff', 42 | maxSpotColor: '#fff', 43 | highlightSpotColor: '#fff', 44 | highlightLineColor: '#ffffff', 45 | spotRadius: 4, 46 | highlightLineColor: '#ffffff' 47 | // tooltipFormat: '' + 48 | // ' {{offset:names}} ({{percent.1}}%)' 49 | 50 | 51 | 52 | }); 53 | 54 | $("#pie-chart").sparkline([2,1,1,1], { 55 | type: 'pie', 56 | width: '100', 57 | height: '100', 58 | borderColor: '#00bf00', 59 | sliceColors: ['#41CAC0', '#A8D76F', '#F8D347', '#EF6F66'] 60 | // tooltipFormat: '' + 61 | // ' {{offset:names}} ({{percent.1}}%)' 62 | }); 63 | 64 | //work progress bar 65 | 66 | $("#work-progress1").sparkline([5,6,7,5,9,6,4], { 67 | type: 'bar', 68 | height: '20', 69 | barWidth: 5, 70 | barSpacing: 2, 71 | barColor: '#5fbf00' 72 | // tooltipFormat: '' + 73 | // ' {{offset:names}} ({{percent.1}}%)' 74 | }); 75 | 76 | $("#work-progress2").sparkline([3,2,5,8,4,7,5], { 77 | type: 'bar', 78 | height: '22', 79 | barWidth: 5, 80 | barSpacing: 2, 81 | barColor: '#58c9f1' 82 | // tooltipFormat: '' + 83 | // ' {{offset:names}} ({{percent.1}}%)' 84 | }); 85 | 86 | $("#work-progress3").sparkline([1,6,9,3,4,8,5], { 87 | type: 'bar', 88 | height: '22', 89 | barWidth: 5, 90 | barSpacing: 2, 91 | barColor: '#8075c4' 92 | // tooltipFormat: '' + 93 | // ' {{offset:names}} ({{percent.1}}%)' 94 | }); 95 | 96 | $("#work-progress4").sparkline([9,4,9,6,7,4,3], { 97 | type: 'bar', 98 | height: '22', 99 | barWidth: 5, 100 | barSpacing: 2, 101 | barColor: '#ff6c60' 102 | // tooltipFormat: '' + 103 | // ' {{offset:names}} ({{percent.1}}%)' 104 | }); 105 | 106 | $("#work-progress5").sparkline([6,8,5,7,6,8,3], { 107 | type: 'bar', 108 | height: '22', 109 | barWidth: 5, 110 | barSpacing: 2, 111 | barColor: '#41cac0' 112 | // tooltipFormat: '' + 113 | // ' {{offset:names}} ({{percent.1}}%)' 114 | }); 115 | 116 | $("#pie-chart2").sparkline([2,1,1,1], { 117 | type: 'pie', 118 | width: '250', 119 | height: '125', 120 | sliceColors: ['#41CAC0', '#A8D76F', '#F8D347', '#EF6F66'] 121 | // tooltipFormat: '' + 122 | // ' {{offset:names}} ({{percent.1}}%)'}); 123 | 124 | }); 125 | 126 | }(); -------------------------------------------------------------------------------- /public/ctf/assets/js/tasks.js: -------------------------------------------------------------------------------- 1 | var TaskList = function () { 2 | 3 | return { 4 | 5 | initTaskWidget: function () { 6 | $('input.list-child').change(function() { 7 | if ($(this).is(':checked')) { 8 | $(this).parents('li').addClass("task-done"); 9 | } else { 10 | $(this).parents('li').removeClass("task-done"); 11 | } 12 | }); 13 | } 14 | 15 | }; 16 | 17 | }(); -------------------------------------------------------------------------------- /public/ctf/assets/lineicons/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/lineicons/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/lineicons/fonts/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/lineicons/fonts/.DS_Store -------------------------------------------------------------------------------- /public/ctf/assets/lineicons/fonts/linecons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/lineicons/fonts/linecons.eot -------------------------------------------------------------------------------- /public/ctf/assets/lineicons/fonts/linecons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/lineicons/fonts/linecons.ttf -------------------------------------------------------------------------------- /public/ctf/assets/lineicons/fonts/linecons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/ctf/assets/lineicons/fonts/linecons.woff -------------------------------------------------------------------------------- /public/ctf/assets/lineicons/lte-ie7.js: -------------------------------------------------------------------------------- 1 | /* Use this script if you need to support IE 7 and IE 6. */ 2 | 3 | window.onload = function() { 4 | function addIcon(el, entity) { 5 | var html = el.innerHTML; 6 | el.innerHTML = '' + entity + '' + html; 7 | } 8 | var icons = { 9 | 'li_heart' : '', 10 | 'li_cloud' : '', 11 | 'li_star' : '', 12 | 'li_tv' : '', 13 | 'li_sound' : '', 14 | 'li_video' : '', 15 | 'li_trash' : '', 16 | 'li_user' : '', 17 | 'li_key' : '', 18 | 'li_search' : '', 19 | 'li_settings' : '', 20 | 'li_camera' : '', 21 | 'li_tag' : '', 22 | 'li_lock' : '', 23 | 'li_bulb' : '', 24 | 'li_pen' : '', 25 | 'li_diamond' : '', 26 | 'li_display' : '', 27 | 'li_location' : '', 28 | 'li_eye' : '', 29 | 'li_bubble' : '', 30 | 'li_stack' : '', 31 | 'li_cup' : '', 32 | 'li_phone' : '', 33 | 'li_news' : '', 34 | 'li_mail' : '', 35 | 'li_like' : '', 36 | 'li_photo' : '', 37 | 'li_note' : '', 38 | 'li_clock' : '', 39 | 'li_paperplane' : '', 40 | 'li_params' : '', 41 | 'li_banknote' : '', 42 | 'li_data' : '', 43 | 'li_music' : '', 44 | 'li_megaphone' : '', 45 | 'li_study' : '', 46 | 'li_lab' : '', 47 | 'li_food' : '', 48 | 'li_t-shirt' : '', 49 | 'li_fire' : '', 50 | 'li_clip' : '', 51 | 'li_shop' : '', 52 | 'li_calendar' : '', 53 | 'li_vallet' : '', 54 | 'li_vynil' : '', 55 | 'li_truck' : '', 56 | 'li_world' : '' 57 | }, 58 | els = document.getElementsByTagName('*'), 59 | i, attr, html, c, el; 60 | for (i = 0; i < els.length; i += 1) { 61 | el = els[i]; 62 | attr = el.getAttribute('data-icon'); 63 | if (attr) { 64 | addIcon(el, attr); 65 | } 66 | c = el.className; 67 | c = c.match(/li_[^\s'"]+/); 68 | if (c && icons[c[0]]) { 69 | addIcon(el, icons[c[0]]); 70 | } 71 | } 72 | }; -------------------------------------------------------------------------------- /public/ctf/build/toastr.min.js: -------------------------------------------------------------------------------- 1 | !function(e){e(["jquery"],function(e){return function(){function t(e,t,n){return g({type:O.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),v=e("#"+t.containerId),v.length?v:(n&&(v=d(t)),v)}function o(e,t,n){return g({type:O.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function s(e){C=e}function i(e,t,n){return g({type:O.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return g({type:O.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function r(e,t){var o=m();v||n(o),u(e,o,t)||l(o)}function c(t){var o=m();return v||n(o),t&&0===e(":focus",t).length?void h(t):void(v.children().length&&v.remove())}function l(t){for(var n=v.children(),o=n.length-1;o>=0;o--)u(e(n[o]),t)}function u(t,n,o){var s=!(!o||!o.force)&&o.force;return!(!t||!s&&0!==e(":focus",t).length)&&(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0)}function d(t){return v=e("
").attr("id",t.containerId).addClass(t.positionClass),v.appendTo(e(t.target)),v}function p(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function f(e){C&&C(e)}function g(t){function o(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function s(){c(),u(),d(),p(),g(),C(),l(),i()}function i(){var e="";switch(t.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}I.attr("aria-live",e)}function a(){E.closeOnHover&&I.hover(H,D),!E.onclick&&E.tapToDismiss&&I.click(b),E.closeButton&&j&&j.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),E.onCloseClick&&E.onCloseClick(e),b(!0)}),E.onclick&&I.click(function(e){E.onclick(e),b()})}function r(){I.hide(),I[E.showMethod]({duration:E.showDuration,easing:E.showEasing,complete:E.onShown}),E.timeOut>0&&(k=setTimeout(b,E.timeOut),F.maxHideTime=parseFloat(E.timeOut),F.hideEta=(new Date).getTime()+F.maxHideTime,E.progressBar&&(F.intervalId=setInterval(x,10)))}function c(){t.iconClass&&I.addClass(E.toastClass).addClass(y)}function l(){E.newestOnTop?v.prepend(I):v.append(I)}function u(){if(t.title){var e=t.title;E.escapeHtml&&(e=o(t.title)),M.append(e).addClass(E.titleClass),I.append(M)}}function d(){if(t.message){var e=t.message;E.escapeHtml&&(e=o(t.message)),B.append(e).addClass(E.messageClass),I.append(B)}}function p(){E.closeButton&&(j.addClass(E.closeClass).attr("role","button"),I.prepend(j))}function g(){E.progressBar&&(q.addClass(E.progressClass),I.prepend(q))}function C(){E.rtl&&I.addClass("rtl")}function O(e,t){if(e.preventDuplicates){if(t.message===w)return!0;w=t.message}return!1}function b(t){var n=t&&E.closeMethod!==!1?E.closeMethod:E.hideMethod,o=t&&E.closeDuration!==!1?E.closeDuration:E.hideDuration,s=t&&E.closeEasing!==!1?E.closeEasing:E.hideEasing;if(!e(":focus",I).length||t)return clearTimeout(F.intervalId),I[n]({duration:o,easing:s,complete:function(){h(I),clearTimeout(k),E.onHidden&&"hidden"!==P.state&&E.onHidden(),P.state="hidden",P.endTime=new Date,f(P)}})}function D(){(E.timeOut>0||E.extendedTimeOut>0)&&(k=setTimeout(b,E.extendedTimeOut),F.maxHideTime=parseFloat(E.extendedTimeOut),F.hideEta=(new Date).getTime()+F.maxHideTime)}function H(){clearTimeout(k),F.hideEta=0,I.stop(!0,!0)[E.showMethod]({duration:E.showDuration,easing:E.showEasing})}function x(){var e=(F.hideEta-(new Date).getTime())/F.maxHideTime*100;q.width(e+"%")}var E=m(),y=t.iconClass||E.iconClass;if("undefined"!=typeof t.optionsOverride&&(E=e.extend(E,t.optionsOverride),y=t.optionsOverride.iconClass||y),!O(E,t)){T++,v=n(E,!0);var k=null,I=e("
"),M=e("
"),B=e("
"),q=e("
"),j=e(E.closeHtml),F={intervalId:null,hideEta:null,maxHideTime:null},P={toastId:T,state:"visible",startTime:new Date,options:E,map:t};return s(),r(),a(),f(P),E.debug&&console&&console.log(P),I}}function m(){return e.extend({},p(),b.options)}function h(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),w=void 0))}var v,C,w,T=0,O={error:"error",info:"info",success:"success",warning:"warning"},b={clear:r,remove:c,error:t,getContainer:n,info:o,options:{},subscribe:s,success:i,version:"2.1.4",warning:a};return b}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}); 2 | //# sourceMappingURL=toastr.js.map 3 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/public/favicon.ico -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 |

DL&S-Platform🚩

2 | 3 | 4 | ## ♻ About DL&S-Platform 5 | 6 | ```php 7 | DL&S 来自 SDPC 8 | 9 | 此平台用于DLCTF比赛,欢迎star 10 | 11 | Ubuntu16.04+Laravel+Mysql+Nginx 12 | 13 | 比赛前端界面与0ops的平台一致,皆为开源html5模板 14 | ``` 15 | 16 | ## 😋 How to use 17 | 18 | 1. Route 19 | ```php 20 | Route::get('challenges','ctfController@challenges'); 21 | Route::get('scoreboard','ctfController@score'); 22 | Route::post('flag/submit','ctfController@submitflag'); 23 | /* 24 | admin 25 | */ 26 | Route::get('ctfadmin/task','adminController@seetask'); 27 | Route::any('ctfadmin/task/add','adminController@addtask'); 28 | Route::get('ctfadmin/home','adminController@index'); 29 | Route::any('ctfadmin/task/hint','adminController@hintadd'); 30 | 31 | Auth::routes(); 32 | 33 | Route::get('/home', 'ctfController@index'); 34 | Route::get('/about','ctfController@about'); 35 | ``` 36 | 37 | 2. Run it 38 | 39 | ```bash 40 | >mysql pass is root(or vim .env) 41 | 42 | >git clone https://github.com/sdpc-ctf/DLCTF-Platform.git 43 | 44 | >cd VCTF-Platform 45 | 46 | >cp .env.example .env 47 | 48 | >vim .env to update database 49 | 50 | >php artisan key:generate 51 | 52 | >mysql -uroot -p ctf < ctf.sql 53 | 54 | >composer install 55 | 56 | >php artisan serve --host=0.0.0.0 57 | 58 | >http://yourip:8000/ 59 | 60 | >Admin:venenof7@11.com/venenof7 61 | 62 | >play ctf:) 63 | ``` 64 | ## 👨‍💻 Contact me 65 | 66 | `593220746@qq.com` 67 | 68 | ## 🎞photo 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | ## 🏷todo list 77 | - [x] 一血显示 78 | - [x] solved题目显示绿色 79 | - [x] 后台题目相关,单个/批量隐藏,题目修改,删除 80 | - [x] 后台优化,公告添加、notice删除。前台侧边栏增加Notice,打开显示提示。 81 | - [x] 题目展示页面ui改善、积分榜增加Last Submit时间。后台增加比赛相关修改,前台比赛信息在数据库中,后台直接修改即可。 82 | - [x] 侧边栏增加总分类(展开每个题目分类页面),同时不同种类题目样式显示不一样 83 | 84 | ## 🕊待增加的锅 85 | 86 | ~~题目动态积分~~ 87 | 88 | ~~积分榜美化~~ 89 | 90 | -------------------------------------------------------------------------------- /resources/assets/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * First we will load all of this project's JavaScript dependencies which 4 | * includes Vue and other libraries. It is a great starting point when 5 | * building robust, powerful web applications using Vue and Laravel. 6 | */ 7 | 8 | require('./bootstrap'); 9 | 10 | window.Vue = require('vue'); 11 | 12 | /** 13 | * Next, we will create a fresh Vue application instance and attach it to 14 | * the page. Then, you may begin adding components to this application 15 | * or customize the JavaScript scaffolding to fit your unique needs. 16 | */ 17 | 18 | Vue.component('example-component', require('./components/ExampleComponent.vue')); 19 | 20 | const app = new Vue({ 21 | el: '#app' 22 | }); 23 | -------------------------------------------------------------------------------- /resources/assets/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | 2 | window._ = require('lodash'); 3 | 4 | /** 5 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 6 | * for JavaScript based Bootstrap features such as modals and tabs. This 7 | * code may be modified to fit the specific needs of your application. 8 | */ 9 | 10 | try { 11 | window.$ = window.jQuery = require('jquery'); 12 | 13 | require('bootstrap-sass'); 14 | } catch (e) {} 15 | 16 | /** 17 | * We'll load the axios HTTP library which allows us to easily issue requests 18 | * to our Laravel back-end. This library automatically handles sending the 19 | * CSRF token as a header based on the value of the "XSRF" token cookie. 20 | */ 21 | 22 | window.axios = require('axios'); 23 | 24 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 25 | 26 | /** 27 | * Next we will register the CSRF Token as a common header with Axios so that 28 | * all outgoing HTTP requests automatically have it attached. This is just 29 | * a simple convenience so we don't have to attach every token manually. 30 | */ 31 | 32 | let token = document.head.querySelector('meta[name="csrf-token"]'); 33 | 34 | if (token) { 35 | window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; 36 | } else { 37 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); 38 | } 39 | 40 | /** 41 | * Echo exposes an expressive API for subscribing to channels and listening 42 | * for events that are broadcast by Laravel. Echo and event broadcasting 43 | * allows your team to easily build robust real-time web applications. 44 | */ 45 | 46 | // import Echo from 'laravel-echo' 47 | 48 | // window.Pusher = require('pusher-js'); 49 | 50 | // window.Echo = new Echo({ 51 | // broadcaster: 'pusher', 52 | // key: 'your-pusher-key', 53 | // cluster: 'mt1', 54 | // encrypted: true 55 | // }); 56 | -------------------------------------------------------------------------------- /resources/assets/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /resources/assets/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f5f8fa; 4 | 5 | // Borders 6 | $laravel-border-color: darken($body-bg, 10%); 7 | $list-group-border: $laravel-border-color; 8 | $navbar-default-border: $laravel-border-color; 9 | $panel-default-border: $laravel-border-color; 10 | $panel-inner-border: $laravel-border-color; 11 | 12 | // Brands 13 | $brand-primary: #3097D1; 14 | $brand-info: #8eb4cb; 15 | $brand-success: #2ab27b; 16 | $brand-warning: #cbb956; 17 | $brand-danger: #bf5329; 18 | 19 | // Typography 20 | $icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/"; 21 | $font-family-sans-serif: "Raleway", sans-serif; 22 | $font-size-base: 14px; 23 | $line-height-base: 1.6; 24 | $text-color: #636b6f; 25 | 26 | // Navbar 27 | $navbar-default-bg: #fff; 28 | 29 | // Buttons 30 | $btn-default-color: $text-color; 31 | 32 | // Inputs 33 | $input-border: lighten($text-color, 40%); 34 | $input-border-focus: lighten($brand-primary, 25%); 35 | $input-color-placeholder: lighten($text-color, 30%); 36 | 37 | // Panels 38 | $panel-default-heading-bg: #fff; 39 | -------------------------------------------------------------------------------- /resources/assets/sass/app.scss: -------------------------------------------------------------------------------- 1 | 2 | // Fonts 3 | @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600"); 4 | 5 | // Variables 6 | @import "variables"; 7 | 8 | // Bootstrap 9 | @import "~bootstrap-sass/assets/stylesheets/bootstrap"; 10 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/views/adminpage/editnotice.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminpage.home') 2 | @section('content') 3 | @foreach($notice as $noticedata) 4 |
5 | 66 |
67 |
Update Notice
68 |
    69 |
  1. 70 | 首页
  2. 71 | 72 |
    73 |
    74 |
    75 | Notice更新
    76 |
    77 |
    78 |
    79 |
    80 |
    81 | 82 | 83 |
    84 | 85 |
    86 | 87 |
    88 |
    89 |
    90 |
    91 |
    92 |
    93 |
    94 |
    95 |
    96 |
    97 |
    98 |
99 |
100 | @endforeach 101 | @endsection 102 | -------------------------------------------------------------------------------- /resources/views/adminpage/hint.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminpage.home') 2 | @section('content') 3 |
4 |
5 |
Amaze UI 列表
6 |
7 | 63 |
64 |
65 |
66 |
Add Task
67 |
    68 |
  1. 69 | 首页
  2. 70 | 71 |
    72 |
    73 |
    74 | 题目hint添加
    75 |
    76 |
    77 |
    78 |
    79 |
    80 | 81 | 82 |
    83 | 85 |
    86 | 91 |
    92 |
    93 | 94 |
    95 | 96 |
    97 | 98 |
    99 |
    100 |
    101 |
    102 |
    103 |
    104 |
    105 |
    106 |
    107 |
    108 |
    109 |
110 |
111 | @endsection 112 | -------------------------------------------------------------------------------- /resources/views/adminpage/home.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdpc-ctf/DLCTF-Platform/c1a74cce731f020332f1b462e0b6ba47c46ade31/resources/views/adminpage/home.blade.php -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Reset Password
9 | 10 |
11 | @if (session('status')) 12 |
13 | {{ session('status') }} 14 |
15 | @endif 16 | 17 |
18 | {{ csrf_field() }} 19 | 20 |
21 | 22 | 23 |
24 | 25 | 26 | @if ($errors->has('email')) 27 | 28 | {{ $errors->first('email') }} 29 | 30 | @endif 31 |
32 |
33 | 34 |
35 |
36 | 39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | @endsection 48 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Reset Password
9 | 10 |
11 |
12 | {{ csrf_field() }} 13 | 14 | 15 | 16 |
17 | 18 | 19 |
20 | 21 | 22 | @if ($errors->has('email')) 23 | 24 | {{ $errors->first('email') }} 25 | 26 | @endif 27 |
28 |
29 | 30 |
31 | 32 | 33 |
34 | 35 | 36 | @if ($errors->has('password')) 37 | 38 | {{ $errors->first('password') }} 39 | 40 | @endif 41 |
42 |
43 | 44 |
45 | 46 |
47 | 48 | 49 | @if ($errors->has('password_confirmation')) 50 | 51 | {{ $errors->first('password_confirmation') }} 52 | 53 | @endif 54 |
55 |
56 | 57 |
58 |
59 | 62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | @endsection 71 | -------------------------------------------------------------------------------- /resources/views/ctf/about.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @extends('ctf.home') 5 | @section('content') 6 | 57 | 58 |
59 |
60 |

About

61 | 62 |
63 |
64 |
65 |
66 |

Nu1L Team

67 |
68 |
69 |
70 | 71 |
72 | 73 |
74 | 75 |
76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | @endsection -------------------------------------------------------------------------------- /resources/views/ctf/home.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | VenCTF Plat 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 31 | 32 | 33 | 34 |
35 | 38 | 39 |
40 | 43 | 44 | 45 | 46 | 47 |
48 | 49 | 50 | 53 | 54 | @yield('content') 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /resources/views/ctf/notice.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @extends('ctf.home') 5 | @section('content') 6 | 57 | 62 |
63 |
64 |

Notice

65 | 66 | 67 | @foreach($data as $datadata) 68 | 69 | @if($num == 1) 70 |
71 |
72 | 73 | {{$datadata->addtime}}
{{base64_decode($datadata->data)}} 74 |
75 |
76 | @elseif($num == 2) 77 |
78 |
79 | 80 | {{$datadata->addtime}}
{{base64_decode($datadata->data)}} 81 |
82 |
83 | @else($num == 3) 84 |
85 |
86 | 87 | {{$datadata->addtime}}
{{base64_decode($datadata->data)}} 88 |
89 |
90 | @endif 91 | 92 | @endforeach 93 | 94 |
95 |
96 | 97 |
98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | @endsection 115 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Dashboard
9 | 10 |
11 | @if (session('status')) 12 |
13 | {{ session('status') }} 14 |
15 | @endif 16 | 17 | You are logged in! 18 |
19 |
20 |
21 |
22 |
23 | @endsection 24 | -------------------------------------------------------------------------------- /resources/views/jump.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
{{$message}},将在1秒后跳转至首页页面
4 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ config('app.name', 'Laravel') }} 12 | 13 | 14 | 15 | 16 | 17 |
18 | 73 | 74 | @yield('content') 75 |
76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Laravel 9 | 10 | 11 | 12 | 13 | 14 | 66 | 67 | 68 |
69 | @if (Route::has('login')) 70 | 78 | @endif 79 | 80 |
81 |
82 | Laravel 83 |
84 | 85 | 92 |
93 |
94 | 95 | 96 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | where('type','[a-z]+'); 20 | Route::get('scoreboard','ctfController@score'); 21 | Route::post('flag/submit','ctfController@submitflag'); 22 | Route::any('notice','ctfController@notice'); 23 | /* 24 | admin 25 | */ 26 | Route::get('ctfadmin/task','adminController@seetask'); 27 | Route::any('ctfadmin/task/add','adminController@addtask'); 28 | Route::any('ctfadmin/task/edit/{id}','adminController@edittask')->where('id','[0-9]+'); 29 | Route::get('ctfadmin/home','adminController@index'); 30 | Route::any('ctfadmin/task/hint','adminController@hintadd'); 31 | Route::get('ctfadmin/task/delete/{id}','adminController@delete')->where('id','[0-9]+'); 32 | Route::get('ctfadmin/task/hide/{id}','adminController@hide')->where('id','[0-9]+'); 33 | Route::get('ctfadmin/task/open/{id}','adminController@open')->where('id','[0-9]+'); 34 | Route::any('ctfadmin/notice','adminController@notice'); 35 | Route::get('ctfadmin/task/open/{id}','adminController@open')->where('id','[0-9]+'); 36 | Route::get('ctfadmin/notice/delete/{id}','adminController@noticedelete')->where('id','[0-9]+'); 37 | Route::any('ctfadmin/notice/edit/{id}','adminController@noticeedit')->where('id','[0-9]+'); 38 | Route::get('ctfadmin/team','adminController@seeteam'); 39 | Route::any('ctfadmin/team/edit/{id}','adminController@editteam')->where('id','[0-9]+'); 40 | Route::get('ctfadmin/team/delete/{id}','adminController@deleteteam')->where('id','[0-9]+'); 41 | 42 | 43 | 44 | 45 | Auth::routes(); 46 | 47 | Route::get('/home', 'ctfController@index'); 48 | Route::get('/about','ctfController@about'); 49 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 20 | 21 | Hash::setRounds(4); 22 | 23 | return $app; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | let mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/assets/js/app.js', 'public/js') 15 | .sass('resources/assets/sass/app.scss', 'public/css'); 16 | --------------------------------------------------------------------------------