mirror of https://github.com/cowrie/cowrie.git
load fs.pickle location from config
git-svn-id: https://kippo.googlecode.com/svn/trunk@49 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
parent
6542b9cfb5
commit
876e116b62
|
@ -219,14 +219,15 @@ class HoneyPotAvatar(avatar.ConchUser):
|
|||
|
||||
class HoneyPotEnvironment(object):
|
||||
def __init__(self):
|
||||
self.cfg = config()
|
||||
self.commands = {}
|
||||
import commands
|
||||
for c in commands.__all__:
|
||||
module = __import__('commands.%s' % c,
|
||||
globals(), locals(), ['commands'])
|
||||
self.commands.update(module.commands)
|
||||
self.fs = pickle.load(file('fs.pickle'))
|
||||
self.cfg = config()
|
||||
self.fs = pickle.load(file(
|
||||
self.cfg.get('honeypot', 'filesystem_file')))
|
||||
|
||||
class HoneyPotRealm:
|
||||
implements(portal.IRealm)
|
||||
|
|
Loading…
Reference in New Issue