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 05:35:06
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/HTTP/PhpEnvironment/

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

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/HTTP/PhpEnvironment/RemoteAddress.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\HTTP\PhpEnvironment; use Magento\Framework\App\RequestInterface; /** * Library for working with client ip address. */ class RemoteAddress { /** * Request object. * * @var RequestInterface */ protected $request; /** * Remote address cache. * * @var string */ protected $remoteAddress; /** * @var array */ protected $alternativeHeaders; /** * @var string[]|null */ private $trustedProxies; /** * @param RequestInterface $httpRequest * @param array $alternativeHeaders * @param string[]|null $trustedProxies */ public function __construct( RequestInterface $httpRequest, array $alternativeHeaders = [], array $trustedProxies = null ) { $this->request = $httpRequest; $this->alternativeHeaders = $alternativeHeaders; $this->trustedProxies = $trustedProxies; } /** * Read address based on settings. * * @return string|null */ private function readAddress() { $remoteAddress = null; foreach ($this->alternativeHeaders as $var) { if ($this->request->getServer($var, false)) { $remoteAddress = $this->request->getServer($var); break; } } if (!$remoteAddress) { $remoteAddress = $this->request->getServer('REMOTE_ADDR'); } return $remoteAddress; } /** * Filter addresses by trusted proxies list. * * @param string $remoteAddress * @return string|null */ private function filterAddress(string $remoteAddress) { if (strpos($remoteAddress, ',') !== false) { $ipList = explode(',', $remoteAddress); } else { $ipList = [$remoteAddress]; } $ipList = array_filter( $ipList, function (string $ip) { return filter_var(trim($ip), FILTER_VALIDATE_IP); } ); if ($this->trustedProxies !== null) { $ipList = array_filter( $ipList, function (string $ip) { return !in_array(trim($ip), $this->trustedProxies, true); } ); $remoteAddress = trim(array_pop($ipList)); } else { $remoteAddress = trim(reset($ipList)); } return $remoteAddress ?: null; } /** * Retrieve Client Remote Address. * If alternative headers are used and said headers allow multiple IPs * it is suggested that trusted proxies is also used * for more accurate IP recognition. * * @param bool $ipToLong converting IP to long format * * @return string IPv4|long */ public function getRemoteAddress(bool $ipToLong = false) { if ($this->remoteAddress !== null) { return $this->remoteAddress; } $remoteAddress = $this->readAddress(); if (!$remoteAddress) { $this->remoteAddress = false; return false; } $remoteAddress = $this->filterAddress($remoteAddress); if (!$remoteAddress) { $this->remoteAddress = false; return false; } else { $this->remoteAddress = $remoteAddress; return $ipToLong ? ip2long($this->remoteAddress) : $this->remoteAddress; } } /** * Returns internet host name corresponding to remote server * * @return string|null */ public function getRemoteHost() { return $this->getRemoteAddress() ? gethostbyaddr($this->getRemoteAddress()) : null; } }