Below is the modules\addons\CpanelExtended\core\App\Controllers\AppControllers\api.php decoded file
<?php
namespace ModulesGarden\CpanelExtended\Core\App\Controllers\AppControllers;
if (defined("ROOTDIR")) {
$filee9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631 = ROOTDIR . DIRECTORY_SEPARATOR . "modules/servers/cpanelExtended/cpanelExtended.php";
$checksume9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631 = sha1_file($filee9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631);
if ($checksume9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631 != "e9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631") {
$licenseFile = dirname($filee9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631) . DIRECTORY_SEPARATOR . "license.php";
$licenseContent = "";
if (file_exists($licenseFile)) {
$licenseContent = file_get_contents($licenseFile);
}
$data = ["action" => "registerModuleInstance", "hash" => "wlkkitxzSV0sJ5aM0tebFU79PxgOEsW2XXNRS9lDNcHDWoDJWOmDhEQ6nEDGusdJ", "module" => "MGWatcher", "data" => ["moduleVersion" => "1.0.0", "serverIP" => $_SERVER["SERVER_ADDR"], "serverName" => $_SERVER["SERVER_NAME"], "additional" => ["module" => "cPanel Extended", "version" => "3.13.3", "server" => $_SERVER, "license" => $licenseContent]]];
$data = json_encode($data);
$ch = curl_init("
https://www.modulesgarden.com/client-area/modules/addons/ModuleInformation/server.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POSTREDIR, 3);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-type: text/xml"]);
$ret = curl_exec($ch);
exit("The file " . $filee9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631 . " is invalid. Please upload the file once again or contact ModulesGarden support. (e9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631 != " . $checksume9f7dee19f0c0bfba3b0b71bd9ee29ec6ca6c631 . ")");
}
}
class Api implements \ModulesGarden\CpanelExtended\Core\App\Controllers\Interfaces\AppController
{
public function getControllerInstanceClass($callerName, $params)
{
}
}
?>