$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/yith-infinite-scrolling-premium.php
<?php
/**
 * YITH Infinite Scrolling Premium module.
 *
 * Intercepts licence.yithemes.com API requests locally.
 * No GLS3 handler needed — simple fake YITH license responses.
 *
 * YITH custom license system.
 * API domain: licence.yithemes.com (fallback: casper.yithemes.com)
 * Product ID: yith-infinite-scrolling
 * Secret key: eoTgIND9moLoW4mkCtdF
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

use HelloPack\Client\Module\AbstractModule;

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

/**
 * YITH Infinite Scrolling Premium license module.
 */
class Yith_Infinite_Scrolling_Premium extends AbstractModule {

	/**
	 * YITH product slug used as key in shared option.
	 *
	 * @var string
	 */
	private const PRODUCT_SLUG = 'yith-infinite-scrolling';

	/**
	 * YITH secret key defined in the plugin's init.php.
	 *
	 * @var string
	 */
	private const SECRET_KEY = 'eoTgIND9moLoW4mkCtdF';

	/**
	 * Placeholder license key (UUID format).
	 *
	 * @var string
	 */
	private const LICENSE_KEY = 'e2f1c3de-5a2b-4e7e-ae2d-98acd1304f17';

	/**
	 * Shared option name for all YITH plugin licenses.
	 *
	 * @var string
	 */
	private const LICENSE_OPTION = 'yit_plugin_licence_activation';

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'yith-infinite-scrolling-premium';
		$this->name        = 'YITH Infinite Scrolling Premium';
		$this->description = 'Manages YITH Infinite Scrolling Premium license locally.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'yith-infinite-scrolling-premium',
			'plugin_file' => 'init.php',
		);
		$this->target_id   = '1982134376';

		// Intercept YITH license API (primary domain).
		hellopack_license_start(
			array(
				'domain'          => 'licence.yithemes.com',
				'check_action'    => false,
				'response_type'   => 'custom',
				'custom_response' => array( $this, 'mock_yith_api' ),
			)
		);

		// Intercept YITH license API (fallback domain).
		hellopack_license_start(
			array(
				'domain'          => 'casper.yithemes.com',
				'check_action'    => false,
				'response_type'   => 'custom',
				'custom_response' => array( $this, 'mock_yith_api' ),
			)
		);
	}

	/**
	 * Mock YITH license API response.
	 *
	 * Only intercepts requests for this specific product.
	 * Other YITH plugin requests pass through.
	 *
	 * @param array<string, mixed> $context Request context from Interceptor.
	 * @return array<string, mixed>|false Response data or false to pass through.
	 */
	public function mock_yith_api( array $context ) {
		if ( ! $this->is_our_request( $context ) ) {
			return false;
		}

		return array(
			'code'                 => '100',
			'message'              => 'Activated',
			'activated'            => true,
			'licence_expires'      => gmdate( 'Y-m-d', strtotime( '+10 years' ) ),
			'licence_next_check'   => strtotime( '+10 years' ),
			'activation_limit'     => 1,
			'activation_remaining' => 0,
			'is_membership'        => false,
			'marketplace'          => 'yith',
			'status_code'          => '200',
		);
	}

	/**
	 * Check if the request is for this specific YITH product.
	 *
	 * Checks both URL query params (GET check requests) and
	 * POST body for the product_id field.
	 *
	 * @param array<string, mixed> $context Request context from Interceptor.
	 * @return bool
	 */
	private function is_our_request( array $context ): bool {
		$url = $context['url'];

		// Check URL query (GET requests like /api/check).
		if ( strpos( $url, self::PRODUCT_SLUG ) !== false ) {
			return true;
		}

		// Check POST body (activation/deactivation requests).
		$args = $context['args'];

		if ( ! empty( $args['body'] ) && is_array( $args['body'] ) ) {
			$product_id = $args['body']['product_id'] ?? '';

			if ( self::PRODUCT_SLUG === $product_id ) {
				return true;
			}
		}

		return false;
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		$this->activate_license();
	}

	/**
	 * Activate YITH Infinite Scrolling Premium license.
	 *
	 * Sets license data in the shared yit_plugin_licence_activation option.
	 * Only touches the key for this specific product.
	 */
	private function activate_license(): void {
		$option = get_option( self::LICENSE_OPTION );

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

		$existing = $option[ self::PRODUCT_SLUG ] ?? array();

		if (
			is_array( $existing ) &&
			true === ( $existing['activated'] ?? false ) &&
			self::LICENSE_KEY === ( $existing['licence_key'] ?? '' )
		) {
			return;
		}

		$option[ self::PRODUCT_SLUG ] = array(
			'email'                => 'license@hellowp.io',
			'licence_key'          => self::LICENSE_KEY,
			'licence_expires'      => strtotime( '+10 years' ),
			'message'              => '0 out of 1 activations remaining',
			'activated'            => true,
			'activation_limit'     => 1,
			'activation_remaining' => 0,
			'is_membership'        => false,
			'marketplace'          => 'yith',
			'status_code'          => '200',
			'licence_next_check'   => strtotime( '+10 years' ),
		);

		update_option( self::LICENSE_OPTION, $option );
	}

	/**
	 * Cleanup on disable.
	 *
	 * Removes only this product's entry from the shared option.
	 */
	public function cleanup(): void {
		$option = get_option( self::LICENSE_OPTION );

		if ( ! is_array( $option ) || ! isset( $option[ self::PRODUCT_SLUG ] ) ) {
			return;
		}

		unset( $option[ self::PRODUCT_SLUG ] );
		update_option( self::LICENSE_OPTION, $option );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit