$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/includes/Module/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/www/wp-content/plugins/hellopack-client/includes/Module/EarlyLoader.php
<?php
/**
 * Early module loader for pre-init license blocking.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Client\Module;

use HelloPack\Client\Options;

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

/**
 * Loads early module files and blocks HTTP requests before plugins_loaded.
 *
 * Some plugins (Elementor Pro, Dynamic Content) check licenses on plugins_loaded,
 * before the normal module loader runs at init priority 5. This class hooks
 * into pre_http_request early to block those requests.
 */
class EarlyLoader {

	/**
	 * Directory for early module files.
	 *
	 * @var string
	 */
	private string $early_dir;

	/**
	 * Constructor — loads early modules and hooks the blocker immediately.
	 */
	public function __construct() {
		$this->early_dir = HELLOPACK_CLIENT_PATH . 'modules/early/';

		if ( ! is_dir( $this->early_dir ) ) {
			return;
		}

		$this->load_early_modules();

		add_filter( 'pre_http_request', array( $this, 'block_early_requests' ), 5, 3 );
	}

	/**
	 * Load all early module files.
	 */
	private function load_early_modules(): void {
		$files = glob( $this->early_dir . '*.php' );

		if ( empty( $files ) ) {
			return;
		}

		$settings = Options::get_module_settings();

		foreach ( $files as $file ) {
			$module_id = basename( $file, '.php' );

			if ( isset( $settings[ $module_id ]['enabled'] ) && ! $settings[ $module_id ]['enabled'] ) {
				continue;
			}

			require_once $file;
		}
	}

	/**
	 * Block HTTP requests matching registered early domains.
	 *
	 * @param false|array<string, mixed>|\WP_Error $preempt Pre-empted response.
	 * @param array<string, mixed>                 $args    Request args.
	 * @param string                               $url     Request URL.
	 * @return false|array<string, mixed>|\WP_Error
	 */
	public function block_early_requests( $preempt, array $args, string $url ) {
		/**
		 * Filters the list of domains to block early.
		 *
		 * @param array<string, array<string, mixed>> $domains Blocked domains config.
		 */
		$domains = apply_filters( 'hellopack_blocked_license_domains', array() );

		foreach ( $domains as $domain => $config ) {
			if ( strpos( $url, $domain ) !== false ) {
				$response = $config['response'] ?? array( 'success' => true );

				return array(
					'headers'       => array( 'content-type' => 'application/json; charset=UTF-8' ),
					'body'          => wp_json_encode( $response ),
					'response'      => array(
						'code'    => 200,
						'message' => 'OK',
					),
					'cookies'       => array(),
					'http_response' => null,
				);
			}
		}

		return $preempt;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit