line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Armadito::Agent::Antivirus; |
2
|
|
|
|
|
|
|
|
3
|
27
|
|
|
27
|
|
1395029
|
use strict; |
|
27
|
|
|
|
|
38
|
|
|
27
|
|
|
|
|
668
|
|
4
|
27
|
|
|
27
|
|
102
|
use warnings; |
|
27
|
|
|
|
|
40
|
|
|
27
|
|
|
|
|
739
|
|
5
|
27
|
|
|
27
|
|
102
|
use English qw(-no_match_vars); |
|
27
|
|
|
|
|
53
|
|
|
27
|
|
|
|
|
177
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new { |
8
|
0
|
|
|
0
|
1
|
|
my ( $class, %params ) = @_; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my $self = { |
11
|
|
|
|
|
|
|
logger => $params{logger}, |
12
|
0
|
|
|
|
|
|
os_info => "" |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
bless $self, $class; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
$self->{os_info} = $self->getOperatingSystemInfo(); |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub getOperatingSystemInfo { |
23
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
my $os_info = { |
26
|
|
|
|
|
|
|
name => $OSNAME, |
27
|
|
|
|
|
|
|
libpath => $OSNAME |
28
|
|
|
|
|
|
|
}; |
29
|
|
|
|
|
|
|
|
30
|
0
|
0
|
|
|
|
|
if ( $OSNAME eq "MSWin32" ) { |
31
|
0
|
|
|
|
|
|
$os_info->{libpath} = "Win32"; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
return $os_info; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Armadito::Agent::Antivirus - Armadito Agent Antivirus base class. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 DESCRIPTION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This is a base class for all stuff specific to an Antivirus. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 FUNCTIONS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 new ( $self, %params ) |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Instanciate Armadito module. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 getOperatingSystemInfo ( $self ) |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Get Operating system information. |
58
|
|
|
|
|
|
|
|