mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-20 05:44:26 +01:00
Include general configuration parameters in the cfg instance passed to
DB loggers git-svn-id: https://kippo.googlecode.com/svn/trunk@200 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -534,7 +534,10 @@ class HoneyPotSSHFactory(factory.SSHFactory):
|
||||
lcfg = ConfigParser.ConfigParser()
|
||||
lcfg.add_section(dbengine)
|
||||
for i in cfg.options(x):
|
||||
lcfg.set(dbengine, i, cfg.get(x,i))
|
||||
lcfg.set(dbengine, i, cfg.get(x, i))
|
||||
lcfg.add_section('honeypot')
|
||||
for i in cfg.options('honeypot'):
|
||||
lcfg.set('honeypot', i, cfg.get('honeypot', i))
|
||||
print 'Loading dblog engine: %s' % (engine,)
|
||||
dblogger = __import__(
|
||||
'kippo.dblog.%s' % (engine,),
|
||||
|
||||
Reference in New Issue
Block a user