Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.219.197.162
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
vendor /
psy /
psysh /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
CodeCleaner
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Command
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Exception
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Formatter
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Input
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Readline
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Reflection
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Sudo
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
TabCompletion
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Util
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
VersionUpdater
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
fixtures
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
tools
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
ClassWithSecrets.php
895
B
-rw-r--r--
2018-10-13 15:16
CodeCleanerTest.php
3.23
KB
-rw-r--r--
2018-10-13 15:16
ConfigurationTest.php
8.04
KB
-rw-r--r--
2018-10-13 15:16
ConsoleColorFactoryTest.php
1.47
KB
-rw-r--r--
2018-10-13 15:16
ContextTest.php
9.17
KB
-rw-r--r--
2018-10-13 15:16
FakeShell.php
529
B
-rw-r--r--
2018-10-13 15:16
ParserTestCase.php
2.4
KB
-rw-r--r--
2018-10-13 15:16
ShellTest.php
13.18
KB
-rw-r--r--
2018-10-13 15:16
SudoTest.php
2.71
KB
-rw-r--r--
2018-10-13 15:16
Save
Rename
<?php /* * This file is part of Psy Shell. * * (c) 2012-2018 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Psy\Test; use Psy\Sudo; class SudoTest extends \PHPUnit\Framework\TestCase { public function setUp() { if (\version_compare(PHP_VERSION, '7.1.0', '<')) { $this->markTestSkipped('YOLO'); } } public function testFetchProperty() { $obj = new ClassWithSecrets(); $this->assertSame('private and prop', Sudo::fetchProperty($obj, 'privateProp')); } public function testAssignProperty() { $obj = new ClassWithSecrets(); $this->assertSame('private and prop', Sudo::fetchProperty($obj, 'privateProp')); $this->assertSame('not so private now', Sudo::assignProperty($obj, 'privateProp', 'not so private now')); $this->assertSame('not so private now', Sudo::fetchProperty($obj, 'privateProp')); } public function testCallMethod() { $obj = new ClassWithSecrets(); $this->assertSame('private and method', Sudo::callMethod($obj, 'privateMethod')); $this->assertSame('private and method with 1', Sudo::callMethod($obj, 'privateMethod', 1)); $this->assertSame( 'private and method with ["foo",2]', Sudo::callMethod($obj, 'privateMethod', ['foo', 2] )); } public function testFetchStaticProperty() { $obj = new ClassWithSecrets(); $this->assertSame('private and static and prop', Sudo::fetchStaticProperty($obj, 'privateStaticProp')); } public function testAssignStaticProperty() { $obj = new ClassWithSecrets(); $this->assertSame('private and static and prop', Sudo::fetchStaticProperty($obj, 'privateStaticProp')); $this->assertSame('not so private now', Sudo::assignStaticProperty($obj, 'privateStaticProp', 'not so private now')); $this->assertSame('not so private now', Sudo::fetchStaticProperty($obj, 'privateStaticProp')); } public function testCallStatic() { $obj = new ClassWithSecrets(); $this->assertSame('private and static and method', Sudo::callStatic($obj, 'privateStaticMethod')); $this->assertSame('private and static and method with 1', Sudo::callStatic($obj, 'privateStaticMethod', 1)); $this->assertSame( 'private and static and method with ["foo",2]', Sudo::callStatic($obj, 'privateStaticMethod', ['foo', 2] )); } public function testFetchClassConst() { $obj = new ClassWithSecrets(); $this->assertSame('private and const', Sudo::fetchClassConst($obj, 'PRIVATE_CONST')); } }