⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.62
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
.cpan
/
build
/
NetAddr-IP-4.079-0
/
Lite
/
t
/
View File Name :
v4-last.t
use NetAddr::IP::Lite; my %w = ('default' => [ '255.255.255.254', '0.0.0.0' ], 'loopback' => [ '127.255.255.254', '255.0.0.0' ], '127.0.0.1/8' => [ '127.255.255.254', '255.0.0.0' ], '10.' => [ '10.255.255.254', '255.0.0.0' ], '10.10.10/24' => [ '10.10.10.254', '255.255.255.0' ], ); $| = 1; print '1..', (2 * scalar keys %w), "\n"; my $count = 1; for my $a (keys %w) { my $ip = NetAddr::IP::Lite->new($a)->last; if ($ip->addr eq $w{$a}->[0]) { print "ok ", $count++, "\n"; } else { print "not ok ", $count++, "\n"; } if ($ip->mask eq $w{$a}->[1]) { print "ok ", $count++, "\n"; } else { print "not ok ", $count++, "\n"; } }