line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#=============================================================================== |
2
|
|
|
|
|
|
|
# PODNAME: Net::IP::Identifier::Plugin::Sharktech |
3
|
|
|
|
|
|
|
# ABSTRACT: identify Sharktech (AS46844) owned IP addresses |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# AUTHOR: Reid Augustin (REID) |
6
|
|
|
|
|
|
|
# EMAIL: reid@hellosix.com |
7
|
|
|
|
|
|
|
# CREATED: Wed Nov 12 09:37:48 PST 2014 |
8
|
|
|
|
|
|
|
#=============================================================================== |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
18
|
use 5.008; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
11
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
12
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
47
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
package Net::IP::Identifier::Plugin::Sharktech; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
1
|
|
4
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
152
|
|
17
|
|
|
|
|
|
|
with qw( Net::IP::Identifier_Role ); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
our $VERSION = '0.111'; # VERSION |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub new { |
22
|
1
|
|
|
1
|
1
|
3
|
my ($class, %opts) = @_; |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
|
|
2
|
my $self = {}; |
25
|
1
|
|
33
|
|
|
7
|
bless $self, (ref $class || $class); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# List of known Sharktech (AS46844) IP blocks as of May 2015 |
28
|
1
|
|
|
|
|
5
|
$self->ips( |
29
|
|
|
|
|
|
|
# 15 Network Blocks |
30
|
|
|
|
|
|
|
'45.58.128.0/18', |
31
|
|
|
|
|
|
|
'64.32.0.0/19', |
32
|
|
|
|
|
|
|
'67.21.64.0/19', |
33
|
|
|
|
|
|
|
'70.39.64.0/18', |
34
|
|
|
|
|
|
|
'104.37.244.0/22', |
35
|
|
|
|
|
|
|
'104.160.160.0/19', |
36
|
|
|
|
|
|
|
'104.201.64.0/18', |
37
|
|
|
|
|
|
|
'107.167.0.0/19', |
38
|
|
|
|
|
|
|
'170.178.160.0/19', |
39
|
|
|
|
|
|
|
'174.128.224.0/19', |
40
|
|
|
|
|
|
|
'198.148.80.0/20', |
41
|
|
|
|
|
|
|
'199.115.96.0/21', |
42
|
|
|
|
|
|
|
'204.188.192.0/18', |
43
|
|
|
|
|
|
|
'208.98.0.0/18', |
44
|
|
|
|
|
|
|
'2610:150::/32', |
45
|
|
|
|
|
|
|
); |
46
|
1
|
|
|
|
|
7
|
return $self; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub name { |
50
|
3
|
|
|
3
|
0
|
11
|
return 'Sharktech'; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |