$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//wp-media-cleanup.php
<?php
/**
 * WP Media Cleanup module.
 *
 * Redirects duplicator.com license requests to GLS3.
 *
 * EDD-based license system.
 * API domain: duplicator.com
 *
 * @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 Media Cleanup license module.
 */
class Wp_Media_Cleanup extends AbstractModule {

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

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'wp-media-cleanup';
		$this->name        = 'WP Media Cleanup';
		$this->description = 'Manages WP Media Cleanup license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.1.0';
		$this->target      = array(
			'plugin_dir'  => 'wp-media-cleanup',
			'plugin_file' => 'wp-media-cleanup.php',
		);
		$this->target_id   = '4168659177';
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		ApiRedirector::create(
			'https://duplicator.com',
			HELLOPACK_GLS3_URL . '/wp-media-cleanup'
		);

		ApiRedirector::create(
			'https://www.duplicator.com',
			HELLOPACK_GLS3_URL . '/wp-media-cleanup'
		);

		$this->setup_license();
	}

	/**
	 * Set up license data.
	 *
	 * The stored licence details come from the licence service rather than
	 * from this file: the request below goes to duplicator.com and the
	 * redirector above sends it to GLS3, which answers it.
	 */
	private function setup_license(): void {
		hellopack_ensure_option( 'wp_media_cleanup_license_key', self::LICENSE_KEY );
		hellopack_ensure_option( 'wp_media_cleanup_license_status', 'valid' );

		if ( ! empty( get_option( 'wp_media_cleanup_license_data' ) ) ) {
			return;
		}

		$response = wp_remote_get(
			add_query_arg(
				array(
					'edd_action' => 'check_license',
					'license'    => self::LICENSE_KEY,
					'url'        => home_url(),
				),
				'https://duplicator.com/'
			),
			array( 'timeout' => 15 )
		);

		if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
			return;
		}

		$data = json_decode( wp_remote_retrieve_body( $response ), true );

		if ( is_array( $data ) && ! empty( $data ) ) {
			update_option( 'wp_media_cleanup_license_data', $data );
		}
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'wp_media_cleanup_license_key' );
		hellopack_delete_option( 'wp_media_cleanup_license_status' );
		hellopack_delete_option( 'wp_media_cleanup_license_data' );
		hellopack_delete_option( 'wp_media_cleanup_license_last_check' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit