From d3bfeca331c5ca063b17ee3c430ff5fd0505288e Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Sun, 9 Nov 2014 17:33:29 +0400 Subject: [PATCH] fix copy imports --- kippo/core/honeypot.py | 2 +- kippo/core/protocol.py | 4 ++-- kippo/core/ssh.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kippo/core/honeypot.py b/kippo/core/honeypot.py index 4b20b2a..6c5ed2d 100644 --- a/kippo/core/honeypot.py +++ b/kippo/core/honeypot.py @@ -5,7 +5,7 @@ import twisted import os import shlex import re -import copy.copy +import copy from twisted.python import log from kippo.core import fs diff --git a/kippo/core/protocol.py b/kippo/core/protocol.py index d33f914..706b7bd 100644 --- a/kippo/core/protocol.py +++ b/kippo/core/protocol.py @@ -5,7 +5,7 @@ import os import random import time import struct -import copy.copy +import copy from twisted.conch import recvline from twisted.conch.ssh import transport @@ -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 6d761f5..67a401f 100644 --- a/kippo/core/ssh.py +++ b/kippo/core/ssh.py @@ -5,7 +5,7 @@ import os import copy import time import uuid -import copy.deepcopy +import copy from zope.interface import implementer