Skip to content

Commit

Permalink
调整正则匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
ClessLi committed Oct 13, 2020
1 parent 44ae432 commit fd9004e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/reslove/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package reslove
const (
ipv4AddressReg = `(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})`
//HostBruteLoginRecordReg = `^.*pam_unix\(sshd:auth\): authentication failure.*rhost=(\S*)\s+.*$`
HostBruteLoginRecordReg = `^.*pam_unix\(sshd:auth\): authentication failure.*rhost=(\S*)`
//HostBruteLoginRecordReg = `^.*pam_unix\(sshd:auth\): authentication failure.*rhost=(\S*)`
HostBruteLoginRecordReg = `^.*pam_unix\(sshd:.+\):.*rhost=(\S*)`
//HostBruteLoginRecordWithUserReg = `^.*pam_unix\(sshd:auth\): authentication failure.*rhost=(.*)\s+user=(\S*)\s*.*$`
)

0 comments on commit fd9004e

Please sign in to comment.