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/rank_math_pro.php
<?php



// Exit if accessed directly

if ( ! defined( 'ABSPATH' ) ) {

    exit;

}



// License for Cwicly

$options = get_option('tools4wp_options');

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



    // $tools4wp_options = get_option( 'tools4wp_options' );

    // unset( $tools4wp_options['rank_math_pro'] );

    // update_option( 'tools4wp_options', $tools4wp_options );

    $url = get_option( 'siteurl' );

    add_filter( 'rank_math/admin/sensitive_data_encryption', '__return_false' );



    update_option( 'rank_math_connect_data', [

         'username'  => 'Tools4WP',

         'email'     => 'tools4wp@gmail.com',

         'api_key'   => 'rtExxTyybrRXpLfmwRHJyKhmsYqWFkpa',

         'plan'      => 'agency',

         'connected' => true,

         'site_url' => $url,

    ] );

    update_option( 'rank_math_registration_skip', 1 );



    add_action( 'init', function() {

         add_filter( 'pre_http_request', function( $pre, $parsed_args, $url ) {

              if ( strpos( $url, 'https://rankmath.com/wp-json/rankmath/v1/' ) !== false ) {

                   $basename = basename( parse_url( $url, PHP_URL_PATH ) );

                   if ( $basename == 'siteSettings' ) {

                        return [

                             'response' => [ 'code' => 200, 'message' => 'ОК' ],

                             'body'     => json_encode( [

                                  'error' => '',

                                  'plan'  => 'agency',

                                  'keywords' => get_option( 'rank_math_keyword_quota', [ 'available' => 75000, 'taken' => 0 ] ),

                                  'analytics' => 'on',

                             ] ),

                         ];

                   } elseif ( $basename == 'keywordsInfo' ) {

                        if ( isset( $parsed_args['body']['count'] ) ) {

                             return [

                                  'response' => [ 'code' => 200, 'message' => 'OK' ],

                                  'body'     => json_encode( [ 'available' => 75000, 'taken' => $parsed_args['body']['count'] ] ),

                             ];

                        }



    }

    return [ 'response' => [ 'code' => 200, 'message' => 'ОК' ] ];

    }

    return $pre;

    }, 10, 3 );

    } ); 

}

Youez - 2016 - github.com/yon3zu
LinuXploit