我不擅长正则表达式 - 因此我似乎无法匹配表示暴力 smtp 攻击的 plesk 邮件日志字符串 -
我的日志如下所示:
May 19 03:24:58 gohhllc smtp_auth[22702]: SMTP connect from mail.globaltrbilisim.com [213.144.99.201]
May 19 03:24:58 gohhllc smtp_auth[22702]: No such user 'chuong@drophit.net' in mail authorization database
May 19 03:24:58 gohhllc smtp_auth[22702]: FAILED: chuong@drophit.net - password incorrect from mail.globaltrbilisim.com [213.144.99.201]
在某些情况下,它也看起来像这样
May 19 03:25:22 gohhllc smtp_auth[23056]: SMTP connect from 89-97-124-22.fweds-spc.it [89.97.124.22]
May 19 03:25:22 gohhllc smtp_auth[23056]: FAILED: element - password incorrect from 89-97-124-22.fweds-spc.it [89.97.124.22]
我的正则表达式尝试匹配用户名失败和密码看起来像这样
failregex = No such user '.*' in mail authorization database
FAILED: .* - password incorrect from [<HOST>]
连同 20 多个其他无济于事的组合 - 大多数时候结果是这样的错误
Unable to compile regular expression 'FAILED:
谢谢