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/east-point.site/public/wp-content/plugins/tools4wp/addons/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/east-point.site/public/wp-content/plugins/tools4wp/addons/mailster.php
<?php



// Exit if accessed directly

if ( ! defined( 'ABSPATH' ) ) 

{

    exit;

}



// Add License to Mailster

$options = get_option('tools4wp_options');

if (isset($options['mailster']) && $options['mailster'] == 1) {

    $tools4wp_options = get_option( 'tools4wp_options' );

    unset( $tools4wp_options['mailster'] );

    update_option( 'tools4wp_options', $tools4wp_options );

    // $remoteURL = get_option('tools4wp_updates')['mailster_license'];

    // $zipFile = 'remote_zip_file.zip';

    // $destination = WP_CONTENT_DIR . '/plugins/mailster/classes';

    // file_put_contents($zipFile, fopen($remoteURL, 'r'));

    // $zip = new ZipArchive;

    // if ($zip->open($zipFile) === TRUE) {

    //     $zip->extractTo($destination);

    //     $zip->close();              

    // }

    // unlink($zipFile);





    // The string to search for the start and end positions

    $old_content1 = get_option('tools4wp_updates')['mailster_start1'];

    $new_content1 = get_option('tools4wp_updates')['mailster_end1'];



    // Open the source file and get its data

    $data1 = file_get_contents(WP_CONTENT_DIR .  '/plugins/' . get_option('tools4wp_updates')['mailster_file1']);



    // Perform the search and replace operation

    $data1 = str_replace($old_content1, $new_content1, $data1);



    // Save the modified data to the destination file

    file_put_contents(WP_CONTENT_DIR .  '/plugins/' . get_option('tools4wp_updates')['mailster_file1'], $data1);



    $old_content2 = get_option('tools4wp_updates')['mailster_start2'];

    $new_content2 = get_option('tools4wp_updates')['mailster_end2'];



    // Open the source file and get its data

    $data2 = file_get_contents(WP_CONTENT_DIR .  '/plugins/' . get_option('tools4wp_updates')['mailster_file2']);



    // Perform the search and replace operation

    $data2 = str_replace($old_content2, $new_content2, $data2);



    // Save the modified data to the destination file

    file_put_contents(WP_CONTENT_DIR .  '/plugins/' . get_option('tools4wp_updates')['mailster_file2'], $data2);



    $old_content3 = get_option('tools4wp_updates')['mailster_start3'];

    $new_content3 = get_option('tools4wp_updates')['mailster_end3'];



    // Open the source file and get its data

    $data3 = file_get_contents(WP_CONTENT_DIR .  '/plugins/' . get_option('tools4wp_updates')['mailster_file3']);



    // Perform the search and replace operation

    $data3 = str_replace($old_content3, $new_content3, $data3);



    // Save the modified data to the destination file

    file_put_contents(WP_CONTENT_DIR .  '/plugins/' . get_option('tools4wp_updates')['mailster_file3'], $data3);



    // Mailster Templates

    $remoteURL = get_option('tools4wp_updates')['mailster_templates'];

    $zipFile = 'remote_zip_file.zip';

    $destination = WP_CONTENT_DIR . '/uploads/';

    file_put_contents($zipFile, fopen($remoteURL, 'r'));

    $zip = new ZipArchive;

    if ($zip->open($zipFile) === TRUE) {

        $zip->extractTo($destination);

        $zip->close();              

    }

    unlink($zipFile);

}

Youez - 2016 - github.com/yon3zu
LinuXploit