Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
Zend /
tests /
anon /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
116
B
-rw-rw-r--
2022-10-31 11:36
002.phpt
301
B
-rw-rw-r--
2022-10-31 11:36
003.phpt
661
B
-rw-rw-r--
2022-10-31 11:36
004.phpt
880
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
006.phpt
185
B
-rw-rw-r--
2022-10-31 11:36
007.phpt
359
B
-rw-rw-r--
2022-10-31 11:36
008.phpt
473
B
-rw-rw-r--
2022-10-31 11:36
009.phpt
237
B
-rw-rw-r--
2022-10-31 11:36
010.phpt
251
B
-rw-rw-r--
2022-10-31 11:36
011.phpt
321
B
-rw-rw-r--
2022-10-31 11:36
012.phpt
238
B
-rw-rw-r--
2022-10-31 11:36
013.phpt
242
B
-rw-rw-r--
2022-10-31 11:36
014.phpt
236
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- testing reusing anons that implement an interface --FILE-- <?php class Outer { protected $data; public function __construct(&$data) { /* array access will be implemented by the time we get to here */ $this->data = &$data; } public function getArrayAccess() { /* create a child object implementing array access */ /* this grants you access to protected methods and members */ return new class($this->data) implements ArrayAccess { public function offsetGet($offset) { return $this->data[$offset]; } public function offsetSet($offset, $data) { return ($this->data[$offset] = $data); } public function offsetUnset($offset) { unset($this->data[$offset]); } public function offsetExists($offset) { return isset($this->data[$offset]); } }; } } $data = array( rand(1, 100), rand(2, 200) ); $outer = new Outer($data); $proxy = $outer->getArrayAccess(); /* null because no inheritance, so no access to protected member */ var_dump(@$outer->getArrayAccess()[0]); --EXPECT-- NULL