From 0d2ae7153a2d06a0d0997ff93a9e7311cb5c6a17 Mon Sep 17 00:00:00 2001 From: raphaj Date: Tue, 11 Nov 2014 22:03:00 +0100 Subject: [PATCH] fix import copy bug --- kippo/core/protocol.py | 2 +- kippo/core/ssh.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kippo/core/protocol.py b/kippo/core/protocol.py index c268a32..706b7bd 100644 --- a/kippo/core/protocol.py +++ b/kippo/core/protocol.py @@ -30,7 +30,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol): else: self.cwd = '/' # commands is also a copy so we can add stuff on the fly - self.commands = copy(self.env.commands) + self.commands = copy.copy(self.env.commands) self.password_input = False self.cmdstack = [] diff --git a/kippo/core/ssh.py b/kippo/core/ssh.py index 67a401f..e7e6619 100644 --- a/kippo/core/ssh.py +++ b/kippo/core/ssh.py @@ -5,7 +5,6 @@ import os import copy import time import uuid -import copy from zope.interface import implementer