📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: ClearSensitiveData.php
<?php namespace App\Traits; trait ClearSensitiveData { /** * @param string $message * * @return string|string[]|null */ private function clearSensitiveData(string $message): array|string|null { $patterns = [ '/(-----BEGIN RSA PRIVATE KEY-----)(.+)(-----END RSA PRIVATE KEY-----)/s', '/(-----BEGIN CERTIFICATE-----)(.+)(-----END CERTIFICATE-----)/s', '/(Key Modulus:\s*)[a-fA-F0-9\s]{520}/i', '/(Certificate Modulus:\s*)[a-fA-F0-9\s]{520}/i', ]; $replacements = [ '${1}key${3}', '${1}certificate${3}', '${1}replaced key modulus', '${1}replaced certificate modulus', ]; return preg_replace($patterns, $replacements, $message); } private function clearWhmSessionSecrets(string $payload): string { $patterns = [ '/("cp_security_token"\s*:\s*)"[^"]*"/', '/("session"\s*:\s*)"[^"]*"/', '#/cpsess\d+#', ]; $replacements = [ '${1}"***"', '${1}"***"', '/cpsess***', ]; return (string) preg_replace($patterns, $replacements, $payload); } private function describeToken(?string $token): array { return [ 'whm_token_present' => $token !== null && $token !== '', ]; } }
Save