// Compiler/interpreter
'bin/g++ ', 'bin/c++ ', 'cc ', 'bin/python', 'bin/python', 'bin/tclsh',
- 'bin/tclsh', 'bin/nasm', '/perl', 'cmd.exe',
- 'nc.exe', 'ftp.exe',
+ 'bin/tclsh', 'bin/nasm', '/perl',
+
+ // Windows-related
+ 'cmd.exe', 'nc.exe', 'ftp.exe', 'powershell', 'system.net.webclient',
// php.ini settings
'allow_url_fopen', 'allow_url_include', 'auto_prepend_file', 'disable_functions', 'safe_mode',
// PHP commands/scripts
'fopen', 'fwrite', 'phpinfo()', '\<?', '?\>', 'base64_decode', 'file_put_contents',
'set_magic_quotes_runtime', 'set_magic_quotes_runtime', 'display_errors', 'passthru',
+ 'call_user_func',
// Typical PHP script remote-inclusions and typical include file names
'.inc.php', '.lib.php', '.class.php', 'config.php', '.inc', '_php',
// MySQL internal functions
'name_const',
+ // Server configuration (e.g. Apache)
+ 'application/x-httpd-php', 'addtype', 'server-info', 'server-status',
+
+ // Annoying script name
+ 'vuln.php',
+
// @TODO Misc/unsorted
'cgi-', '.eml', '$_request', '$_get', '$request', '$get', '.system',
'&aim', 'new_password', '&icq', '.conf', 'motd ', 'HTTP/1.',
'window.open', 'img src', 'img src', '.jsp', 'servlet', 'org.apache',
- 'wwwacl', 'server-info', 'server-status', '/servlet/con', 'http_',
- 'secure_site, ok', 'chunked', '<script', 'mod_gzip_status', '.system',
- 'uol.com', ',0x', '(0x', 'INSERT_RANDOM_NUMBER_HERE',
+ 'wwwacl', '/servlet/con', 'http_', 'secure_site, ok', 'chunked',
+ '<script', 'mod_gzip_status', '.system', 'uol.com', ',0x', '(0x',
+ 'INSERT_RANDOM_NUMBER_HERE', '=passthru',
];
// BLock these words found in User-Agent
$GLOBALS['ctracker_ua_blacklist'] = [
+ // Compiler/interpreter
+ 'bin/g++ ', 'bin/c++ ', 'cc ', 'bin/python', 'bin/python', 'bin/tclsh',
+ 'bin/tclsh', 'bin/nasm', '/perl', 'wget ', 'system(', 'curl ',
+
+ // Windows-related
+ 'cmd.exe', 'nc.exe', 'ftp.exe', 'powershell', 'system.net.webclient',
+
+ // php.ini settings
+ 'allow_url_fopen', 'allow_url_include', 'auto_prepend_file', 'disable_functions', 'safe_mode',
+
+ // PHP commands/scripts
+ 'fopen', 'fwrite', 'phpinfo()', '\<?', '?\>', 'base64_decode', 'file_put_contents',
+ 'set_magic_quotes_runtime', 'set_magic_quotes_runtime', 'display_errors', 'passthru',
+
+ // Typical PHP script remote-inclusions and typical include file names
+ '.inc.php', '.lib.php', '.class.php', 'config.php', '.inc', '_php',
+ 'php_', 'class_', '_class.php', 'db_mysql.inc',
+
+ // PHP arrays
+ '_phplib', '__callbackparam',
+
+ // Request header being inserted
+ 'content-type',
+
+ // /proc/ and other forbidden paths
+ 'proc/self/environ',
+ ];
+
+ // BLock these words found in User-Agent
+ $GLOBALS['ctracker_ua_blacklist'] = array(
// Compiler/interpreter
'bin/g++ ', 'bin/c++ ', 'cc ', 'bin/python', 'bin/python', 'bin/tclsh',
'bin/tclsh', 'bin/nasm', '/perl', 'cmd.exe',
'fopen', 'fwrite', 'phpinfo()', '\<?', '?\>', 'base64_decode', 'file_put_contents',
'set_magic_quotes_runtime', 'set_magic_quotes_runtime', 'display_errors', 'passthru',
+ // Server configuration (e.g. Apache)
+ 'application/x-httpd-php',
+
// Typical PHP script remote-inclusions and typical include file names
'.inc.php', '.lib.php', '.class.php', 'config.php', '.inc', '_php',
'php_', 'class_', '_class.php', 'db_mysql.inc',
// /proc/ and other forbidden paths
'proc/self/environ',
- ];
+ );
// Block these words found in POST requests
$GLOBALS['ctracker_post_blacklist'] = [
// This line is for detecting hidden link spam in wikis, forums, guestbooks, etc.
' style=', 'overflow:auto', 'height:1px', 'width:1px', 'display:hidden', 'style.display',
- // "Common" login names from VHCS exploiters ;-)
+ // Windows-related
+ 'cmd.exe', 'nc.exe', 'ftp.exe', 'powershell', 'system.net.webclient',
+
+ // Server configuration (e.g. Apache)
+ 'application/x-httpd-php',
+
+ // Annoying script name
+ 'vuln.php',
+
+ // "Common" login names from VHCS exploiters
'starhack', 'DeLiMehmet', 'hisset', 'Hisset', 'delimert', 'MecTruy'
];
Filtered string : ' . $GLOBALS['ctracker_checked_get'] . '
Server : ' . crackerTrackerServerName() . '
Script : ' . crackerTrackerScriptName() . '
+Method : ' . crackerTrackerRequestMethod() . '
Referrer : ' . crackerTrackerReferer() . '
-----------------------------------------------------
';
function crackerTrackerSendMail ($mail, $recipient = NULL, $subject = NULL) {
// Construct dummy array
$rowData = [
- 'remote_addr' => determineCrackerTrackerRealRemoteAddress(),
- 'proxy_addr' => getenv('REMOTE_ADDR'),
- 'check_get' => $GLOBALS['ctracker_checked_get'],
- 'server_name' => crackerTrackerServerName()
+ 'remote_addr' => determineCrackerTrackerRealRemoteAddress(),
+ 'proxy_addr' => getenv('REMOTE_ADDR'),
+ 'check_get' => $GLOBALS['ctracker_checked_get'],
+ 'server_name' => crackerTrackerServerName(),
+ 'request_method' => crackerTrackerRequestMethod(),
];
// Only send email if not yet found
Filtered string : ' . $GLOBALS['ctracker_checked_get'] . '
Server : ' . crackerTrackerServerName() . '
Script : ' . crackerTrackerScriptName() . '
+Method : ' . crackerTrackerRequestMethod() . '
Referrer : ' . crackerTrackerReferer() . '
-----------------------------------------------------
POST string : ' . $GLOBALS['ctracker_post_track'] . '