mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
fix copy imports
This commit is contained in:
@ -5,7 +5,7 @@ import twisted
|
|||||||
import os
|
import os
|
||||||
import shlex
|
import shlex
|
||||||
import re
|
import re
|
||||||
import copy.copy
|
import copy
|
||||||
|
|
||||||
from twisted.python import log
|
from twisted.python import log
|
||||||
from kippo.core import fs
|
from kippo.core import fs
|
||||||
|
@ -5,7 +5,7 @@ import os
|
|||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
import struct
|
import struct
|
||||||
import copy.copy
|
import copy
|
||||||
|
|
||||||
from twisted.conch import recvline
|
from twisted.conch import recvline
|
||||||
from twisted.conch.ssh import transport
|
from twisted.conch.ssh import transport
|
||||||
@ -30,7 +30,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol):
|
|||||||
else:
|
else:
|
||||||
self.cwd = '/'
|
self.cwd = '/'
|
||||||
# commands is also a copy so we can add stuff on the fly
|
# 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.password_input = False
|
||||||
self.cmdstack = []
|
self.cmdstack = []
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import os
|
|||||||
import copy
|
import copy
|
||||||
import time
|
import time
|
||||||
import uuid
|
import uuid
|
||||||
import copy.deepcopy
|
import copy
|
||||||
|
|
||||||
from zope.interface import implementer
|
from zope.interface import implementer
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user