move ssh files to ssh directory

This commit is contained in:
Michel Oosterhof
2015-12-28 15:14:57 +04:00
parent 9af4ab474c
commit e56f413417
10 changed files with 9 additions and 7 deletions

View File

@@ -45,10 +45,11 @@ from twisted.cred import portal
from cowrie.core.config import readConfigFile
from cowrie import core
import cowrie.core.transport
import cowrie.core.realm
import cowrie.core.checkers
import cowrie.ssh.transport
class Options(usage.Options):
"""
FIXME: Docstring
@@ -93,7 +94,7 @@ class CowrieServiceMaker(object):
else:
listen_port = 2222
factory = core.transport.HoneyPotSSHFactory(cfg)
factory = cowrie.ssh.transport.HoneyPotSSHFactory(cfg)
factory.portal = portal.Portal(core.realm.HoneyPotRealm(cfg))
factory.portal.registerChecker(
core.checkers.HoneypotPublicKeyChecker())