Created
January 3, 2021 04:25
-
-
Save jazlopez/06fcdbb21f3a9bf905a58545f52e1b20 to your computer and use it in GitHub Desktop.
OS administrtion: filter unauthorized logon attempts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ========================================================= | |
# OS administrtion: filter unauthorized logon attempts | |
# Jaziel Lopez | |
# ========================================================= | |
cat /var/log/auth.log | grep "Disconnected" | awk '{print $10" | "$11" | "$13}' | |
# <username> | <from> | <attempt port> | |
# root | 222.187.222.105 | 61297 | |
# root | 221.181.185.68 | 47627 | |
# root | 218.93.207.84 | 19191 | |
# root | 221.131.165.124 | 45904 | |
# root | 218.93.207.94 | 22241 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment