lib/Nmap/Scanner/OS/Class.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Nmap/Scanner/OS.pm ↑ Summary lib/Nmap/Scanner/OS/Fingerprint.pm »
1  
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 3 ▶use Class::Generate qw(class);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 class 'Nmap::Scanner::OS::Class' => {
7 qw(vendor $
8 osgen $
9 type $
10 osfamily $
11 accuracy $),
12 '&as_xml' => q!
13  
14 return qq(<osclass type="$self->{type}" vendor="$self->{vendor}" ) .
15 qq(osfamily="$self->{osfamily}" osgen="$self->{osgen}" ) .
16 qq(accuracy="$self->{accuracy}"/>);
17  
18 !
19 };
20  
21 3 1;
22  
23 =pod
24  
25 =head1 NAME
26  
27 OS Class - Operating system class
28  
29 This object encapsulates an nmap operating system
30 guess.
31  
32 =head2 vendor()
33  
34 Operating system vendor
35  
36 =head2 osgen()
37  
38 Operating system generation
39  
40 =head2 type()
41  
42 Operating system generation
43  
44 =head2 osfamily()
45  
46 Operating system family
47  
48 =head2 accuracy()
49  
50 How accurate does nmap think this match is?
51  
52 =cut
53  
« lib/Nmap/Scanner/OS.pm ↑ Summary lib/Nmap/Scanner/OS/Fingerprint.pm »