mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 22:14:19 +01:00
SSH client version is now handled by db logging
git-svn-id: https://kippo.googlecode.com/svn/trunk@157 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
CREATE TABLE IF NOT EXISTS `auth` (
|
||||
CREATE TABLE `auth` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`session` int(11) NOT NULL,
|
||||
`success` tinyint(1) NOT NULL,
|
||||
@@ -8,7 +8,13 @@ CREATE TABLE IF NOT EXISTS `auth` (
|
||||
PRIMARY KEY (`id`)
|
||||
) ;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `input` (
|
||||
CREATE TABLE `clients` (
|
||||
`id` int(4) NOT NULL auto_increment,
|
||||
`version` varchar(50) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ;
|
||||
|
||||
CREATE TABLE `input` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`session` int(11) NOT NULL,
|
||||
`timestamp` datetime NOT NULL,
|
||||
@@ -19,13 +25,13 @@ CREATE TABLE IF NOT EXISTS `input` (
|
||||
KEY `session` (`session`,`timestamp`,`realm`)
|
||||
) ;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `sensors` (
|
||||
CREATE TABLE `sensors` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`ip` varchar(15) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `sessions` (
|
||||
CREATE TABLE `sessions` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`starttime` datetime NOT NULL,
|
||||
`endtime` datetime default NULL,
|
||||
@@ -33,11 +39,12 @@ CREATE TABLE IF NOT EXISTS `sessions` (
|
||||
`ip` varchar(15) NOT NULL default '',
|
||||
`termsize` varchar(7) default NULL,
|
||||
`termtitle` varchar(255) default NULL,
|
||||
`client` int(4) default NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `starttime` (`starttime`,`sensor`)
|
||||
) ;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ttylog` (
|
||||
CREATE TABLE `ttylog` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`session` int(11) NOT NULL,
|
||||
`ttylog` mediumblob NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user