Federico G. Schwindt : On bad /oper set the penalty to 10 seconds
Module: ngircd.git Branch: master Commit: 925b4de2981b55a279f28368446f0a862c621d5e URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=925b4de29... Author: Federico G. Schwindt <fgsch@lodoss.net> Date: Wed Nov 6 21:46:53 2013 +0000 On bad /oper set the penalty to 10 seconds This helps against brute-force attempts. --- src/ngircd/irc-oper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ngircd/irc-oper.c b/src/ngircd/irc-oper.c index 260346c..0b50bca 100644 --- a/src/ngircd/irc-oper.c +++ b/src/ngircd/irc-oper.c @@ -50,7 +50,8 @@ Bad_OperPass(CLIENT *Client, char *errtoken, char *errmsg) { Log(LOG_WARNING, "Got invalid OPER from \"%s\": \"%s\" -- %s", Client_Mask(Client), errtoken, errmsg); - return IRC_WriteErrClient(Client, ERR_PASSWDMISMATCH_MSG, + IRC_SetPenalty(Client, 10); + return IRC_WriteStrClient(Client, ERR_PASSWDMISMATCH_MSG, Client_ID(Client)); } /* Bad_OperPass */
Teilnehmer (1)
-
alex@arthur.barton.de