From b321ef1098c515d49399e1f0b6da579f2597a3a4 Mon Sep 17 00:00:00 2001 From: Upi Tamminen Date: Wed, 13 Aug 2014 08:19:51 +0300 Subject: [PATCH] quick fixes: - txtcmd broken since HoneyPotCommand wasn't found (fixes #147) - tab completion broken since os wasn't imported --- kippo/core/honeypot.py | 1 + kippo/core/protocol.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kippo/core/honeypot.py b/kippo/core/honeypot.py index 2c6db267..94f2e676 100644 --- a/kippo/core/honeypot.py +++ b/kippo/core/honeypot.py @@ -3,6 +3,7 @@ import twisted from copy import deepcopy, copy +import os import shlex from kippo.core import fs diff --git a/kippo/core/protocol.py b/kippo/core/protocol.py index e72d724b..43240bc0 100644 --- a/kippo/core/protocol.py +++ b/kippo/core/protocol.py @@ -15,6 +15,7 @@ from copy import deepcopy, copy from kippo.core import ttylog, fs from kippo.core.config import config from kippo.core import exceptions +import kippo.core.honeypot from kippo import core class HoneyPotBaseProtocol(insults.TerminalProtocol): @@ -70,7 +71,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol): #del self.commands def txtcmd(self, txt): - class command_txtcmd(HoneyPotCommand): + class command_txtcmd(core.honeypot.HoneyPotCommand): def call(self): print 'Reading txtcmd from "%s"' % txt f = file(txt, 'r')