$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//tutor-pro.php
<?php
/**
 * Tutor LMS Pro module.
 *
 * Redirects Tutor LMS OAuth/license requests to GLS3.
 * Sets tutor_license_info option and removes native update hooks.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * Tutor LMS Pro license module.
 */
class Tutor_Pro extends AbstractModule {

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

	/**
	 * Tutor updater class name.
	 *
	 * @var string
	 */
	private const UPDATER_CLASS = 'TutorPRO\ThemeumUpdater\Update';

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

		$this->blocked_domains = array(
			'tutorlms.com/wp-json/themeum-products/v1/plugin-update-status' => self::generic_block(),
		);
	}

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

		$this->activate_license();

		add_action( 'init', array( $this, 'remove_tutor_update_hooks' ), 999 );
		add_action( 'admin_init', array( $this, 'remove_tutor_update_hooks' ), 999 );
	}

	/**
	 * Activate Tutor LMS Pro license.
	 */
	private function activate_license(): void {
		$license_data = array(
			'access_token'      => 'hellopack-tutor-access-token',
			'refresh_token'     => 'hellopack-tutor-refresh-token',
			'tokens_expires_at' => gmdate( 'Y-m-d H:i:s', time() + ( 10 * YEAR_IN_SECONDS ) ),
			'activated'         => true,
			'license_key'       => self::LICENSE_KEY,
			'customer_name'     => 'HelloPack License',
			'expires_at'        => gmdate( 'Y-m-d H:i:s', time() + ( 10 * YEAR_IN_SECONDS ) ),
			'activated_at'      => gmdate( 'Y-m-d H:i:s' ),
			'license_type'      => 'Agency',
		);

		hellopack_ensure_option( 'tutor_license_info', $license_data );
		set_transient( 'tutor_license_transient_key', $license_data, DAY_IN_SECONDS );
	}

	/**
	 * Remove Tutor LMS native update hooks.
	 *
	 * Prevents the plugin from contacting its own update servers,
	 * as HelloPack handles updates separately.
	 */
	public function remove_tutor_update_hooks(): void {
		if ( ! class_exists( self::UPDATER_CLASS ) ) {
			return;
		}

		$this->remove_class_hooks( 'plugins_api', self::UPDATER_CLASS );
		$this->remove_class_hooks( 'pre_set_site_transient_update_plugins', self::UPDATER_CLASS );
		$this->remove_class_hooks( 'site_transient_update_plugins', self::UPDATER_CLASS );
		$this->remove_class_hooks( 'upgrader_pre_download', self::UPDATER_CLASS );
		$this->remove_class_hooks( 'current_screen', self::UPDATER_CLASS );

		remove_all_filters( 'in_plugin_update_message-tutor-pro/tutor-pro.php' );

		remove_all_actions( 'wp_ajax_delete_tutor_license' );
		remove_all_actions( 'wp_ajax_update_tutor_license' );
		remove_all_actions( 'wp_ajax_tutor_oauth_check' );
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'tutor_license_info' );
		delete_transient( 'tutor_license_transient_key' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit