rename 'honeypot' parameter to 'protocol', the conch term

This commit is contained in:
Michel Oosterhof 2014-11-11 21:21:18 +04:00
parent 79ac8ca29f
commit 0fa0825231
1 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ from kippo import core
import pickle
class HoneyPotCommand(object):
def __init__(self, honeypot, *args):
self.honeypot = honeypot
def __init__(self, protocol, *args):
self.honeypot = protocol
self.args = args
self.writeln = self.honeypot.writeln
self.write = self.honeypot.terminal.write
@ -50,8 +50,8 @@ class HoneyPotCommand(object):
pass
class HoneyPotShell(object):
def __init__(self, honeypot, interactive = True):
self.honeypot = honeypot
def __init__(self, protocol, interactive = True):
self.honeypot = protocol
self.interactive = interactive
self.showPrompt()
self.cmdpending = []