mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 05:54:21 +01:00
split ssh.py in multiple files to manage easier
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user