mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 06:24:20 +01:00
move ssh files to ssh directory
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user