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)
|
||||
class HoneypotPasswordChecker:
|
||||
"""
|
||||
Checker that accepts keyboard-interactive
|
||||
"""
|
||||
|
||||
credentialInterfaces = (credentials.IUsernamePassword,
|
||||
credentials.IPluggableAuthenticationModules)
|
||||
# credentialInterfaces = (credentials.IUsernamePassword,
|
||||
# credentials.IPluggableAuthenticationModules)
|
||||
|
||||
credentialInterfaces = (credentials.IPluggableAuthenticationModules,)
|
||||
|
||||
def requestAvatarId(self, credentials):
|
||||
if hasattr(credentials, 'password'):
|
||||
|
|
Loading…
Reference in New Issue