line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Hardware::Network::Darwin; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
14
|
use v5.12.5; |
|
1
|
|
|
|
|
3
|
|
8
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
41
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.2.3'; # TRIAL VERSION |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
5
|
use Rex::Logger; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
13
|
1
|
|
|
1
|
|
20
|
use Rex::Helper::Array; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
64
|
|
14
|
1
|
|
|
1
|
|
12
|
use Rex::Hardware::Network::OpenBSD; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
12
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub get_network_devices { |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
0
|
|
return Rex::Hardware::Network::OpenBSD::get_network_devices(); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub get_network_configuration { |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
0
|
|
return Rex::Hardware::Network::OpenBSD::get_network_configuration(); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub route { |
29
|
0
|
|
|
0
|
0
|
|
return Rex::Hardware::Network::OpenBSD->route(); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub default_gateway { |
33
|
0
|
|
|
0
|
0
|
|
shift; |
34
|
0
|
|
|
|
|
|
return Rex::Hardware::Network::OpenBSD->default_gateway(@_); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub netstat { |
38
|
0
|
|
|
0
|
0
|
|
return Rex::Hardware::Network::OpenBSD->netstat(); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |