FreeBSD Bugzilla – Attachment 200230 Details for
Bug 234137
security/bruteforceblocker: Update patterns to make them match with log messages from recent version of OpenSSH
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file
security_bruteforceblocker.patch (text/plain), 2.38 KB, created by
Yasuhiro Kimura
on 2018-12-18 15:38:36 UTC
(
hide
)
Description:
patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2018-12-18 15:38:36 UTC
Size:
2.38 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 487713) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= bruteforceblocker > PORTVERSION= 1.2.6 >+PORTREVISION= 1 > CATEGORIES= security > > MAINTAINER= danger@FreeBSD.org >@@ -15,12 +16,13 @@ > p5-libwww>=0:www/p5-libwww \ > p5-Net-DNS>=0:dns/p5-Net-DNS > >+USES= perl5 shebangfix > USE_GITHUB= yes > GH_ACCOUNT= dgerzo >-NO_BUILD= yes >-USES= perl5 shebangfix > USE_PERL5= run > >+NO_BUILD= yes >+ > OPTIONS_DEFINE= DOCS > > SUB_FILES= pkg-message >Index: files/patch-bruteforceblocker.pl >=================================================================== >--- files/patch-bruteforceblocker.pl (nonexistent) >+++ files/patch-bruteforceblocker.pl (working copy) >@@ -0,0 +1,22 @@ >+--- bruteforceblocker.pl.orig 2018-12-18 11:17:19 UTC >++++ bruteforceblocker.pl >+@@ -79,13 +79,13 @@ my $res = Net::DNS::Resolver->new; >+ while (<>) { >+ if (/.*Failed password.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || >+ /.*Failed keyboard.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || >+- /.*Invalid user.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i || >+- /.*Did not receive identification string from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i || >+- /.*Bad protocol version identification .* from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i || >++ /.*Invalid user.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || >++ /.*Did not receive identification string from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || >++ /.*Bad protocol version identification .* from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || >+ /.*User.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) not allowed because.*/i || >+- /.*error: maximum authentication attempts exceeded for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i || >+- /.*error: PAM: authentication error for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i || >+- /.*fatal: Unable to negotiate with ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i) { >++ /.*error: maximum authentication attempts exceeded for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || >++ /.*error: PAM: authentication error for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || >++ /.*Unable to negotiate with ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i) { >+ >+ my $IP = $1; >+ if ($IP =~ /$work->{fqdn}/i) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234137
: 200230