line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Nmap::Scanner; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
15164
|
use vars qw($VERSION @ISA); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
226
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
$VERSION = '1.0'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# Set this to 1 and debugging is on for all modules |
8
|
|
|
|
|
|
|
$Nmap::Scanner::DEBUG = 0; |
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
1409
|
use Nmap::Scanner::Scanner; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
use Nmap::Scanner::Port; |
12
|
|
|
|
|
|
|
use Nmap::Scanner::Host; |
13
|
|
|
|
|
|
|
use Nmap::Scanner::OS; |
14
|
|
|
|
|
|
|
use Nmap::Scanner::PortList; |
15
|
|
|
|
|
|
|
use Nmap::Scanner::HostList; |
16
|
|
|
|
|
|
|
use Nmap::Scanner::Util; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
@ISA = qw(Nmap::Scanner::Scanner); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# |
21
|
|
|
|
|
|
|
# Convenience method for getting to Nmap::Scanner::Scanner. |
22
|
|
|
|
|
|
|
# |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub new { |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
my $class = shift; |
27
|
|
|
|
|
|
|
my $self = $class->SUPER::new(); |
28
|
|
|
|
|
|
|
return bless $self, $class; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub debug { |
33
|
|
|
|
|
|
|
return 0 unless $Nmap::Scanner::DEBUG == 1; |
34
|
|
|
|
|
|
|
my $msg = shift; |
35
|
|
|
|
|
|
|
print __PACKAGE__ . ": $msg\n"; |
36
|
|
|
|
|
|
|
return 1; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |