Malware/Win32.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 32 CC 2 SCAR 11.5
CC
2
Cov
0%
registry
6.0
_blurb
2.0
BEGIN
2.0
CRAP 3.1
1 package Malware::Win32;
2 use base 'Malware';
3  
4 use 5.008007;
5 use strict;
6 use warnings;
7 our $VERSION = '1.02';
8  
9 =head1 OBJECT METHODS
10  
11 =head2 registry()
12  
13 Sets and returns an array of strings that decribes registry behavior
14  
15 Accepts: string
16  
17 Returns: a ref to an array of strings
18  
19 =cut
20  
21 sub registry {
22 my ($self,$v) = @_;
23 push(@{$self->{_registry}},$v) if(defined($v));
24 return $self->{_registry};
25 }
26  
27 =head2 _blurb()
28  
29 Returns a hashref for the registery strings for inclusion in the $m->blurb()
30  
31 =cut
32  
33 sub _blurb {
34 my $self = shift;
35  
36 my $hr = {};
37 $hr->{Registry} = $self->registry();
38 return $hr;
39 }
40  
41 1;
42 __END__