mirror of https://github.com/cowrie/cowrie.git
disable password authentication method. This leaves keyboard-interactive available
This commit is contained in:
parent
106af55c98
commit
2e9a3ac1d7
|
@ -118,9 +118,14 @@ class HoneypotPublicKeyChecker:
|
||||||
|
|
||||||
@implementer(checkers.ICredentialsChecker)
|
@implementer(checkers.ICredentialsChecker)
|
||||||
class HoneypotPasswordChecker:
|
class HoneypotPasswordChecker:
|
||||||
|
"""
|
||||||
|
Checker that accepts keyboard-interactive
|
||||||
|
"""
|
||||||
|
|
||||||
credentialInterfaces = (credentials.IUsernamePassword,
|
# credentialInterfaces = (credentials.IUsernamePassword,
|
||||||
credentials.IPluggableAuthenticationModules)
|
# credentials.IPluggableAuthenticationModules)
|
||||||
|
|
||||||
|
credentialInterfaces = (credentials.IPluggableAuthenticationModules,)
|
||||||
|
|
||||||
def requestAvatarId(self, credentials):
|
def requestAvatarId(self, credentials):
|
||||||
if hasattr(credentials, 'password'):
|
if hasattr(credentials, 'password'):
|
||||||
|
|
Loading…
Reference in New Issue