Identifier/Plugin/Koffivend.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 32 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
name
2.0
BEGIN
2.0
CRAP 2.0
1 #===============================================================================
2 # PODNAME: Net::IP::Identifier::Plugin::Koffivend
3 # ABSTRACT: identify Koffivend Corp (AS201305) owned IP addresses
4 #
5 # AUTHOR: Reid Augustin (REID)
6 # EMAIL: reid@hellosix.com
7 # CREATED: Thu Mar 26 10:41:08 PDT 2015
8 #===============================================================================
9  
10 use 5.008;
11 use strict;
12 use warnings;
13  
14 package Net::IP::Identifier::Plugin::Koffivend;
15  
16 use Role::Tiny::With;
17 with qw( Net::IP::Identifier_Role );
18  
19 our $VERSION = '0.106'; # VERSION
20  
21 sub new {
22 my ($class, %opts) = @_;
23  
24 my $self = {};
25 bless $self, (ref $class || $class);
26  
27 # List of known Koffivend Corp (AS201305) IP blocks as of May 2015
28 $self->ips(
29 # 18 Network Blocks
30 '78.159.156.0/24',
31 # extending 87.243.67.0/24 to include 87.243.68.0/24
32 # extending 87.243.67.0-87.243.68.255 to include 87.243.69.0/24
33 # extending 87.243.67.0-87.243.69.255 to include 87.243.70.0/24
34 # extending 87.243.67.0-87.243.70.255 to include 87.243.71.0/24
35 # extending 87.243.67.0-87.243.71.255 to include 87.243.72.0/24
36 # extending 87.243.67.0-87.243.72.255 to include 87.243.73.0/24
37 # extending 87.243.67.0-87.243.73.255 to include 87.243.74.0/24
38 # extending 87.243.67.0-87.243.74.255 to include 87.243.75.0/24
39 # extending 87.243.67.0-87.243.75.255 to include 87.243.76.0/24
40 '87.243.67.0-87.243.76.255',
41 '87.243.79.0/24',
42 # extending 87.243.83.0/24 to include 87.243.84.0/24
43 '87.243.83.0-87.243.84.255',
44 '87.243.88.0/24',
45 # extending 87.243.90.0/24 to include 87.243.91.0/24
46 '87.243.90.0/23',
47 # extending 87.243.94.0/24 to include 87.243.95.0/24
48 # extending 87.243.94.0/23 to include 87.243.96.0/24
49 # extending 87.243.94.0-87.243.96.255 to include 87.243.97.0/24
50 # extending 87.243.94.0-87.243.97.255 to include 87.243.98.0/24
51 '87.243.94.0-87.243.98.255',
52 '87.243.100.0/24',
53 # extending 87.243.102.0/24 to include 87.243.103.0/24
54 # extending 87.243.102.0/23 to include 87.243.104.0/24
55 '87.243.102.0-87.243.104.255',
56 # extending 87.243.106.0/24 to include 87.243.107.0/24
57 '87.243.106.0/23',
58 # extending 87.243.109.0/24 to include 87.243.110.0/24
59 '87.243.109.0-87.243.110.255',
60 '94.73.9.0/24',
61 '94.73.16.0/24',
62 '109.160.10.0/24',
63 # extending 109.160.44.0/24 to include 109.160.45.0/24
64 # extending 109.160.44.0/23 to include 109.160.46.0/24
65 '109.160.44.0-109.160.46.255',
66 # extending 109.160.64.0/24 to include 109.160.65.0/24
67 # extending 109.160.64.0/23 to include 109.160.66.0/24
68 # extending 109.160.64.0-109.160.66.255 to include 109.160.67.0/24
69 '109.160.64.0/22',
70 '109.160.121.0/24',
71 # extending 195.230.26.0/24 to include 195.230.27.0/24
72 # extending 195.230.26.0/23 to include 195.230.28.0/24
73 # extending 195.230.26.0-195.230.28.255 to include 195.230.29.0/24
74 # extending 195.230.26.0-195.230.29.255 to include 195.230.30.0/24
75 # extending 195.230.26.0-195.230.30.255 to include 195.230.31.0/24
76 '195.230.26.0-195.230.31.255',
77 );
78 return $self;
79 }
80  
81 sub name {
82 return 'Koffivend';
83 }
84  
85 1;
86  
87 __END__