From cde5d02c67078975cb1de867f914acde4c7c0ed9 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 4 Mar 2008 21:20:55 +0000 Subject: add support for "new connection" messages --- lib/network/ifw.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/network/ifw.pm') diff --git a/lib/network/ifw.pm b/lib/network/ifw.pm index 44f58da..1148605 100644 --- a/lib/network/ifw.pm +++ b/lib/network/ifw.pm @@ -129,11 +129,13 @@ sub attack_to_hash { $attack->{prefix} eq 'SCAN' ? N("Port scanning") : $attack->{prefix} eq 'SERV' ? N("Service attack") : $attack->{prefix} eq 'PASS' ? N("Password cracking") + : $attack->{prefix} eq 'NEW' ? N("New connection") : N(qq("%s" attack), $attack->{prefix}); $attack->{msg} = $attack->{prefix} eq "SCAN" ? N("A port scanning attack has been attempted by %s.", $attack->{hostname}) : $attack->{prefix} eq "SERV" ? N("The %s service has been attacked by %s.", $attack->{service}, $attack->{hostname}) : $attack->{prefix} eq "PASS" ? N("A password cracking attack has been attempted by %s.", $attack->{hostname}) + : $attack->{prefix} eq "NEW" ? N("%s is connecting on the %s service.", $attack->{hostname}, $attack->{service}) : N(qq(A "%s" attack has been attempted by %s), $attack->{prefix}, $attack->{hostname}); $attack; } -- cgit v1.2.1