Server IP : 149.255.58.128 / Your IP : 216.73.216.119
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /var/softaculous/moodle45//privatekey.php
<?php
// We do not need this file any more
@unlink('privatekey.php');
$ltikey = __mod_lti_verify_private_key();
$enrol_lti = __mod_lti_verify_private_key();
echo '<kid>'.$ltikey['kid'].'</kid>';
echo '<privatekey>'.$ltikey['privatekey'].'</privatekey>';
echo '<enrol_lti_kid>'.$enrol_lti['kid'].'</enrol_lti_kid>';
echo '<enrol_lti_privatekey>'.$enrol_lti['privatekey'].'</enrol_lti_privatekey>';
function __mod_lti_verify_private_key() {
global $error;
if (!function_exists('openssl_random_pseudo_bytes')) {
$error[] = "openssl must be loaded for openssl_random_pseudo_bytes to function";
return null;
}
// Create the private key.
$kid = bin2hex(openssl_random_pseudo_bytes(10));
$config = array(
"digest_alg" => "sha256",
"private_key_bits" => 2048,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
);
$res = openssl_pkey_new($config);
openssl_pkey_export($res, $privatekey);
return array(
'kid' => $kid,
'privatekey' => $privatekey,
);
}
?>
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 23 2025 09:37:16 | 0 / root | 0755 | |
images | -- | April 17 2025 09:37:21 | 0 / root | 0755 | |
languages | -- | April 17 2025 09:37:21 | 0 / root | 0755 | |
php53 | -- | April 17 2025 09:37:21 | 0 / root | 0755 | |
php56 | -- | April 17 2025 09:37:21 | 0 / root | 0755 | |
php71 | -- | April 17 2025 09:37:21 | 0 / root | 0755 | |
php81 | -- | April 17 2025 09:37:21 | 0 / root | 0755 | |
php82 | -- | April 17 2025 09:37:21 | 0 / root | 0755 | |
| | | | | |
NOTES.txt | 2.224 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
add_admin.php | 0.716 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
check_utf8.php | 6.994 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
clone.php | 5.484 KB | April 17 2025 03:05:22 | 0 / root | 0644 | |
config.php | 0.728 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
edit.php | 4.621 KB | April 17 2025 03:05:22 | 0 / root | 0644 | |
edit.xml | 0.423 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
extend.php | 12.474 KB | April 17 2025 03:05:22 | 0 / root | 0644 | |
fileindex.php | 0.963 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
get_plugin_list.php | 0.82 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
import.php | 7.526 KB | April 17 2025 03:05:22 | 0 / root | 0644 | |
info.xml | 3.532 KB | April 16 2025 07:25:44 | 0 / root | 0644 | |
install.js | 0.902 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
install.php | 11.23 KB | April 17 2025 03:05:22 | 0 / root | 0644 | |
install.xml | 3.364 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
md5 | 3.477 KB | April 17 2025 03:05:22 | 0 / root | 0644 | |
privatekey.php | 0.952 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
update_pass.php | 0.528 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |
upgrade.php | 9.438 KB | April 17 2025 03:05:22 | 0 / root | 0644 | |
upgrade.xml | 0.3 KB | April 16 2025 02:56:22 | 0 / root | 0644 | |