mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-03 14:24:23 +01:00
disable password authentication method. This leaves keyboard-interactive available
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user