| 1 | #=============================================================================== | ||||||||||||||||||||
| 2 | # PODNAME: Net::IP::Identifier::Plugin::1and1 | ||||||||||||||||||||
| 3 | # ABSTRACT: identify 1and1 / FastHosts (AS8560, AS15418) owned IP addresses | ||||||||||||||||||||
| 4 | # | ||||||||||||||||||||
| 5 | # AUTHOR: Reid Augustin (REID) | ||||||||||||||||||||
| 6 | # EMAIL: reid@hellosix.com | ||||||||||||||||||||
| 7 | # CREATED: Sun Oct 12 19:32:46 PDT 2014 | ||||||||||||||||||||
| 8 | #=============================================================================== | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 1 | ▶ | use 5.008; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | # _ENTITY_REGEX_ 1and1|1\&1|fasthosts | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | package Net::IP::Identifier::Plugin::1and1; | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 1 | ▶ | use Role::Tiny::With; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 19 | 1 | with qw( Net::IP::Identifier_Role ); | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 1 | our $VERSION = '0.111'; # VERSION | |||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 1 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.2
Pod
documented
| |||||||||||||||||||||
| 24 | 1 | my ($class, %opts) = @_; | |||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 1 | my $self = {}; | |||||||||||||||||||
| 27 | 1 | ▶ | bless $self, (ref $class || $class); | ||||||||||||||||||
|
Condition33%1/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table33%1/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | # List of known 1and1 (AS8560, AS15418) IP blocks as of May 2015 | ||||||||||||||||||||
| 30 | 1 | $self->ips( | |||||||||||||||||||
| 31 | # 30 Network Blocks | ||||||||||||||||||||
| 32 | '50.21.176.0/20', | ||||||||||||||||||||
| 33 | '66.175.232.0/21', | ||||||||||||||||||||
| 34 | '70.35.192.0/20', | ||||||||||||||||||||
| 35 | '74.208.0.0/16', | ||||||||||||||||||||
| 36 | '77.68.0.0/17', | ||||||||||||||||||||
| 37 | '79.99.40.0/21', | ||||||||||||||||||||
| 38 | '82.165.0.0/16', | ||||||||||||||||||||
| 39 | '87.106.0.0/16', | ||||||||||||||||||||
| 40 | '88.208.192.0/18', | ||||||||||||||||||||
| 41 | '93.90.192.0/20', | ||||||||||||||||||||
| 42 | '104.192.4.0/22', | ||||||||||||||||||||
| 43 | '104.219.40.0/22', | ||||||||||||||||||||
| 44 | '104.254.244.0/22', | ||||||||||||||||||||
| 45 | '108.175.0.0/20', | ||||||||||||||||||||
| 46 | '109.228.0.0/18', | ||||||||||||||||||||
| 47 | '162.222.200.0/21', | ||||||||||||||||||||
| 48 | '162.252.156.0/22', | ||||||||||||||||||||
| 49 | '162.255.84.0/22', | ||||||||||||||||||||
| 50 | '195.20.224.0/19', | ||||||||||||||||||||
| 51 | '198.71.48.0/20', | ||||||||||||||||||||
| 52 | '198.251.64.0/20', | ||||||||||||||||||||
| 53 | '212.227.0.0/16', | ||||||||||||||||||||
| 54 | '213.165.64.0/19', | ||||||||||||||||||||
| 55 | '213.171.192.0/19', | ||||||||||||||||||||
| 56 | '216.250.112.0/20', | ||||||||||||||||||||
| 57 | '217.72.192.0/20', | ||||||||||||||||||||
| 58 | '217.160.0.0/16', | ||||||||||||||||||||
| 59 | '217.174.240.0/20', | ||||||||||||||||||||
| 60 | '2001:8d8::/32', | ||||||||||||||||||||
| 61 | '2607:f1c0::/32', | ||||||||||||||||||||
| 62 | ); | ||||||||||||||||||||
| 63 | 1 | return $self; | |||||||||||||||||||
| 64 | } | ||||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | 1 | ▶ | sub name { | ||||||||||||||||||
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 67 | 1 | return '1and1'; | |||||||||||||||||||
| 68 | } | ||||||||||||||||||||
| 69 | |||||||||||||||||||||
| 70 | 1 | 1; | |||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | __END__ | ||||||||||||||||||||