diff options
| author | Ada Isopods <me@bathynomus.xyz> | 2025-05-22 00:40:37 -0600 |
|---|---|---|
| committer | Ada Isopods <me@bathynomus.xyz> | 2026-10-21 23:04:36 -0600 |
| commit | 2b047917145e8684c694b00881a29be54a0ac469 (patch) | |
| tree | fe2c2942f71376e127324d33834f424427f5f422 /cowrieder.py | |
| parent | d677685875df2e3080bf5160e62657fa2525ef66 (diff) | |
add that last bit to high verbosity modes
Diffstat (limited to 'cowrieder.py')
| -rw-r--r-- | cowrieder.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cowrieder.py b/cowrieder.py index 90cc39c..49e4867 100644 --- a/cowrieder.py +++ b/cowrieder.py @@ -456,7 +456,8 @@ if(verbosity == 3): # Maximum verbosity: literally just dump everything we have 'ips_by_attempt_count': ips_by_attempt_count, 'usernames_by_attempt_count': usernames_by_attempt_count, 'passwords_by_attempt_count': passwords_by_attempt_count, - 'passwords_by_username': passwords_by_username + 'passwords_by_username': passwords_by_username, + 'login_combos_by_ip': login_combos_by_ip } outjson.update({'stats': all_stats}) @@ -476,6 +477,8 @@ elif(verbosity == 2): # High verbosity mode: print timestamp, event type and mes else: print(entry["timestamp"] + " > " + eventid + (" " * (29 - len(eventid))) + ": " + entry['message']) if(print_stats): + print("\n--- Source IPs and number of connections originating from them: ---") + pprint(attempt_counts_by_ip, sort_dicts=False) print("\n--- Credential combinations used: ---") pprint(login_combos, sort_dicts=False) print("\n--- Usernames and number of times they were tried: ---") @@ -484,8 +487,8 @@ elif(verbosity == 2): # High verbosity mode: print timestamp, event type and mes pprint(attempt_counts_by_password, sort_dicts=False) print("\n--- Passwords grouped by corresponding username: ---") pprint(passwords_by_username, sort_dicts=False) - print("\n--- Source IPs and number of connections originating from them: ---") - pprint(attempt_counts_by_ip, sort_dicts=False) + print("\n--- Credential combos grouped by source IP: ---") + pprint(login_combos_by_ip, sort_dicts=False) print_percentage_stats() |
