line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Host.pm 18 2008-05-05 23:55:18Z jabra $ |
2
|
|
|
|
|
|
|
package NexposeSimpleXML::Parser::Host; |
3
|
|
|
|
|
|
|
{ |
4
|
1
|
|
|
1
|
|
2583
|
use Object::InsideOut; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
10
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
my @address : Field : Arg(address) : Get(address); |
7
|
|
|
|
|
|
|
my @fingerprint : Field : All(fingerprint) : |
8
|
|
|
|
|
|
|
Type(NexposeSimpleXML::Parser::Fingerprint); |
9
|
|
|
|
|
|
|
my @services : Field : All(services) : |
10
|
|
|
|
|
|
|
Type(List(NexposeSimpleXML::Parser::Host::Service)); |
11
|
|
|
|
|
|
|
my @vulnerabilities : Field : All(vulnerabilities) : |
12
|
|
|
|
|
|
|
Type(List(NexposeSimpleXML::Parser::Vulnerability)); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub get_all_services { |
15
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
16
|
0
|
|
|
|
|
|
my @all_services = @{ $self->services }; |
|
0
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
return @all_services; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub get_fingerprint { |
21
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
22
|
0
|
|
|
|
|
|
return $self->fingerprint; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub get_all_vulnerabilities { |
26
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
27
|
0
|
|
|
|
|
|
my @all_vulnerabilities = @{ $self->vulnerabilities }; |
|
0
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
return @all_vulnerabilities; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
1; |