| 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::ExtraPorts' => { | |
| 7 | qw(state $ count $), | ||
| 8 | '&as_xml' => q!qq(<extraports state="$self->{state}" ) . | ||
| 9 | qq(count="$self->{count}"/>);! | ||
| 10 | |||
| 11 | }; | ||
| 12 | |||
| 13 | =pod | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | This class holds information on ports found to be not | ||
| 18 | open on a host. | ||
| 19 | |||
| 20 | =head2 state() | ||
| 21 | |||
| 22 | State of the non-open ports: 'closed' or 'filtered.' | ||
| 23 | |||
| 24 | =head2 count() | ||
| 25 | |||
| 26 | Number of non-open ports found. | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | 3 | 1; | |