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 : SearchCommand.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\Factory; use Composer\Json\JsonFile; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Composer\Repository\CompositeRepository; use Composer\Repository\PlatformRepository; use Composer\Repository\RepositoryInterface; use Composer\Plugin\CommandEvent; use Composer\Plugin\PluginEvents; /** * @author Robert Schönthal <seroscho@googlemail.com> */ class SearchCommand extends BaseCommand { /** * @return void */ protected function configure() { $this ->setName('search') ->setDescription('Searches for packages.') ->setDefinition(array( new InputOption('only-name', 'N', InputOption::VALUE_NONE, 'Search only in package names'), new InputOption('only-vendor', 'O', InputOption::VALUE_NONE, 'Search only for vendor / organization names, returns only "vendor" as result'), new InputOption('type', 't', InputOption::VALUE_REQUIRED, 'Search for a specific package type'), new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text or json', 'text'), new InputArgument('tokens', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'tokens to search for'), )) ->setHelp( <<<EOT The search command searches for packages by its name <info>php composer.phar search symfony composer</info> Read more at https://getcomposer.org/doc/03-cli.md#search EOT ) ; } protected function execute(InputInterface $input, OutputInterface $output) { // init repos $platformRepo = new PlatformRepository; $io = $this->getIO(); $format = $input->getOption('format'); if (!in_array($format, array('text', 'json'))) { $io->writeError(sprintf('Unsupported format "%s". See help for supported formats.', $format)); return 1; } if (!($composer = $this->getComposer(false))) { $composer = Factory::create($this->getIO(), array(), $input->hasParameterOption('--no-plugins')); } $localRepo = $composer->getRepositoryManager()->getLocalRepository(); $installedRepo = new CompositeRepository(array($localRepo, $platformRepo)); $repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories())); $commandEvent = new CommandEvent(PluginEvents::COMMAND, 'search', $input, $output); $composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent); $mode = RepositoryInterface::SEARCH_FULLTEXT; if ($input->getOption('only-name') === true) { if ($input->getOption('only-vendor') === true) { throw new \InvalidArgumentException('--only-name and --only-vendor cannot be used together'); } $mode = RepositoryInterface::SEARCH_NAME; } elseif ($input->getOption('only-vendor') === true) { $mode = RepositoryInterface::SEARCH_VENDOR; } $type = $input->getOption('type'); $query = implode(' ', $input->getArgument('tokens')); if ($mode !== RepositoryInterface::SEARCH_FULLTEXT) { $query = preg_quote($query); } $results = $repos->search($query, $mode, $type); if ($results && $format === 'text') { $width = $this->getTerminalWidth(); $nameLength = 0; foreach ($results as $result) { $nameLength = max(strlen($result['name']), $nameLength); } $nameLength += 1; foreach ($results as $result) { $description = isset($result['description']) ? $result['description'] : ''; $warning = !empty($result['abandoned']) ? '<warning>! Abandoned !</warning> ' : ''; $remaining = $width - $nameLength - strlen($warning) - 2; if (strlen($description) > $remaining) { $description = substr($description, 0, $remaining - 3) . '...'; } $io->write(str_pad($result['name'], $nameLength, ' ') . $warning . $description); } } elseif ($format === 'json') { $io->write(JsonFile::encode($results)); } return 0; } }
Close