| 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::Match' => { | |
| 7 | qw(name $ | ||
| 8 | accuracy $), | ||
| 9 | '&as_xml' => q!my $osname = HTML::Entities::encode_entities($self->{name}); | ||
| 10 | qq(<osmatch name="$osname" ) . | ||
| 11 | qq(accuracy="$self->{accuracy}"/>);! | ||
| 12 | }, | ||
| 13 | '-use' => 'HTML::Entities'; | ||
| 14 | |||
| 15 | 3 | 1; | |
| 16 | |||
| 17 | =pod | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | OS Match - Operating system match | ||
| 22 | |||
| 23 | This object encapsulates an nmap operating system | ||
| 24 | guess. | ||
| 25 | |||
| 26 | =head2 name() | ||
| 27 | |||
| 28 | Operating system name | ||
| 29 | |||
| 30 | =head2 accuracy() | ||
| 31 | |||
| 32 | How accurate does nmap think this match is? | ||
| 33 | |||
| 34 | =cut | ||