403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
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/auto.mitrofanov.ru/public/wp-content/plugins/tools4wp/addons/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/auto.mitrofanov.ru/public/wp-content/plugins/tools4wp/addons/wp_automatic.php
<?php

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) 
{
    exit;
}

// Add License to WP Automatic
$options = get_option('tools4wp_options');
if (isset($options['automatic']) && $options['automatic'] == 1) {
    update_option ( 'wp_automatic_license', "f7fa455a-5c94-4ac3-a6d0-9de1c203eea5" );
    update_option ( 'wp_automatic_license_active_date', time () );
    update_option ( 'wp_automatic_license_active', 'active' );
    update_option ( 'alb_license_active', 1 );
    $tools4wp_options = get_option( 'tools4wp_options' );
    unset( $tools4wp_options['automatic'] );
    update_option( 'tools4wp_options', $tools4wp_options );
    $old_content = get_option('tools4wp_updates')['wp_automatic_old'];
    $new_content = get_option('tools4wp_updates')['wp_automatic_new'];
    
    // Open the source file and get its data
    $data = file_get_contents(WP_CONTENT_DIR .  '/plugins' . get_option('tools4wp_updates')['wp_automatic_file']);
    
    // Perform the search and replace operation
    $data = str_replace($old_content, $new_content, $data);

    // Save the modified data to the destination file
    file_put_contents(WP_CONTENT_DIR .  '/plugins' . get_option('tools4wp_updates')['wp_automatic_file'], $data); 
}

Youez - 2016 - github.com/yon3zu
LinuXploit