split ssh.py in multiple files to manage easier

This commit is contained in:
Michel Oosterhof
2015-12-10 13:13:54 +00:00
parent 411a76171e
commit 0ed569b2e6
4 changed files with 358 additions and 332 deletions

View File

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