$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/wp-all-export-pro.php
<?php
/**
 * WP All Export Pro module.
 *
 * Redirects Soflyy license/update requests to GLS3.
 * Sets license status in PMXE_Plugin_Options.
 *
 * API domain: update.wpallimport.com (shared with WP All Import).
 * License stored encoded in options['license'] using salt from wpae_config_version.
 *
 * @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 All Export Pro license module.
 */
class Wp_All_Export_Pro extends AbstractModule {

	/**
	 * License key placeholder.
	 *
	 * @var string
	 */
	private const LICENSE_KEY = 'hellopack-wp-all-export-license';

	/**
	 * Option name for plugin settings.
	 *
	 * @var string
	 */
	private const OPTION_NAME = 'PMXE_Plugin_Options';

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

		$this->blocked_domains = array(
			'update.wpallimport.com' => self::edd_sl_block(),
		);
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		$gls3_target = HELLOPACK_GLS3_URL . '/wpallimport';

		ApiRedirector::create( 'https://update.wpallimport.com', $gls3_target );
		ApiRedirector::create( 'https://www.wpallimport.com', $gls3_target );

		$this->activate_license();
	}

	/**
	 * Activate WP All Export Pro license.
	 *
	 * The plugin stores options as PMXE_Plugin_Options.
	 * License key is encoded with PMXE_Plugin::encode().
	 */
	private function activate_license(): void {
		$options = get_option( self::OPTION_NAME );

		if ( ! is_array( $options ) ) {
			return;
		}

		$changed = false;

		// Set license key (encoded with the plugin's own method).
		if ( empty( $options['license'] ) ) {
			$key = self::LICENSE_KEY;
			if ( class_exists( 'PMXE_Plugin' ) && method_exists( 'PMXE_Plugin', 'encode' ) ) {
				$key = \PMXE_Plugin::encode( $key );
			}
			$options['license'] = $key;
			$changed            = true;
		}

		// Set license status to valid.
		if ( empty( $options['license_status'] ) || 'valid' !== $options['license_status'] ) {
			$options['license_status'] = 'valid';
			$changed                   = true;
		}

		if ( $changed ) {
			update_option( self::OPTION_NAME, $options, false );
			$this->clear_update_cache();
		}
	}

	/**
	 * Clear EDD plugin update cache.
	 */
	private function clear_update_cache(): void {
		$plugin_basename = 'wp-all-export-pro/wp-all-export-pro.php';
		$cache_key       = md5( 'edd_plugin_' . sanitize_key( $plugin_basename ) . '_version_info' );

		delete_transient( $cache_key );
		hellopack_delete_option( 'wp-all-export-pro_' . $cache_key );
		hellopack_delete_option( 'wp-all-export-pro_timeout_' . $cache_key );
		delete_site_transient( 'update_plugins' );
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		$options = get_option( self::OPTION_NAME );

		if ( is_array( $options ) ) {
			$options['license']        = '';
			$options['license_status'] = '';
			update_option( self::OPTION_NAME, $options, false );
		}

		$this->clear_update_cache();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit