Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
fredposner committed Dec 31, 2024
1 parent d347c11 commit 22bc6d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified binary/blockhosts
Binary file not shown.
4 changes: 2 additions & 2 deletions blockhosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ func SshAuthCheck(logfile string) ([]string, int, error) {
var addresses []string
var matchRules []string
matchRules = append(matchRules, `Connection closed by\D+([0-9]{0,3}\.){3}[0-9]{0,3}`)
matchRules = append(matchRules, `Received disconnect from\D+([0-9]{0,3}\.){3}[0-9]{0,3}(.*)\:\s\s\[preauth\]`)
matchRules = append(matchRules, `Received disconnect from\D+([0-9]{0,3}\.){3}[0-9]{0,3}(.*)\[preauth\]`)
matchRules = append(matchRules, `Connection closed by(.*)[0-9]{0,3}\.){3}[0-9]{0,3}(.*)\[preauth\]`)
matchRules = append(matchRules, `Connection reset by(.*)([0-9]{0,3}\.){3}[0-9]{0,3}(.*)\[preauth\]`)
matchRules = append(matchRules, `Connection reset by\D+([0-9]{0,3}\.){3}[0-9]{0,3}(.*)\[preauth\]`)
matchRules = append(matchRules, `authentication failure(.*)rhost\=([0-9]{0,3}\.){3}[0-9]{0,3}`)
matchRules = append(matchRules, `Failed password for(.*)([0-9]{0,3}\.){3}[0-9]{0,3}`)
matchRules = append(matchRules, `Invalid user(.*)([0-9]{0,3}\.){3}[0-9]{0,3}`)
Expand Down

0 comments on commit 22bc6d9

Please sign in to comment.