quick fixes:

- txtcmd broken since HoneyPotCommand wasn't found (fixes #147)
- tab completion broken since os wasn't imported
This commit is contained in:
Upi Tamminen 2014-08-13 08:19:51 +03:00
parent dbf0ca7a48
commit b321ef1098
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
import twisted
from copy import deepcopy, copy
import os
import shlex
from kippo.core import fs

View File

@ -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')