]> git.mxchange.org Git - ctracker.git/blob - ctracker.php
First implemenation
[ctracker.git] / ctracker.php
1 <?php
2 /**
3  *
4  * Cracker Tracker Protection System - Enhanced Edition
5  * Created by: Christian Knerr - www.cback.de
6  * Enhanced by: Roland Haeder - www.ship-simu.org
7  * phpBB Users: Please use our complete phpBB2 Mod!
8  *
9  * @author              Roland Haeder <webmaster@ship-simu.org>
10  * @version             3.0.0
11  * @copyright   Copyright (c) 2009 Cracker Tracker Team
12  * @license             GNU GPL 3.0 or any newer version
13  * @link                http://www.ship-simu.org
14  *
15  * This program is free software: you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation, either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program. If not, see <http://www.gnu.org/licenses/>.
27  */
28
29 // Include files
30 include('config/db_config.php');
31 include('libs/lib_general.php');
32 include('libs/lib_detector.php');
33 include('libs/lib_connect.php');
34
35 // Init
36 initCrackerTrackerArrays();
37
38 // If no email is defined, asume default. This code should be removed
39 if (!defined('__CTRACKER_EMAIL')) {
40         define('__CTRACKER_EMAIL', 'webmaster@mxchange.org');
41 } // END - if
42
43 // If it differs to original and the *whole* request string is not in whitelist
44 // then blog the attempt
45 if (isCrackerTrackerWormDetected()) {
46         // Send the email, this must be the last line because it contains a die()
47         sendCrackerTrackerMail();
48 } // END - if
49
50 // Suspicious POST data detected?
51 if (isCrackerTrackerPostAttackDetected()) {
52         // Send the email, this must be the last line because it contains a die()
53         sendCrackerTrackerPostMail();
54 } // END - if
55
56 // [EOF]
57 ?>