$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//oxygen.php
<?php
/**
 * Oxygen Builder module.
 *
 * Redirects Oxygen EDD license requests to GLS3.
 * Sets license options for Oxygen and its two add-ons
 * (Gutenberg Integration, WooCommerce Integration).
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * Oxygen Builder license module.
 */
class Oxygen extends AbstractModule {

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

	/**
	 * All Oxygen-family license prefixes and their target info.
	 *
	 * @var array<string, array{plugin_dir: string, plugin_file: string}>
	 */
	private const ADDON_PREFIXES = array(
		'oxygen_gutenberg_'   => array(
			'plugin_dir'  => 'oxygen-gutenberg',
			'plugin_file' => 'oxygen-gutenberg.php',
		),
		'oxygen_woocommerce_' => array(
			'plugin_dir'  => 'oxygen-woocommerce',
			'plugin_file' => 'plugin.php',
		),
	);

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'oxygen';
		$this->name        = 'Oxygen Builder';
		$this->description = 'Manages Oxygen Builder and add-on licenses via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'oxygen',
			'plugin_file' => 'functions.php',
		);
		$this->target_id   = '1760384556';

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

	/**
	 * Initialize module.
	 */
	public function init(): void {
		// Redirect oxygenbuilder.com (all Oxygen plugins) to GLS3.
		ApiRedirector::create(
			'https://oxygenbuilder.com',
			HELLOPACK_GLS3_URL . '/oxygen'
		);

		// Also intercept http:// variant (Gutenberg/WooCommerce use http).
		ApiRedirector::create(
			'http://oxygenbuilder.com',
			HELLOPACK_GLS3_URL . '/oxygen'
		);

		$this->activate_license( 'oxygen_', 'Oxygen' );

		// Activate add-on licenses if plugins are installed.
		foreach ( self::ADDON_PREFIXES as $prefix => $target ) {
			$plugin_path = WP_PLUGIN_DIR . '/' . $target['plugin_dir'] . '/' . $target['plugin_file'];
			if ( file_exists( $plugin_path ) ) {
				$this->activate_license( $prefix, '' );
			}
		}

		$this->remove_oxygen_update_hooks();
	}

	/**
	 * Remove Oxygen's native update hooks so HelloPack handles all updates.
	 *
	 * Oxygen registers an anonymous function on update_plugins_oxygenbuilder.com,
	 * so remove_class_hooks cannot be used — remove_all_filters is needed instead.
	 */
	private function remove_oxygen_update_hooks(): void {
		remove_all_filters( 'update_plugins_oxygenbuilder.com' );
	}

	/**
	 * Activate a single Oxygen license by prefix.
	 *
	 * @param string $prefix License option prefix (e.g. 'oxygen_').
	 * @param string $name   Plugin name for site_hash generation.
	 */
	private function activate_license( string $prefix, string $name ): void {
		hellopack_ensure_option( $prefix . 'license_key', self::LICENSE_KEY );
		hellopack_ensure_option( $prefix . 'license_status', 'valid' );
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		// Clean main Oxygen license.
		$this->deactivate_license( 'oxygen_' );

		// Clean add-on licenses.
		foreach ( self::ADDON_PREFIXES as $prefix => $target ) {
			$this->deactivate_license( $prefix );
		}
	}

	/**
	 * Deactivate a single Oxygen license by prefix.
	 *
	 * @param string $prefix License option prefix.
	 */
	private function deactivate_license( string $prefix ): void {
		hellopack_delete_option( $prefix . 'license_key' );
		hellopack_delete_option( $prefix . 'license_status' );
		hellopack_delete_option( $prefix . 'license_site_hash' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit