mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 22:14:19 +01:00
* Experimental MySQL logging; see kippo.cfg.dist and doc/sql/mysql.sql
* Initial root password now set in kippo.cfg git-svn-id: https://kippo.googlecode.com/svn/trunk@116 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
33
doc/sql/mysql.sql
Normal file
33
doc/sql/mysql.sql
Normal file
@@ -0,0 +1,33 @@
|
||||
CREATE TABLE IF NOT EXISTS `auth` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`session` int(11) NOT NULL,
|
||||
`success` tinyint(1) NOT NULL,
|
||||
`username` varchar(100) NOT NULL,
|
||||
`password` varchar(100) NOT NULL,
|
||||
`timestamp` datetime NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `input` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`session` int(11) NOT NULL,
|
||||
`timestamp` datetime NOT NULL,
|
||||
`realm` varchar(50) default NULL,
|
||||
`success` tinyint(1) default NULL,
|
||||
`input` text NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `session` (`session`,`timestamp`,`realm`)
|
||||
) ;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `session` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`starttime` datetime NOT NULL,
|
||||
`endtime` datetime default NULL,
|
||||
`sensor` varchar(50) NOT NULL,
|
||||
`ip` varchar(15) NOT NULL default '',
|
||||
`ttylog` blob,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `starttime` (`starttime`,`sensor`)
|
||||
) ;
|
||||
Reference in New Issue
Block a user