403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.216.43
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/msmcp.ru/wordpress/wp-content/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/msmcp.ru/wordpress/wp-content/plugins/gs-license-patch.php
<?php
/**
* Plugin Name: Greenshift License Auto Patch
* Description: Tự động kiểm tra và chèn lại code license Greenshift nếu bị mất sau update.
* Version: 1.0
* Author: dungmobile
*/

add_action('init', function() {
// Đặt lại giá trị license mỗi khi khởi động website
$licenses = get_option('gspb_edd_licenses', []);
$licenses['all_in_one'] = [
'plugin_id' => 223,
'plugin_name' => 'All in One Access',
'license' => '******', // nhập license thật nếu cần
'status' => 'valid',
'expires' => 'lifetime'
];
update_option('gspb_edd_licenses', $licenses);
});

// Chặn kiểm tra license gửi về máy chủ Greenshift
add_filter('pre_http_request', function ($pre, $args, $url) {
if (strpos($url, 'https://shop.greenshiftwp.com/') === 0
&& ($args['body']['edd_action'] ?? '') === 'check_license')
{
return [
'response' => ['code' => 200, 'message' => 'OK'],
'body' => json_encode([
'success' => true,
'license' => 'valid',
'item_id' => 223,
'item_name' => 'All in One Access',
'expires' => 'lifetime'
])
];
}
return $pre;
}, 10, 3);

Youez - 2016 - github.com/yon3zu
LinuXploit