Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 24 Aug 2025 00:35:24
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/App/

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

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/App/MaintenanceMode.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\App; use Magento\Framework\App\Filesystem\DirectoryList; use Magento\Framework\Filesystem; use Magento\Framework\Event\Manager; /** * Application Maintenance Mode */ class MaintenanceMode { /** * Maintenance flag file name * * DO NOT consolidate this file and the IP white list into one. * It is going to work much faster in 99% of cases: the isOn() will return false whenever file doesn't exist. */ const FLAG_FILENAME = '.maintenance.flag'; /** * IP-addresses file name */ const IP_FILENAME = '.maintenance.ip'; /** * Maintenance flag dir */ const FLAG_DIR = DirectoryList::VAR_DIR; /** * Path to store files * * @var \Magento\Framework\Filesystem\Directory\WriteInterface */ protected $flagDir; /** * @var Manager */ private $eventManager; /** * @param \Magento\Framework\Filesystem $filesystem * @param Manager|null $eventManager */ public function __construct(Filesystem $filesystem, ?Manager $eventManager = null) { $this->flagDir = $filesystem->getDirectoryWrite(self::FLAG_DIR); $this->eventManager = $eventManager ?: ObjectManager::getInstance()->get(Manager::class); } /** * Checks whether mode is on * * Optionally specify an IP-address to compare against the white list * * @param string $remoteAddr * @return bool */ public function isOn($remoteAddr = '') { if (!$this->flagDir->isExist(self::FLAG_FILENAME)) { return false; } $info = $this->getAddressInfo(); return !in_array($remoteAddr, $info); } /** * Sets maintenance mode "on" or "off" * * @param bool $isOn * @return bool */ public function set($isOn) { $this->eventManager->dispatch('maintenance_mode_changed', ['isOn' => $isOn]); if ($isOn) { return $this->flagDir->touch(self::FLAG_FILENAME); } if ($this->flagDir->isExist(self::FLAG_FILENAME)) { return $this->flagDir->delete(self::FLAG_FILENAME); } return true; } /** * Sets list of allowed IP addresses * * @param string $addresses * @return bool * @throws \InvalidArgumentException */ public function setAddresses($addresses) { $addresses = (string)$addresses; if (empty($addresses)) { if ($this->flagDir->isExist(self::IP_FILENAME)) { return $this->flagDir->delete(self::IP_FILENAME); } return true; } if (!preg_match('/^[^\s,]+(,[^\s,]+)*$/', $addresses)) { throw new \InvalidArgumentException("One or more IP-addresses is expected (comma-separated)\n"); } $result = $this->flagDir->writeFile(self::IP_FILENAME, $addresses); return false !== $result; } /** * Get list of IP addresses effective for maintenance mode * * @return string[] */ public function getAddressInfo() { if ($this->flagDir->isExist(self::IP_FILENAME)) { $temp = $this->flagDir->readFile(self::IP_FILENAME); return explode(',', trim($temp)); } else { return []; } } }