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