aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cowrieder.py9
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()