Kernel : Linux vmw02p.internet-indee.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64
Disable function : NONE
Safe mode : OFF
Host : firofichi.it | Server ip : 5.196.164.15 | Your ip : 3.147.78.151 | Time @ Server : 19 Oct 2024 07:09:39
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/massimoborgia/test/pub/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/webmaster/massimoborgia/test/pub/health_check.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ use Magento\Framework\Config\ConfigOptionsListConstants; register_shutdown_function("fatalErrorHandler"); try { require __DIR__ . '/../app/bootstrap.php'; /** @var \Magento\Framework\App\ObjectManagerFactory $objectManagerFactory */ $objectManagerFactory = \Magento\Framework\App\Bootstrap::createObjectManagerFactory(BP, []); /** @var \Magento\Framework\ObjectManagerInterface $objectManager */ $objectManager = $objectManagerFactory->create([]); /** @var \Magento\Framework\App\DeploymentConfig $deploymentConfig */ $deploymentConfig = $objectManager->get(\Magento\Framework\App\DeploymentConfig::class); /** @var \Psr\Log\LoggerInterface $logger */ $logger = $objectManager->get(\Psr\Log\LoggerInterface::class); } catch (\Exception $e) { http_response_code(500); exit(1); } // check mysql connectivity foreach ($deploymentConfig->get(ConfigOptionsListConstants::CONFIG_PATH_DB_CONNECTIONS) as $connectionData) { try { /** @var \Magento\Framework\DB\Adapter\Pdo\Mysql $dbAdapter */ $dbAdapter = $objectManager->create( \Magento\Framework\DB\Adapter\Pdo\Mysql::class, ['config' => $connectionData] ); $dbAdapter->getConnection(); } catch (\Exception $e) { http_response_code(500); $logger->error("MySQL connection failed: " . $e->getMessage()); exit(1); } } // check cache storage availability $cacheConfigs = $deploymentConfig->get(ConfigOptionsListConstants::KEY_CACHE_FRONTEND); if ($cacheConfigs) { foreach ($cacheConfigs as $cacheConfig) { if (!isset($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND]) || !isset($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND_OPTIONS])) { http_response_code(500); $logger->error("Cache configuration is invalid"); exit(1); } $cacheBackendClass = $cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND]; try { /** @var \Zend_Cache_Backend_Interface $backend */ $backend = new $cacheBackendClass($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND_OPTIONS]); $backend->test('test_cache_id'); } catch (\Exception $e) { http_response_code(500); $logger->error("Cache storage is not accessible"); exit(1); } } } /** * Handle any fatal errors * * @return void */ function fatalErrorHandler() { $error = error_get_last(); if ($error !== null) { http_response_code(500); } }