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 /
ext /
sysvmsg /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
452
B
-rw-rw-r--
2022-10-31 11:36
002.phpt
611
B
-rw-rw-r--
2022-10-31 11:36
003.phpt
516
B
-rw-rw-r--
2022-10-31 11:36
004.phpt
1.4
KB
-rw-rw-r--
2022-10-31 11:36
005.phpt
1.74
KB
-rw-rw-r--
2022-10-31 11:36
006.phpt
1.34
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- msg_set_queue() and msg_stat_queue() --SKIPIF-- <?php if (!extension_loaded("sysvmsg")) die("skip sysvmsg extension is not available")?> --FILE-- <?php $id = ftok(__FILE__, 'r'); $q = msg_get_queue($id); echo "Set mode:\n"; $arr = array('msg_perm.mode' => 0600); var_dump(msg_set_queue($q, $arr)); echo "Did really work:\n"; var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); echo "Set uid:\n"; // same as the running user to make it succeed $arr = array('msg_perm.uid' => getmyuid()); var_dump(msg_set_queue($q, $arr)); echo "Did really work:\n"; var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); echo "Set gid:\n"; // same as the running user to make it succeed $arr = array('msg_perm.gid' => getmygid()); var_dump(msg_set_queue($q, $arr)); echo "Did really work:\n"; var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); echo "Set smaller qbytes:\n"; $res = msg_stat_queue($q); $arr = array('msg_qbytes' => ($res['msg_qbytes'] -1)); var_dump(msg_set_queue($q, $arr)); echo "Did really work:\n"; var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); if (!msg_remove_queue($q)) { echo "BAD: queue removal failed\n"; } echo "Done\n"; ?> --EXPECT-- Set mode: bool(true) Did really work: bool(true) Set uid: bool(true) Did really work: bool(true) Set gid: bool(true) Did really work: bool(true) Set smaller qbytes: bool(true) Did really work: bool(true) Done