Skip to content
Snippets Groups Projects
Commit d80e21be authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

ziskavani casu detekce pomoci DateTime

parent 9b352560
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
# #
use strict; use strict;
use DateTime;
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Warden 1.0.0. Client, Sender, Example # Warden 1.0.0. Client, Sender, Example
...@@ -44,8 +45,11 @@ use strict; ...@@ -44,8 +45,11 @@ use strict;
# Preparation of event attributes. # Preparation of event attributes.
# This should be handled by detection application. # This should be handled by detection application.
my $local_detected = time()
my $service = "ScanDetector"; my $service = "ScanDetector";
my $detected = "2011-07-16T19:20:30.45"; my $detected = DateTime->from_epoch(epoch => $local_detected);
my $type = "portscan"; my $type = "portscan";
my $source_type = "IP"; my $source_type = "IP";
my $source = "123.123.123.123"; my $source = "123.123.123.123";
......
...@@ -279,7 +279,7 @@ change_permissions() ...@@ -279,7 +279,7 @@ change_permissions()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# list of used Perl modules # list of used Perl modules
modules=(SOAP::Lite IO::Socket::SSL SOAP::Transport::TCP FindBin) modules=(SOAP::Lite IO::Socket::SSL SOAP::Transport::TCP FindBin DateTime)
# OS test # OS test
os_chck os_chck
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment