-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_master.php
57 lines (48 loc) · 2.34 KB
/
config_master.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
// start of config version v1.01
// $email - email address to send results
// $domain - domain/account being scanned
//
// $host, $database, $user, $password
// Set up a mysql database and record its details in this section
// For ramblers webs accounts set $host to "localhost";
// set the $database and $user to the name of the database
//
// $path - top level to search, hashscan will monitor this folder and all subfolders
// except for those folders specified in the $skipFolders field
//
// $skipFolders - skip the following folders, these should be defined relative to the $path value
//
// NOTE: end all subfolders with a / otherwise folders with similar names will also be excluded
// If you are using a CMS then you should consider which folders to exclude
//
// If you are using Joomla then specify the following item
// $joomlaFolders - specify the folders that contain Joomla.
// This will add the subfolders tmp,log,cache and administrator/cache to the $skipFolders item
//
// $processExtensions - specify the file extensions that you wish to be checked, supply them in lower case.
// extensions are not treated as case sensitive so jpg will scan for both JPG and jpg files
// for Ramblers-webs it is recommended to monitor the following file types
// "txt", "php", "jpg", "htm", "html", "cgi", "pdf", "ini", "htaccess"
//
// $emailinterval - If no changes are found then hashscan will send an email if this time period has elapsed.
// This is so you get a regular email and know that the scheduled task is still running
// Interval between emails if no changes P10D - ten days
// For Ramblers-webs sites it is recommended to use a value of P30D - thirty days
$email = "chris@cevsystems.co.uk";
$domain = "ramblers-webs.org.uk";
$host = ini_get("mysqli.default_host");
$database = "monitorv01";
$user = "admin";
$password = "admin";
$path = " " . $domain;
$path = "D:/Data/UniServerZ/www/";
$skipFolders = [""]; // scan all folders
$skipFolders = ["monitor/Detect Hacked Files via CRON_PHP_files/", "Joomla3/"];
$skipFolders= NULL;
$joomlaFolders=NULL;
$joomlaFolders= ["Joom*"];
$processExtensions = NULL; // process all file types
$processExtensions = ["txt", "php", "jpg", "htm", "html", "cgi", "pdf", "ini", "htaccess"];
$emailinterval = "P2D";
// end of config