FINAL ROOT -LOGIN FAILURE -SUCCESSFUL ONE - SPIDERMAN
#!/bin/bash # Server Tested : compute90-cc : 8.25.218.59 10.170.16.186 : compute90-cc.packet8-pilot.net :ssobeta04-cc : capture_root_logging_failures.sh ##### -- Author of Script - Sreejith Balakrishnan ##### Purpose : 1. This script capture failed logins for root users whoever fails to connect successfully in their first 5 attempts ##### 2. And only if those 5 failed attempts happens within 15 min timeline -- In such cases logs are generated #set -x ###----------------- ##### Declarations : ###----------------- ##### -- Put in the number of Failed Login Attempts you want to capture attempted_counts=5 ##### -- Time in seconds within which the count of login attempts(attempted_counts) to be captured seconds=900 ###------------------------ ##### End of Declations : ###------------------------ root_login(){ #rm -Rf /tmp/logins...