uawdijnntqw1x1x1
IP : 3.133.122.64
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
var
/
softaculous
/
kirby
/
..
/
layerbb
/
..
/
zikula
/
..
/
typo
/
..
/
moodle41
/
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, ); } ?>
/home/../var/softaculous/kirby/../layerbb/../zikula/../typo/../moodle41/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,
);
}
?>