Skip to content

Commit

Permalink
Merge pull request #27 from CommunityHoneyNetwork/loggedin_logging
Browse files Browse the repository at this point in the history
Add logic for loggedin credential capture
  • Loading branch information
amerck authored Aug 20, 2019
2 parents 07c4bcf + 98cf89f commit 13b37b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hpfeeds-logger/hpfeedslogger/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@ def kippo_cowrie_sessions(identifier, payload, name, channel):
msg['ssh_password'] = password
messages.append(msg)

if dec.loggedin:
username = dec.loggedin[0]
password = dec.loggedin[1]
msg = dict(base_message)
msg['signature'] = 'SSH login successful on {} honeypot'.format(name_lower)
msg['ssh_username'] = username
msg['ssh_password'] = password
messages.append(msg)

if dec.urls:
for url in dec.urls:
msg = dict(base_message)
Expand Down

0 comments on commit 13b37b7

Please sign in to comment.