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