mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 14:34:22 +01:00
move ssh files to ssh directory
This commit is contained in:
@@ -14,9 +14,9 @@ from twisted.conch.ssh import filetransfer as conchfiletransfer
|
|||||||
from twisted.python import log, components
|
from twisted.python import log, components
|
||||||
|
|
||||||
from cowrie.core import pwd
|
from cowrie.core import pwd
|
||||||
from cowrie.core import session
|
from cowrie.ssh import session
|
||||||
from cowrie.core import filetransfer
|
from cowrie.ssh import filetransfer
|
||||||
from cowrie.core import forwarding
|
from cowrie.ssh import forwarding
|
||||||
|
|
||||||
|
|
||||||
@implementer(IConchUser)
|
@implementer(IConchUser)
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class TooManyLevels(Exception):
|
|||||||
|
|
||||||
class FileNotFound(Exception):
|
class FileNotFound(Exception):
|
||||||
"""
|
"""
|
||||||
|
raise OSError(errno.ENOENT, os.strerror(errno.ENOENT))
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
0
cowrie/ssh/__init__.py
Normal file
0
cowrie/ssh/__init__.py
Normal file
@@ -17,8 +17,8 @@ from twisted.conch.openssh_compat import primes
|
|||||||
from twisted.conch.ssh.common import getNS
|
from twisted.conch.ssh.common import getNS
|
||||||
from twisted.protocols.policies import TimeoutMixin
|
from twisted.protocols.policies import TimeoutMixin
|
||||||
|
|
||||||
from cowrie.core import connection
|
from cowrie.ssh import connection
|
||||||
from cowrie.core import userauth
|
from cowrie.ssh import userauth
|
||||||
from cowrie.core import keys as cowriekeys
|
from cowrie.core import keys as cowriekeys
|
||||||
|
|
||||||
|
|
||||||
@@ -45,10 +45,11 @@ from twisted.cred import portal
|
|||||||
|
|
||||||
from cowrie.core.config import readConfigFile
|
from cowrie.core.config import readConfigFile
|
||||||
from cowrie import core
|
from cowrie import core
|
||||||
import cowrie.core.transport
|
|
||||||
import cowrie.core.realm
|
import cowrie.core.realm
|
||||||
import cowrie.core.checkers
|
import cowrie.core.checkers
|
||||||
|
|
||||||
|
import cowrie.ssh.transport
|
||||||
|
|
||||||
class Options(usage.Options):
|
class Options(usage.Options):
|
||||||
"""
|
"""
|
||||||
FIXME: Docstring
|
FIXME: Docstring
|
||||||
@@ -93,7 +94,7 @@ class CowrieServiceMaker(object):
|
|||||||
else:
|
else:
|
||||||
listen_port = 2222
|
listen_port = 2222
|
||||||
|
|
||||||
factory = core.transport.HoneyPotSSHFactory(cfg)
|
factory = cowrie.ssh.transport.HoneyPotSSHFactory(cfg)
|
||||||
factory.portal = portal.Portal(core.realm.HoneyPotRealm(cfg))
|
factory.portal = portal.Portal(core.realm.HoneyPotRealm(cfg))
|
||||||
factory.portal.registerChecker(
|
factory.portal.registerChecker(
|
||||||
core.checkers.HoneypotPublicKeyChecker())
|
core.checkers.HoneypotPublicKeyChecker())
|
||||||
|
|||||||
Reference in New Issue
Block a user