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.129.63.242
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 : xpcall.phpt
--TEST-- xpcall() basic behaviour --FILE-- <?php $lua = <<<LUA function xpcall_test(f, err) local status, msg status, msg = xpcall(f, err) if not status then return msg else return "success" end end LUA; $xperr = 'return "xp: " .. msg'; $tests = array( 'Normal' => array( 'return 1', $xperr ), 'User error' => array( 'error("runtime error")', $xperr ), 'Error in error handler' => array( 'error("original error")', 'error("error in handler")' ), 'Unconvertible error in error handler' => array( 'error("original error")', 'error({})' ), 'Numeric error in error handler' => array( 'error("original error")', 'error(2)', ), 'Argument check error' => array( 'string.byte()', $xperr ), 'Protected infinite recursion' => array( 'function foo() foo() end foo()', $xperr ), 'Infinite recursion in handler' => array( 'error("x")', 'function foo() foo() end foo()' ), 'Protected infinite loop' => array( 'while true do end', $xperr, ), 'Infinite loop in handler' => array( 'error("x")', 'while true do end', ), 'Out of memory in handler' => array( 'error("x")', 'string.rep("x", 1000000)' ), ); $sandbox = new LuaSandbox; $sandbox->loadString( $lua )->call(); $sandbox->setCPULimit( 0.25 ); $sandbox->setMemoryLimit( 100000 ); foreach ( $tests as $desc => $info ) { $sandbox = new LuaSandbox; $sandbox->loadString( $lua )->call(); $sandbox->setCPULimit( 0.25 ); $sandbox->setMemoryLimit( 100000 ); echo "$desc: "; list( $code, $errorCode ) = $info; $func = $sandbox->loadString( $code ); $errorCode = "return function(msg) $errorCode end"; $ret = $sandbox->loadString( $errorCode )->call(); $errorFunc = $ret[0]; try { print implode("\n", $sandbox->callFunction( 'xpcall_test', $func, $errorFunc ) ) . "\n"; } catch ( LuaSandboxError $e ) { echo "LuaSandboxError: " . $e->getMessage() . "\n"; } } --EXPECT-- Normal: success User error: xp: [string ""]:1: runtime error Error in error handler: LuaSandboxError: [string ""]:1: error in handler Unconvertible error in error handler: LuaSandboxError: unknown error Numeric error in error handler: LuaSandboxError: [string ""]:1: 2 Argument check error: xp: [string ""]:1: bad argument #1 to 'byte' (string expected, got no value) Protected infinite recursion: LuaSandboxError: not enough memory Infinite recursion in handler: LuaSandboxError: not enough memory Protected infinite loop: LuaSandboxError: The maximum execution time for this script was exceeded Infinite loop in handler: LuaSandboxError: The maximum execution time for this script was exceeded Out of memory in handler: LuaSandboxError: not enough memory
Close