Compare commits
6 Commits
release-20
...
master
Author | SHA1 | Date |
---|---|---|
Felix Stupp | d33c6ee31b | 6 years ago |
Felix Stupp | a1c2a3d27f | 6 years ago |
Felix Stupp | 48b47cd21a | 6 years ago |
Felix Stupp | 2742592196 | 6 years ago |
Felix Stupp | 39034fbc4d | 6 years ago |
Felix Stupp | 6eb274e5e4 | 6 years ago |
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
grep 'sshd' /var/log/auth.log |
|
||||
grep -P '(not allowed because not listed in|Invalid user|Did not receive identification string from|Unable to negotiate with|Bad protocol version identification|error: maximum authentication attempts exceeded for)' |
|
||||
grep -o -P '(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)' |
|
||||
sort -u
|
Loading…
Reference in New Issue