kippo进阶:数据库存储记录与web图形化展示
进阶:数据库存储记录与web图形化展示
数据库准备
create database kippo; create user kippo@localhost identified by ''; grant all on kippo.* to kippo@localhost; mysql -u kippo -p kippo < /kippo/doc/sql/mysql.sql yum install mysql-devel pip install MYSQL-python
修改kippo配置文件
[database_mysql] host = localhost database = kippo username = kippo password = port = 3306
kippo-graph配置
GitHub - ikoniaris/kippo-graph: Visualize statistics from a Kippo SSH honeypot
cp config.php.dist config.php vim config.php define('DIR_ROOT', '/var/www/html/kippo-graph'); define('DB_HOST', 'localhost'); define('DB_USER', 'kippo'); define('DB_PASS', ''); define('DB_NAME', 'kippo'); define('DB_PORT', '3306');
重要补充:数据库记录时间问题
数据库记录的时间存在问题 使用了0时区的时间 修改源码
vim /kippo/kippo/core/dblog.py def nowUnix(self): """return the current UTC time as an UNIX timestamp""" #return int(time.mktime(time.gmtime()[:-1] + (-1,))) return int(time.time())