// Add localized messages here
$GLOBALS['ctracker_localized']['foo_bar'] = 'Some foo-bar string';
-
-// [EOF]
-?>
$GLOBALS['ctracker_localized']['webmaster_add_ticket_subject'] = 'Ausgefülltes Support-Ticket erhalten';
$GLOBALS['ctracker_localized']['add_ticket_name_missing'] = 'Sie haben keinen Namen eingegeben.';
$GLOBALS['ctracker_localized']['add_ticket_email_missing'] = 'Sie haben keine Email-Adresse eingegeben.';
-
-// [EOF]
-?>
$GLOBALS['ctracker_localized']['webmaster_add_ticket_subject'] = 'Filled-out support ticket received';
$GLOBALS['ctracker_localized']['add_ticket_name_missing'] = 'You have entered no name.';
$GLOBALS['ctracker_localized']['add_ticket_email_missing'] = 'You have entered no email address.';
-
-// [EOF]
-?>
// Is there some data?
if (isset($GLOBALS['ctracker_last_suspicious_entry'])) {
// Does the user have a ticket?
- if (ifCrackerTrackerIpHasTicket()) {
+ if (ifCtrackerTrackerAntiSpamFieldGiven()) {
+ // Spam-bot filled out anti-spam field
+ ctrackerTrackerLoadTemplate('bot_captured');
+ } elseif (ifCrackerTrackerIpHasTicket()) {
// Load "Thank you" template
crackerTrackerLoadTemplate('add_ticket_thanks');
} elseif ((isset($_POST['ctracker_add_ticket'])) && (!empty($_POST['name'])) && (!empty($_POST['email']))) {
function crackerTrackerIsConsole () {
return (php_sapi_name() == 'cli');
}
+
+function ctrackerAntiSpamField () {
+ // Get all fields
+ $fields = ctrackerGetAntiSpamFields();
+
+ // Choose random
+ $fieldName = $fields[mt_rand(0, count($fields) - 1)];
+
+ // Return it
+ return $fieldName;
+}
+
+function ctrackerGetAntiSpamFields () {
+ return [
+ 'ctracker_url',
+ 'ctracker_aol',
+ 'ctracker_yahoo',
+ 'ctracker_icq',
+ 'ctracker_jabber',
+ ];
+}
+
+function ifCtrackerTrackerAntiSpamFieldGiven () {
+ // Is request method POST?
+ if (crackerTrackerRequestMethod() != 'POST') {
+ // Cannot be given
+ return FALSE;
+ }
+
+ // Walk through all fields
+ foreach (ctrackerGetAntiSpamFields() as $fieldName) {
+ // Is one found?
+ if (in_array($fieldName, $_POST) && !empty($_POST[$fieldName])) {
+ // Filled out!
+ return TRUE;
+ }
+ }
+}
// Load footer
crackerTrackerLoadTemplate('page_footer');
-
-// [EOF]
-?>
// Load footer
crackerTrackerLoadTemplate('page_footer');
-
-// [EOF]
-?>
--- /dev/null
+<?php
+/**
+ * Template file "Bot captured"
+ *
+ * @author Roland Haeder <webmaster@shipsimu.org>
+ * @version 3.0.0
+ * @copyright Copyright (c) 2009 - 2017 Cracker Tracker Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.shipsimu.org
+ *
+ * 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
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+// Load header
+crackerTrackerLoadTemplate('page_header');
+
+// Load form
+crackerTrackerLoadLocalizedTemplate('bot_captured');
+
+// Load footer
+crackerTrackerLoadTemplate('page_footer');
<?php /* Required for my editor... :-( */ ?>
-<form accept-charset="utf-8" action="<?php print crackerTrackerScriptName() . '?' . crackerTrackerQueryString() . '"'; ?> method="post">
+<form accept-charset="utf-8" action="<?= crackerTrackerScriptName() . '?' . crackerTrackerQueryString() . '"'; ?> method="post">
<div class="ctracker_add_ticket_header">
Bitte füllen Sie ein Support-Ticket aus:
</div>
<div class="ctracker_form_footer">
- Ihre IP-Adresse lautet: <span class="ctracker_data"><?php print determineCrackerTrackerRealRemoteAddress(); ?></span>
+ Ihre IP-Adresse lautet: <span class="ctracker_data"><?= determineCrackerTrackerRealRemoteAddress(); ?></span>
</div>
+<input type="hidden" name="<?= ctrackerAntiSpamField(); ?>" value="" />
</form>
<?php /* Required for my editor... :-( */ ?>
<div>
- Ihr Ticket wurde mit der ID-Nummer <span class="ctracker_data"><?php print getCrackerTrackerTicketId(); ?></span>
+ Ihr Ticket wurde mit der ID-Nummer <span class="ctracker_data"><?= getCrackerTrackerTicketId(); ?></span>
erstellt. Sie können nun fortfahren:
</div>
<div>
- <form accept-charset="utf-8" action="<?php print crackerTrackerScriptName() . '?' . crackerTrackerQueryString() . '"'; ?> method="post">
+ <form accept-charset="utf-8" action="<?= crackerTrackerScriptName() . '?' . crackerTrackerQueryString() . '"'; ?> method="post">
<input type="submit" class="submit" name="ctracker_continue" value="Weiter zur eigentlichen Webseite" />
</form>
</div>
Die auf diesem Server installierte Sicherheitssoftware "Cracker Tracker
Stand-Alone" hat kurz zuvor bösartigen oder eben nur
verdächtigen Traffic ausgehend von Ihrer IP-Adresse
- <span class="ctracker_data"><?php print determineCrackerTrackerRealRemoteAddress(); ?></span>
+ <span class="ctracker_data"><?= determineCrackerTrackerRealRemoteAddress(); ?></span>
erkannt. Bitte installieren oder aktualisieren Sie nun einen freien
Virenscanner Ihrer Wahl lassen Sie einen kompletten Scan Ihres Computers
durchführen. Es ist sehr wahrscheinlich dass die Sicherheit Ihres
--- /dev/null
+<?php /* Required for my editor... :-( */ ?>
+<h3>
+ Spam-Bot erkannt
+</h3>
+
+<div>
+ Ihr Bot hat ein verdecktes Feld ausgefüllt, das dazu gedacht ist,
+ automatisierte Software zu fangen, da dieses Formular dazu missbraucht
+ wurde, um Emails an unschuldige Internetbenutzer zu versenden.
+</div>
+
+<div>
+ Bitte fangen Sie ein echtes Leben an und suchen Sie sich echte Arbeit.
+ Werden Sie erwachsen!
+</div>
<?php /* Required for my editor... :-( */ ?>
-<form accept-charset="utf-8" action="<?php print crackerTrackerScriptName() . '?' . crackerTrackerQueryString() . '"'; ?> method="post">
+<form accept-charset="utf-8" action="<?= crackerTrackerScriptName() . '?' . crackerTrackerQueryString() . '"'; ?> method="post">
<div class="ctracker_form_header">
Please fill-in a support ticket:
</div>
<div class="ctracker_form_footer">
- Your IP is: <span class="ctracker_data"><?php print determineCrackerTrackerRealRemoteAddress(); ?></span>
+ Your IP is: <span class="ctracker_data"><?= determineCrackerTrackerRealRemoteAddress(); ?></span>
</div>
+<input type="hidden" name="<?= ctrackerAntiSpamField(); ?>" value="" />
</form>
<?php /* Required for my editor... :-( */ ?>
<div>
- Your ticket with the id number <span class="ctracker_data"><?php print getCrackerTrackerTicketId(); ?></span>
+ Your ticket with the id number <span class="ctracker_data"><?= getCrackerTrackerTicketId(); ?></span>
was just been created. You may continue now:
</div>
<div>
- <form accept-charset="utf-8" action="<?php print crackerTrackerScriptName() . '?' . crackerTrackerQueryString() . '"'; ?> method="post">
+ <form accept-charset="utf-8" action="<?= crackerTrackerScriptName() . '?' . crackerTrackerQueryString() . '"'; ?> method="post">
<input type="submit" class="submit" name="ctracker_continue" value="Continue to the origin website" />
</form>
</div>
The security software "Cracker Tracker Stand-Alone" installed on
this server has recently detected some malicious or even suspicious traffic
originating from your IP address <span class="ctracker_data">
- <?php print determineCrackerTrackerRealRemoteAddress(); ?></span>. Please now
+ <?= determineCrackerTrackerRealRemoteAddress(); ?></span>. Please now
install or update a free virus scanner (of your choice) and run a full scan
on your computer. There is a high possibility that your computer's
security is compromised and a trojan horse or virus has infected your
--- /dev/null
+<?php /* Required for my editor... :-( */ ?>
+<h3>
+ Spam-bot detected
+</h3>
+
+<div>
+ Your bot has filled a hidden field that is intended to capture automated
+ software as this form has been abused for sending out emails to innocent
+ Internet users.
+</div>
+
+<div>
+ Please get yourself a real life and find a real job. Grow up!
+</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $GLOBALS['ctracker_language']; ?>" lang="<?php print $GLOBALS['ctracker_language']; ?>">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $GLOBALS['ctracker_language']; ?>" lang="<?= $GLOBALS['ctracker_language']; ?>">
<head>
<title>
Cracker Tracker Stand-Alone - Extended Edition: <?php crackerTrackerOutputLocalized('ctracker_page_header'); ?>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
- <meta http-equiv="language" content="<?php print $GLOBALS['ctracker_language']; ?>" />
+ <meta http-equiv="language" content="<?= $GLOBALS['ctracker_language']; ?>" />
</head>
<body>