mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
formatted log message with fingerprint
This commit is contained in:
@ -124,7 +124,8 @@ class HoneypotPublicKeyChecker:
|
|||||||
|
|
||||||
def requestAvatarId(self, credentials):
|
def requestAvatarId(self, credentials):
|
||||||
_pubKey = keys.Key.fromString(credentials.blob)
|
_pubKey = keys.Key.fromString(credentials.blob)
|
||||||
log.msg( 'Public Key attempt for user %s with fingerprint %s' % ( credentials.username, _pubKey.fingerprint() ) )
|
log.msg(format='public key attempt for user %(username)s with fingerprint %(fingerprint)%s',
|
||||||
|
username=credentials.username, fingerprint=_pubKey.fingerprint())
|
||||||
return failure.Failure(error.ConchError("Incorrect signature"))
|
return failure.Failure(error.ConchError("Incorrect signature"))
|
||||||
|
|
||||||
@implementer(ICredentialsChecker)
|
@implementer(ICredentialsChecker)
|
||||||
|
|||||||
Reference in New Issue
Block a user