Skip to content

Commit

Permalink
Merge pull request #17 from CommunityHoneyNetwork/cowrie_hash_logging
Browse files Browse the repository at this point in the history
In which our hero adds logging for hashes captured
  • Loading branch information
amerck authored Feb 11, 2019
2 parents d113c9f + df273e7 commit 69c7401
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hpfeeds-logger/hpfeedslogger/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ def kippo_cowrie_sessions(identifier, payload, name, channel):
msg['command'] = command
messages.append(msg)

if dec.hashes:
for fhash in dec.hashes:
msg = dict(base_message)
msg['signature'] = 'File downloaded on {} honeypot'.format(name_lower)
msg['hash'] = fhash
messages.append(msg)

return messages


Expand Down

0 comments on commit 69c7401

Please sign in to comment.