X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=ctracker.php;h=62adbd1a9b8c6b259c6d2cbaad223723019744cf;hb=4af9685927ddb0ebab833f1e0667bc91caa8519b;hp=acb5bc57c348b5d9a6d6fd97656f959446569a2b;hpb=feee76fac45134d75340668005fb2c252e24856d;p=ctracker.git diff --git a/ctracker.php b/ctracker.php index acb5bc5..62adbd1 100644 --- a/ctracker.php +++ b/ctracker.php @@ -1,17 +1,20 @@ * @version 3.0.0 - * @copyright Copyright (c) 2009, 2010 Cracker Tracker Team + * @copyright Copyright (c) 2009 - 2011 Cracker Tracker Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * + * This program is based on Cracker Tracker Protection System - Stand-Alone + * which has been written by Christian Knerr and is heavily enhanced in + * detectection, logging and reporting of suspicious traffic. + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or @@ -26,12 +29,15 @@ * along with this program. If not, see . */ +// XDEBUG call +//* DEBUG: */ xdebug_start_trace(); + // Include files -include('config/db_config.php'); -include('libs/lib_general.php'); -include('libs/lib_detector.php'); -include('libs/lib_connect.php'); -include('libs/lib_updates.php'); +require('config/db_config.php'); +require('libs/lib_general.php'); +require('libs/lib_detector.php'); +require('libs/lib_connect.php'); +require('libs/lib_updates.php'); // Init initCrackerTrackerArrays(); @@ -45,13 +51,13 @@ crackerTrackerUpdateDatabaseScheme(); // If it differs to original and the *whole* request string is not in whitelist // then block the attempt if (isCrackerTrackerWormDetected()) { - // Send the email, this must be the last line because it contains a die() + // Send the email, this must be the last line in this if() block because it contains a exit() sendCrackerTrackerMail(); } // END - if // Suspicious POST data detected? if (isCrackerTrackerPostAttackDetected()) { - // Send the email, this must be the last line because it contains a die() + // Send the email, this must be the last line in this if() block because it contains a exit() sendCrackerTrackerPostMail(); } // END - if