Skip to content
Snippets Groups Projects
Select Git revision
  • 9d730e95fb89c5ac74e2d919ec5d69a83910ae9c
  • master default protected
  • rednatco-v2
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • servers
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

performance-monitor.ts

Blame
  • receiver.pl 1.19 KiB
    #!/usr/bin/perl -w
    #
    # receiver.pl
    #
    # Copyright (C) 2011-2012 Cesnet z.s.p.o
    #
    # Use of this source is governed by a BSD-style license, see LICENSE file.
    
    use strict;
    
    my $warden_path = '/opt/warden-client';
    require $warden_path . '/lib/WardenClientReceive.pm';
    
    #my $requested_type = "copyright";
    #my $requested_type = "botnet_c_c";
    my $requested_type = "bruteforce";
    my @new_events = WardenClientReceive::getNewEvents($warden_path, $requested_type);
    
    print "+------------------------------------------------------------------------------------------------------------------------------------------+\n";
    print "| id | hostname | service | detected | type | source_type | source | target_proto | target_port | attack_scale | note | priority | timeout |\n";
    print "+------------------------------------------------------------------------------------------------------------------------------------------+\n";
    
    foreach (@new_events) {
      print "| " . join(' | ', @$_) . " |" . "\n";
    }
    print "+------------------------------------------------------------------------------------------------------------------------------------------+";
    print "\n";
    print "Last events in: " . scalar(localtime(time)) . "\n";
    
    exit 0;