$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//wp-rollback-pro.php
<?php
/**
 * WP Rollback Pro module.
 *
 * Intercepts PaidCommunities API requests locally.
 * No GLS3 handler needed — simple fake responses.
 *
 * PaidCommunities SDK licensing.
 * API domain: api.paidcommunities.com
 * Product ID: prd_8D2h0Or5xiVa4GAW
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * WP Rollback Pro license module.
 */
class Wp_Rollback_Pro extends AbstractModule {

	/**
	 * PaidCommunities product ID.
	 *
	 * @var string
	 */
	private const PRODUCT_ID = 'prd_8D2h0Or5xiVa4GAW';

	/**
	 * Placeholder license key.
	 *
	 * @var string
	 */
	private const LICENSE_KEY = 'hellopack-wp-rollback-pro-license';

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'wp-rollback-pro';
		$this->name        = 'WP Rollback Pro';
		$this->description = 'Manages WP Rollback Pro license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.1.0';
		$this->target      = array(
			'plugin_dir'  => 'wp-rollback-pro',
			'plugin_file' => 'wp-rollback-pro.php',
		);
		$this->target_id   = '927073909';

		$this->blocked_domains = array(
			'api.paidcommunities.com/wordpress/v1/plugins/update_check' => self::generic_block(),
		);

		// Registered here, not in init(): the plugin checks its licence before
		// the module system runs, so the redirect has to exist by then.
		ApiRedirector::create(
			'https://paidcommunities.com',
			HELLOPACK_GLS3_URL . '/wp-rollback-pro'
		);

		ApiRedirector::create(
			'https://api.paidcommunities.com',
			HELLOPACK_GLS3_URL . '/wp-rollback-pro'
		);
	}

	/**
	 * PaidCommunities UpdateController class name.
	 *
	 * @var string
	 */
	private const UPDATE_CONTROLLER = 'PaidCommunities\\WordPress\\UpdateController';

	/**
	 * Initialize module.
	 */
	public function init(): void {
		$this->activate_license();
		$this->remove_update_hooks();
	}


	/**
	 * Remove WP Rollback Pro's native update hooks so HelloPack handles all updates.
	 *
	 * PaidCommunities SDK registers update_plugins_paidcommunities.com and plugins_api
	 * hooks via UpdateController.
	 */
	private function remove_update_hooks(): void {
		if ( ! class_exists( self::UPDATE_CONTROLLER ) ) {
			return;
		}

		$this->remove_class_hooks( 'update_plugins_paidcommunities.com', self::UPDATE_CONTROLLER );
		$this->remove_class_hooks( 'plugins_api', self::UPDATE_CONTROLLER );
	}

	/**
	 * Activate WP Rollback Pro license.
	 *
	 * Sets PaidCommunities license data in the plugin's option so
	 * the SDK thinks the license is already activated.
	 */
	private function activate_license(): void {
		$option_name = self::PRODUCT_ID . '_license_settings';
		$current     = get_option( $option_name );

		if (
			is_array( $current ) &&
			'active' === ( $current['status'] ?? '' ) &&
			self::LICENSE_KEY === ( $current['licenseKey'] ?? '' )
		) {
			return;
		}

		update_option(
			$option_name,
			array(
				'licenseKey' => self::LICENSE_KEY,
				'secret'     => hash( 'sha256', self::LICENSE_KEY . home_url() ),
				'status'     => 'active',
				'domain'     => home_url(),
				'domainId'   => md5( home_url() . self::LICENSE_KEY ),
				'createdAt'  => gmdate( 'Y-m-d H:i:s' ),
				'lastCheck'  => gmdate( 'Y-m-d H:i:s' ),
			),
			true
		);
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		hellopack_delete_option( self::PRODUCT_ID . '_license_settings' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit