| 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__ |