Skip to content
Snippets Groups Projects
Commit 5fb9e4c5 authored by pharook's avatar pharook
Browse files

Logovani kompletni zpravy pri prijeti, pred validaci a sanitizaci (#833)

parent 33d0287d
No related branches found
No related tags found
No related merge requests found
......@@ -208,6 +208,9 @@ sub saveNewEvent
my %client = authorizeClient($alt_names, $ip, $service, $client_type, $function_name);
if (defined %client) {
sendMsg("info",
"Incoming event: [service: '$service', detected: '$detected', type: '$type', source_type: '$source_type', source: '$source', target_proto: '$target_proto', target_port: '$target_port', attack_scale: '$attack_scale', note: '$note', priority: '$priority', timeout: '$timeout']",
undef);
if (%VALID_STRINGS) { # check if hash is not empty - use VALIDATION HASH
if (!(exists $VALID_STRINGS{'type'} && grep $type eq $_, @{$VALID_STRINGS{'type'}})) {
sendMsg("err",
......
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