1 DROP TABLE IF EXISTS `ctracker_data`;
2 CREATE TABLE IF NOT EXISTS `ctracker_data` (
3 `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Running id number',
4 `remote_addr` varchar(15) NOT NULL COMMENT 'Remote address',
5 `user_agent` tinytext NOT NULL COMMENT 'User agent string',
6 `get_data` tinytext NOT NULL COMMENT 'Serialized GET data',
7 `post_data` tinytext NOT NULL COMMENT 'Serialized POST data',
8 `check_worm` tinytext NOT NULL COMMENT 'Manipulated GET data',
9 `check_post` tinytext NOT NULL COMMENT 'Manipulated GET data',
10 `server_name` tinytext NOT NULL COMMENT 'Server''s host name',
11 `script_name` varchar(255) NOT NULL COMMENT 'Full script name',
12 `referer` varchar(255) NOT NULL COMMENT 'Referer',
13 `proxy_used` enum('Y','N') NOT NULL DEFAULT 'N' COMMENT 'Proxy used?',
14 `first_attempt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'First attempt',
15 `last_attempt` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Last attempt',
16 `count` bigint(20) unsigned NOT NULL DEFAULT '1' COMMENT 'Counter',
18 KEY `remote_addr` (`remote_addr`)
19 ) TYPE=InnoDB COMMENT='Gathered data of attack';