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

pwd zjistovana pomoci modulu FindBin; polozky timeout a priority nastaveny na undef

parent 2d499f1f
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ use strict;
use warnings;
use DateTime;
use File::Basename;
use FindBin qw($RealBin);
FindBin::again();
#-------------------------------------------------------------------------------
# Warden 2.2. Client, Sender, Example
......@@ -35,8 +36,8 @@ my $target_proto = "TCP";
my $target_port = "22";
my $attack_scale = "1234567890";
my $note = "important note or comment";
my $priority = 1;
my $timeout = 20;
my $priority = undef;
my $timeout = undef;
my @event = ($service, $detected, $type, $source_type, $source,
$target_proto, $target_port, $attack_scale, $note,
......@@ -48,8 +49,7 @@ my @event = ($service, $detected, $type, $source_type, $source,
# (with corresponding paths appropriately changed).
# load Warden client library and main module
my $bin = File::Basename::dirname(__FILE__);
use lib "$bin/../lib";
use lib "$RealBin/../lib";
use WardenClient;
# Sending event to Warden server
......
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