$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/www/wp-content/plugins/hellopack-client/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/www/wp-content/plugins/hellopack-client/modules/divi-tools.php
<?php
/**
 * Divi Tools (Divi Toolbox) module.
 *
 * Redirects DiviLover WC-AM license API calls to GLS3.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * Divi Tools (Divi Toolbox) license module.
 */
class Divi_Tools extends AbstractModule {

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'divi-tools';
		$this->name        = 'Divi Tools (Divi Toolbox)';
		$this->description = 'Manages Divi Toolbox license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'divi-toolbox',
			'plugin_file' => 'divi-toolbox.php',
		);
		$this->target_id   = '1845755066';

		$this->blocked_domains = array(
			'divilover.com/?wc-api=wc-am-api'       => self::wc_am_block(),
			'divilover.com/?wc-api=am-software-api' => self::wc_am_block(),
		);
	}

	/**
	 * Initialize module — redirect API calls, set license data.
	 */
	public function init(): void {
		ApiRedirector::create( 'https://divilover.com', HELLOPACK_GLS3_URL . '/divi-tools' );

		$this->set_license_data();

		add_action( 'admin_menu', array( $this, 'remove_license_menu' ), 999 );
	}

	/**
	 * Set WooCommerce API Manager license options.
	 */
	private function set_license_data(): void {
		$options = array(
			'wc_am_client_6865_deactivate_checkbox' => 'off',
			'wc_am_client_6865_activated'           => 'Activated',
		);

		foreach ( $options as $key => $value ) {
			if ( get_option( $key ) !== $value ) {
				update_option( $key, $value );
			}
		}

		$api_key = get_option( 'wc_am_client_6865' );

		if ( ! is_array( $api_key )
			|| ! isset( $api_key['wc_am_client_6865_api_key'] )
			|| 'hellopack-managed' !== $api_key['wc_am_client_6865_api_key']
		) {
			update_option(
				'wc_am_client_6865',
				array(
					'wc_am_client_6865_api_key' => 'hellopack-managed',
				)
			);
		}
	}

	/**
	 * Remove Divi Toolbox license submenu page.
	 */
	public function remove_license_menu(): void {
		remove_submenu_page( 'options-general.php', 'wc_am_client_6865_dashboard' );
	}

	/**
	 * Cleanup on disable — remove license data.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'wc_am_client_6865_deactivate_checkbox' );
		hellopack_delete_option( 'wc_am_client_6865_activated' );
		hellopack_delete_option( 'wc_am_client_6865' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit