1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/security/sshguard/files/patch-src-parser-attack_scanner.l
Chris Rees aa86573ac6 Fix old sshguard bug; does not detect ssh invalid users logins
PR:		ports/174571
Submitted by:	Francois Charlier <fcharlier@ploup.net>

Reset maintainer after 16 month timeout

While here, stage, remove some insanity and fixup rc script
2014-04-08 19:03:02 +00:00

12 lines
721 B
Plaintext

--- src/parser/attack_scanner.l.orig 2012-12-19 10:58:02.992356246 +0000
+++ src/parser/attack_scanner.l 2012-12-19 10:58:22.407356894 +0000
@@ -127,7 +127,7 @@
/* SSH: invalid or rejected user (cross platform [generated by openssh]) */
-"Invalid user ".+" from " { return SSH_INVALUSERPREF; }
+[Ii]"nvalid user ".+" from " { return SSH_INVALUSERPREF; }
/* match disallowed user (not in AllowUsers/AllowGroups or in DenyUsers/DenyGroups) on Linux Ubuntu/FreeBSD */
/* "User tinydns from 1.2.3.4 not allowed because not listed in AllowUsers" */
"User ".+" from " { BEGIN(ssh_notallowed); return SSH_NOTALLOWEDPREF; }