repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/control/users/edit.php
_japp/control/users/edit.php
<?php class UsersEditController extends BaseControllerClass { function Start() { $App=$this->App; $View=$this->View; # Put your logic here $Users=new SystemUsersModel($App); $View->Count=$Users->UserCount(); if (isset($_POST['uid'])) //edit user { ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/control/users/add.php
_japp/control/users/add.php
<?php class UsersAddController extends BaseControllerClass { function Start() { $App=$this->App; $View=$this->View; # Put your logic here if (isset($_POST["Username"])) { $r=$App->Session->CreateUser($_POST['Username'],$_POST['Password']); echo "Create use...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/files/index.php
files/index.php
<?php /* Report errors. Ignore pesky notices. * There are a few places this script assumes information is * available for folders (size, for example) that does not * exist. Let's just make sure you're not reporting notices. */ error_reporting(1); /*******************************************************************...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/HTTPBasics/index.php
challenges/single/HTTPBasics/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/JSObfuscation/index.php
challenges/single/JSObfuscation/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/WeakAuthenticationCookie/index.php
challenges/single/WeakAuthenticationCookie/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/HTMLClues/index.php
challenges/single/HTMLClues/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/ForcedBrowsing/index.php
challenges/single/ForcedBrowsing/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/BusinessLayerAccessControl/index.php
challenges/single/BusinessLayerAccessControl/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/HiddenFields/index.php
challenges/single/HiddenFields/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/UsefulTools/index.php
challenges/single/UsefulTools/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/HTMLFieldRestrictions/index.php
challenges/single/HTMLFieldRestrictions/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/XSS3/index.php
challenges/single/XSS3/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/XSS2/index.php
challenges/single/XSS2/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/ForgotPassword/index.php
challenges/single/ForgotPassword/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/XPATHInjection/index.php
challenges/single/XPATHInjection/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/EncodingBasics/index.php
challenges/single/EncodingBasics/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/XSS1/index.php
challenges/single/XSS1/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/WebGoatIntro/index.php
challenges/single/WebGoatIntro/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/LogSpoofing/index.php
challenges/single/LogSpoofing/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/SessionFixation/index.php
challenges/single/SessionFixation/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/PathBasedAccessControl/index.php
challenges/single/PathBasedAccessControl/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/SameOriginPolicy/index.php
challenges/single/SameOriginPolicy/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/HTTPOnly/index.php
challenges/single/HTTPOnly/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/FailOpenAuthentication/index.php
challenges/single/FailOpenAuthentication/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/NumericSQLInjection/index.php
challenges/single/NumericSQLInjection/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/challenges/single/AccessControlMatrix/index.php
challenges/single/AccessControlMatrix/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/template/SampleLesson/index.php
template/SampleLesson/index.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/install/index.php
install/index.php
<?php ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/Module.php
Module.php
<?php namespace ZfcBase; use Zend\ModuleManager\Feature\AutoloaderProviderInterface; class Module implements AutoloaderProviderInterface { public function getAutoloaderConfig() { return array( 'Zend\Loader\ClassMapAutoloader' => array( __DIR__ . '/autoload_classmap.php', ...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/autoload_classmap.php
autoload_classmap.php
<?php // Generated by ZF2's ./bin/classmap_generator.php return array( 'ZfcBase\Module' => __DIR__ . '/Module.php', 'ZfcBase\Form\ProvidesEventsForm' => __DIR__ . '/src/ZfcBase/Form/ProvidesEventsForm.php', 'ZfcBase\Mapper\Exception\ExceptionInterface' ...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/Db/Adapter/MasterSlaveAdapter.php
src/ZfcBase/Db/Adapter/MasterSlaveAdapter.php
<?php namespace ZfcBase\Db\Adapter; use Zend\Db\Adapter\Adapter; use Zend\Db\Adapter\Platform; use Zend\Db\ResultSet; class MasterSlaveAdapter extends Adapter implements MasterSlaveAdapterInterface { /** * slave adapter * * @var Adapter */ protected $slaveAdapter; /** * @param A...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/Db/Adapter/MasterSlaveAdapterInterface.php
src/ZfcBase/Db/Adapter/MasterSlaveAdapterInterface.php
<?php namespace ZfcBase\Db\Adapter; interface MasterSlaveAdapterInterface { /** * @return \Zend\Db\Adapter\Adapter */ public function getSlaveAdapter(); }
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/Module/AbstractModule.php
src/ZfcBase/Module/AbstractModule.php
<?php namespace ZfcBase\Module; use InvalidArgumentException; use Zend\Config\Config; use Zend\EventManager\EventInterface as Event; use Zend\EventManager\StaticEventManager; use Zend\ModuleManager\Feature\AutoloaderProviderInterface; use Zend\ModuleManager\Feature\LocatorRegisteredInterface; use Zend\ModuleManager\M...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/Form/ProvidesEventsForm.php
src/ZfcBase/Form/ProvidesEventsForm.php
<?php namespace ZfcBase\Form; use Traversable; use Zend\Form\Form; use Zend\EventManager\EventManagerInterface; use Zend\EventManager\EventManager; class ProvidesEventsForm extends Form { /** * @var EventManagerInterface */ protected $events; /** * Set the event manager instance used by t...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/EventManager/EventProvider.php
src/ZfcBase/EventManager/EventProvider.php
<?php namespace ZfcBase\EventManager; use Traversable; use Zend\EventManager\EventManagerAwareInterface; use Zend\EventManager\EventManagerInterface; use Zend\EventManager\EventManager; abstract class EventProvider implements EventManagerAwareInterface { /** * @var EventManagerInterface */ protecte...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/InputFilter/ProvidesEventsInputFilter.php
src/ZfcBase/InputFilter/ProvidesEventsInputFilter.php
<?php namespace ZfcBase\InputFilter; use Zend\InputFilter\InputFilter; use Zend\EventManager\EventManagerInterface; use Zend\EventManager\EventManager; class ProvidesEventsInputFilter extends InputFilter { /** * @var EventManagerInterface */ protected $events; /** * Set the event manager ...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/Mapper/AbstractDbMapper.php
src/ZfcBase/Mapper/AbstractDbMapper.php
<?php namespace ZfcBase\Mapper; use Zend\Db\Adapter\Adapter; use Zend\Db\Adapter\Driver\ResultInterface; use Zend\Db\ResultSet\HydratingResultSet; use Zend\Db\Sql\Select; use Zend\Db\Sql\Sql; use Zend\Db\Sql\TableIdentifier; use Zend\Stdlib\Hydrator\HydratorInterface; use Zend\Stdlib\Hydrator\ClassMethods; use ZfcBas...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/Mapper/Exception/ExceptionInterface.php
src/ZfcBase/Mapper/Exception/ExceptionInterface.php
<?php namespace ZfcBase\Mapper\Exception; interface ExceptionInterface {}
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/src/ZfcBase/Mapper/Exception/InvalidArgumentException.php
src/ZfcBase/Mapper/Exception/InvalidArgumentException.php
<?php namespace ZfcBase\Mapper\Exception; class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface {}
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/test/Bootstrap.php
test/Bootstrap.php
<?php namespace ZfcBaseTest; use Zend\Loader\AutoloaderFactory; use Zend\Mvc\Service\ServiceManagerConfig; use Zend\ServiceManager\ServiceManager; use Zend\Stdlib\ArrayUtils; use RuntimeException; error_reporting(E_ALL | E_STRICT); chdir(__DIR__); class Bootstrap { protected static $serviceManager; public s...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/test/ZfcBaseTest/Form/ProvidesEventsFormTest.php
test/ZfcBaseTest/Form/ProvidesEventsFormTest.php
<?php namespace ZfcBaseTest\Form; use PHPUnit_Framework_TestCase; use ZfcBase\Form\ProvidesEventsForm; use Zend\EventManager\EventManager; class ProvidesEventsFormTest extends PHPUnit_Framework_TestCase { public function setup() { $this->form = new ProvidesEventsForm; } public function testGe...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/test/ZfcBaseTest/Mapper/AbstractDbMapperTest.php
test/ZfcBaseTest/Mapper/AbstractDbMapperTest.php
<?php namespace ZfcBaseTest\Mapper; use PHPUnit_Framework_TestCase; use Zend\Db\Adapter\Adapter; use ZfcBase\Db\Adapter\MasterSlaveAdapter; use ZfcBaseTest\Mapper\TestAsset\TestMapper; class AbstractDbMapperTest extends PHPUnit_Framework_TestCase { public function setup() { $this->mockDriver = $this->...
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
ZF-Commons/ZfcBase
https://github.com/ZF-Commons/ZfcBase/blob/db2772ce6e78750d777fbdaeab5b1efc39ae02da/test/ZfcBaseTest/Mapper/TestAsset/TestMapper.php
test/ZfcBaseTest/Mapper/TestAsset/TestMapper.php
<?php namespace ZfcBaseTest\Mapper\TestAsset; use ZfcBase\Mapper\AbstractDbMapper; class TestMapper extends AbstractDbMapper { }
php
BSD-3-Clause
db2772ce6e78750d777fbdaeab5b1efc39ae02da
2026-01-05T04:19:31.518302Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/.github/clean_routines_sql.php
.github/clean_routines_sql.php
<?php /** * mysqldump --no-data --no-create-info --skip-triggers --routines --skip-opt echoCTF| php clean_routines_sql.php "php://stdin" */ $rmline[]="/*!50003 SET sql_mode = @saved_sql_mode */ ;\n"; $rmline[]="/*!50003 SET character_set_client = @saved_cs_client */ ;\n"; $rmline[]="/*!50003 SET charact...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/.github/clean_trigger_sql.php
.github/clean_trigger_sql.php
<?php /** * mysqldump --no-data --no-create-info --triggers --add-drop-trigger echoCTF|php clean_trigger_sql.php "php://stdin" */ $rmline[]="/*!50003 SET sql_mode = @saved_sql_mode */ ;\n"; $rmline[]="/*!50003 SET character_set_client = @saved_cs_client */ ;\n"; $rmline[]="/*!50003 SET character_set_res...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/.github/clean_events_sql.php
.github/clean_events_sql.php
<?php /** * mysqldump --no-data --no-create-info --skip-triggers --no-create-db --events echoCTF | php clean_events_sql.php "php://stdin" */ $rmline[]="/*!50003 SET @saved_time_zone = @@time_zone */ ;;\n"; $rmline[]="/*!50003 SET time_zone = 'SYSTEM' */ ;;\n"; $rmline[]="/*!50106 SET @save_time_zone=...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/contrib/sample-migrations/m000000_000002_update_levels.php
contrib/sample-migrations/m000000_000002_update_levels.php
<?php use yii\db\Migration; /** * Class m000000_000002_update_levels */ class m000000_000002_update_levels extends Migration { public $levels = [ 'newbie' => ['min_points' => 0, 'max_points' => 33010], 'CTFer' => ['min_points' => (33010 * 1) + 1, 'max_points' => 33010 * 2], 'hax0r' => ['min_points' =>...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/contrib/sample-migrations/m000000_000001_system_settings.php
contrib/sample-migrations/m000000_000001_system_settings.php
<?php use yii\db\Migration; /** * Class m000000_000001_system_settings */ class m000000_000001_system_settings extends Migration { public $sysconfigs = [ /** * General event details */ ['id' => "event_active", 'val' => "1"], ['id' => "event_name", 'val' => "echoCTF"], ['id' => "site_desc...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/contrib/sample-migrations/m000000_000003_add_extra_docker_servers.php
contrib/sample-migrations/m000000_000003_add_extra_docker_servers.php
<?php use yii\db\Migration; /** * Class m000000_000003_add_extra_docker_servers */ class m000000_000003_add_extra_docker_servers extends Migration { public $minsrv = 1; public $maxsrv = 4; public $server = [ 'name' => 'docker%d', 'ip' => '%d', 'network' => 'AAnet', 'service' => 'docker', ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/requirements.php
backend/requirements.php
<?php /** * Application requirement checker script. * * In order to run this script use the following console command: * php requirements.php * * In order to run this script from the web, you should copy it to the web root. * If you are using Linux you can create a hard link instead, using the following command:...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modelscli/BannedMxServer.php
backend/modelscli/BannedMxServer.php
<?php namespace app\modelscli; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\Expression; use yii\behaviors\AttributeTypecastBehavior; /** * This is the model class for table "banned_mx_servers". * * @property int $id * @property string|null $name * @property string|null $notes * @property string|nul...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modelscli/EmailTemplateQuery.php
backend/modelscli/EmailTemplateQuery.php
<?php namespace app\modelscli; /** * This is the ActiveQuery class for [[EmailTemplate]]. * * @see EmailTemplate */ class EmailTemplateQuery extends \yii\db\ActiveQuery { public function last($minutes=3600) { return $this->andWhere("updated_at>=NOW() - INTERVAL $minutes MINUTE"); } /** ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modelscli/BannedMxServerQuery.php
backend/modelscli/BannedMxServerQuery.php
<?php namespace app\modelscli; /** * This is the ActiveQuery class for [[BannedMxServer]]. * * @see BannedMxServer */ class BannedMxServerQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * {@inheritdoc} * @return Ba...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modelscli/EmailTemplateSearch.php
backend/modelscli/EmailTemplateSearch.php
<?php namespace app\modelscli; use yii\base\Model; use yii\data\ActiveDataProvider; use app\modules\content\models\EmailTemplate; /** * EmailTemplateSearch represents the model behind the search form of `app\modules\content\models\EmailTemplate`. */ class EmailTemplateSearch extends EmailTemplate { /** * ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modelscli/VpnTemplateQuery.php
backend/modelscli/VpnTemplateQuery.php
<?php namespace app\modelscli; /** * This is the ActiveQuery class for [[VpnTemplate]]. * * @see VpnTemplate */ class VpnTemplateQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * {@inheritdoc} * @return VpnTemplate...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modelscli/VpnTemplateSearch.php
backend/modelscli/VpnTemplateSearch.php
<?php namespace app\modelscli; use yii\base\Model; use yii\data\ActiveDataProvider; use app\modules\content\models\VpnTemplate; /** * VpnTemplateSearch represents the model behind the search form of `app\modules\content\models\VpnTemplate`. */ class VpnTemplateSearch extends VpnTemplate { /** * {@inheritd...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modelscli/VpnTemplate.php
backend/modelscli/VpnTemplate.php
<?php namespace app\modelscli; use Yii; use yii\behaviors\AttributeTypecastBehavior; use yii\behaviors\TimestampBehavior; use yii\db\Expression; /** * This is the model class for table "vpn_template". * * @property int $id * @property string $name * @property string $filename * @property int $client * @proper...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modelscli/EmailTemplate.php
backend/modelscli/EmailTemplate.php
<?php namespace app\modelscli; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\Expression; /** * This is the model class for table "email_template". * * @property int $id * @property string|null $name * @property string|null $title * @property string|null $html * @property string|null $txt */ class ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/services/ServerPublisher.php
backend/services/ServerPublisher.php
<?php namespace app\services; use yii\httpclient\Client; use Yii; use yii\base\InvalidConfigException; use yii\web\ServerErrorHttpException; /** * Service responsible for publishing events to an external server endpoint. * * @package app\services * @example * ``` * $publisher = new ServerPublisher(Yii::$app->p...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/mail/layouts/text.php
backend/mail/layouts/text.php
<?php use yii\helpers\Html; /** @var \yii\web\View $this view component instance */ /** @var \yii\mail\MessageInterface $message the message being composed */ /** @var string $content main view render result */ ?> <?php $this->beginPage();?> <?php $this->beginBody();?> <?= $content ?> <?php $this->endBody();?> <?php...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/mail/layouts/gmail.php
backend/mail/layouts/gmail.php
<?php use yii\helpers\Html; ?> <?php $this->beginPage() ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <script type="application/ld+json"> [{ "@context": "http://schema.org/", "@type": "Organization", "logo": "https://<?=Yii::$app->sys->offense_domain?>/images/logo.png" },{ "@context...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/mail/layouts/html.php
backend/mail/layouts/html.php
<?php use yii\helpers\Html; /* @var $this \yii\web\View view component instance */ /* @var $message \yii\mail\MessageInterface the message being composed */ /* @var $content string main view render result */ ?> <?php $this->beginPage() ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/MaintenanceController.php
backend/commands/MaintenanceController.php
<?php /** * @author Pantelis Roditis <proditis@echothrust.com> * @copyright 2022 * @since 0.20.2 */ namespace app\commands; use Yii; use yii\console\Exception as ConsoleException; use yii\helpers\Console; use yii\console\Controller; /** * Perform start/stop migration steps * * @author proditis */ class Main...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/SslController.php
backend/commands/SslController.php
<?php namespace app\commands; use Yii; use yii\console\Controller; use yii\console\ExitCode; use app\modules\frontend\models\Player; use app\modules\frontend\models\Crl; use app\modules\frontend\models\PlayerSsl; use app\modules\gameplay\models\Target; use app\modules\settings\models\Sysconfig; use yii\console\Excepti...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/TargetController.php
backend/commands/TargetController.php
<?php namespace app\commands; use yii\console\Controller; use Docker\DockerClientFactory; use app\modules\gameplay\models\Target; use Docker\Docker; use app\modules\infrastructure\models\TargetInstance; use app\modules\infrastructure\models\Server; use app\modules\infrastructure\models\DockerContainer; use app\compon...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/PlayerController.php
backend/commands/PlayerController.php
<?php /** * @author Pantelis Roditis <proditis@echothrust.com> * @copyright 2019 * @since 0.1 */ namespace app\commands; use app\modules\activity\models\PlayerVpnHistory; use Yii; use yii\console\Exception as ConsoleException; use yii\helpers\Console; use yii\console\Controller; use app\modules\settings\models\S...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/CronController.php
backend/commands/CronController.php
<?php namespace app\commands; use yii\console\Controller; use yii\helpers\ArrayHelper; use Docker\DockerClientFactory; use app\modules\activity\models\SpinQueue; use app\modules\activity\models\SpinHistory; use app\modules\gameplay\models\Target; use app\components\Pf; use Docker\Docker; use app\modules\infrastructur...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/UserController.php
backend/commands/UserController.php
<?php /** * @author Pantelis Roditis <proditis@echothrust.com> * @copyright 2019 * @since 0.1 */ namespace app\commands; use Yii; use yii\console\Exception as ConsoleException; use yii\helpers\Console; use yii\console\Controller; use app\models\User; /** * Manages backend users. * * @author proditis */ class...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/VpnController.php
backend/commands/VpnController.php
<?php /** * @author Pantelis Roditis <proditis@echothrust.com> * @copyright 2022 */ namespace app\commands; use Yii; use yii\console\Exception as ConsoleException; use yii\helpers\Console; use yii\console\Controller; use app\modules\frontend\models\Player; use app\modules\activity\models\PlayerLast; use app\compo...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/MigrateController.php
backend/commands/MigrateController.php
<?php namespace app\commands; use yii\console\controllers\MigrateController as BaseMigrateController; use yii\helpers\FileHelper; use Yii; class MigrateController extends BaseMigrateController { public $customParams = []; protected function generateMigrationSourceCode($params) { if (!isset($params['classN...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/MetadataController.php
backend/commands/MetadataController.php
<?php namespace app\commands; use Yii; use yii\console\Controller; use app\modules\infrastructure\models\TargetMetadata; use yii\console\ExitCode; class MetadataController extends Controller { public $defaultAction='view'; /** * Delete a given target metadata * @param $id The id of a specific target to del...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/PrivateNetworkController.php
backend/commands/PrivateNetworkController.php
<?php namespace app\commands; use Yii; use app\components\ConsoleLockController as Controller; use yii\console\widgets\Table; use app\modules\infrastructure\models\PrivateNetworkTarget; use app\modules\infrastructure\models\Server; use app\modules\gameplay\models\NetworkTarget; use app\modules\infrastructure\models\D...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/TesterController.php
backend/commands/TesterController.php
<?php namespace app\commands; use Yii; use yii\console\Controller; use Symfony\Component\Mailer\Transport\TransportInterface; use Symfony\Component\Mailer\Transport\TransportFactory; use Symfony\Component\Mailer\Transport\DebugTransport; use Symfony\Component\Mime\Email; use yii\console\widgets\Table; /** * Tester ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/TemplateController.php
backend/commands/TemplateController.php
<?php /** * @author Pantelis Roditis <proditis@echothrust.com> * @copyright 2022 * @since 0.1 */ namespace app\commands; use Yii; use yii\console\Exception as ConsoleException; use yii\helpers\Console; use yii\console\Controller; use app\modules\models\EmailTemplate; /** * Manages backend templates. * * @auth...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/commands/SysconfigController.php
backend/commands/SysconfigController.php
<?php namespace app\commands; use yii\console\Controller; use yii\console\ExitCode; use app\modules\frontend\models\Player; use app\modules\gameplay\models\Target; use app\modules\settings\models\Sysconfig; use yii\console\Exception as ConsoleException; class SysconfigController extends Controller { /* * Set a ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/controllers/MenuController.php
backend/controllers/MenuController.php
<?php namespace app\controllers; use Yii; use app\models\DbMenu as Menu; use app\models\DbMenuSearch as MenuSearch; use yii\data\ActiveDataProvider; use yii\web\NotFoundHttpException; use yii\helpers\ArrayHelper; class MenuController extends \app\components\BaseController { /** * {@inheritdoc} */ public fu...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/controllers/SiteController.php
backend/controllers/SiteController.php
<?php namespace app\controllers; use Yii; use yii\filters\AccessControl; use yii\web\Controller; use yii\web\Response; use yii\filters\VerbFilter; use app\models\LoginForm; class SiteController extends Controller { /** * {@inheritdoc} */ public function behaviors() { return [ ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/Produce.php
backend/components/Produce.php
<?php namespace app\components; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; class Produce extends Component { public static $leftpart = [ "admiring", "adoring", "affectionate", "agitated", "amazing", "angry", "awesome", "beautiful", "blissful", "bold", "boring", "br...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
true
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/Markdown.php
backend/components/Markdown.php
<?php namespace app\components; use cebe\markdown\GithubMarkdown; class Markdown extends GithubMarkdown { /** * Add bootstrap classes to tables. * @inheritdoc */ public function renderTable($block) { return str_replace('<table>', '<table class="table table-bordered table-striped">...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/Encrypt.php
backend/components/Encrypt.php
<?php namespace app\components; use Yii; /** * Handle Flag related operations * @method encrypt */ class Flag { // Helper function to encrypt the code public static function encrypt($code, $secretKey) { // Encrypt the data with the secret key using AES $encrypted = openssl_encrypt($code, 'AES-128-EC...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/Pf.php
backend/components/Pf.php
<?php namespace app\components; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; /** * Handle Pf related tasks * @method load_table_file * @method load_anchor_file * @method store */ class Pf extends Component { const PFCTL = "/sbin/pfctl -q"; /** * Load a pf table from its file ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/OpenVPN.php
backend/components/OpenVPN.php
<?php namespace app\components; use stdClass; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; /** * Handle Pf related tasks * @method load_table_file * @method load_anchor_file * @method store */ class OpenVPN extends Component { public $debug; public function init() { $this->deb...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/Mailer.php
backend/components/Mailer.php
<?php namespace app\components; use Yii; class Mailer extends \yii\symfonymailer\Mailer { public function init() { parent::init(); $this->useFileTransport = (bool)Yii::$app->sys->mail_useFileTransport; if (trim(\Yii::$app->sys->dsn)!=="") { $config['dsn']=trim(\Yii::$app->sys->dsn); } else ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/Formatter.php
backend/components/Formatter.php
<?php namespace app\components; use Yii; use yii\apidoc\helpers\ApiMarkdown; use yii\apidoc\models\Context; use yii\helpers\HtmlPurifier; use yii\helpers\Markdown; use yii\helpers\StringHelper; use yii\helpers\Html; class Formatter extends \yii\i18n\Formatter { public $dateFormat = 'medium'; public $timeFormat =...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/TimezoneBootstrap.php
backend/components/TimezoneBootstrap.php
<?php namespace app\components; use Yii; use yii\base\BootstrapInterface; class TimezoneBootstrap implements BootstrapInterface { public function bootstrap($app) { Yii::$app->timeZone = Yii::$app->sys->time_zone ?: 'UTC'; date_default_timezone_set(Yii::$app->sys->time_zone ?: 'UTC'); } }
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/ConsoleLockController.php
backend/components/ConsoleLockController.php
<?php namespace app\components; use Yii; use yii\console\Controller; use yii\base\UserException; class ConsoleLockController extends Controller { private static function lockCheck($lock) { if (file_exists($lock)) { throw new UserException(\Yii::t('app', '{date} {action} {lock} exists since {since}, ski...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/Sysconfig.php
backend/components/Sysconfig.php
<?php namespace app\components; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; use app\modules\settings\models\Sysconfig as dbSys; class Sysconfig extends Component { public function __get($attribute) { if(dbSys::findOne($attribute) === null) return null; $val=dbSys::findOne($attr...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/StopForumSpam.php
backend/components/StopForumSpam.php
<?php namespace app\components; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; use app\modules\settings\models\Sysconfig as dbSys; class StopForumSpam extends Component { public $url = 'http://api.stopforumspam.org/api'; public $email; public function init() { parent::init(); } ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/BaseController.php
backend/components/BaseController.php
<?php namespace app\components; use Yii; use yii\filters\AccessControl; use yii\filters\VerbFilter; /** * @property bool $eventInactive * @property bool $eventBetweenStartEnd * @property bool $teamsRequired */ class BaseController extends \yii\web\Controller { /** * {@inheritdoc} */ public function be...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/WebhookTrigger.php
backend/components/WebhookTrigger.php
<?php namespace app\components; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; use app\modules\settings\models\Sysconfig as dbSys; class WebhookTrigger extends Component { public $url; public $data; public $headers=['Content-Type: application/json']; public function init() { par...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/virtualization/Containerd.php
backend/components/virtualization/Containerd.php
<?php namespace app\components\virtualization; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; use Docker\Docker; use Docker\DockerClientFactory; use Docker\API\Model\AuthConfig; use Docker\API\Model\ContainersCreatePostBody; use Docker\API\Model\EndpointIPAMConfig; use Docker\API\Model\Endpo...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/virtualization/Pved.php
backend/components/virtualization/Pved.php
<?php namespace app\components\virtualization; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; use yii\base\UserException; /** * Component that handles Proxmox Virtualization Enviroment operations */ class Pved extends Component { public function init() { parent::init(); } /** ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/validators/StopForumSpamValidator.php
backend/components/validators/StopForumSpamValidator.php
<?php /** * Check memcache key for registrations performed by this IP. */ namespace app\components\validators; use yii\validators\Validator; use yii\helpers\ArrayHelper; class StopForumSpamValidator extends Validator { public $url = 'http://api.stopforumspam.org/api'; public $message="SP: Spam email detecte...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/validators/TotalRegistrationsValidator.php
backend/components/validators/TotalRegistrationsValidator.php
<?php /** * Check MySQL IP counter. */ namespace app\components\validators; use yii\validators\Validator; use yii\helpers\ArrayHelper; class TotalRegistrationsValidator extends Validator { public $max=10; public $message="You reached your maximum registrations for this IP!"; public $counter; public ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/validators/MXServersValidator.php
backend/components/validators/MXServersValidator.php
<?php /** * Check email address MX Records for denied servers. */ namespace app\components\validators; use yii\validators\Validator; use yii\helpers\ArrayHelper; class MXServersValidator extends Validator { public $range; public $banned_message="Sorry but you are using an email server that is banned!"; ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/validators/HourRegistrationValidator.php
backend/components/validators/HourRegistrationValidator.php
<?php /** * Check memcache key for registrations performed by this IP. */ namespace app\components\validators; use yii\validators\Validator; use yii\helpers\ArrayHelper; class HourRegistrationValidator extends Validator { public $max=3; public $message; public $counter; public $client_ip; public...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/validators/PlayerEmailValidator.php
backend/components/validators/PlayerEmailValidator.php
<?php /** * Check email address MX Records for denied servers. */ namespace app\components\validators; use yii\base\Model; use yii\validators\Validator; use yii\helpers\ArrayHelper; class PlayerEmailValidator extends Validator { protected function validateValue($value) { $model = new Email(); $m...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/validators/ExtendedIpValidator.php
backend/components/validators/ExtendedIpValidator.php
<?php namespace app\components\validators; use yii\validators\IpValidator; class ExtendedIpValidator extends IpValidator { protected function validateValue($value) { // First, try parent (handles /bits, plain IPs) $result = parent::validateValue($value); if ($result === null) { ...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false
echoCTF/echoCTF.RED
https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/validators/LowerRangeValidator.php
backend/components/validators/LowerRangeValidator.php
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace app\components\validators; use Yii; use yii\base\InvalidConfigException; use yii\helpers\ArrayHelper; use yii\validators\ValidationAsset; /** * RangeValidat...
php
BSD-2-Clause
842f644a0b15af85ba5ffda841b32b40121c3063
2026-01-05T04:18:44.767387Z
false