⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
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
/
t
/
View File Name :
wildcard.t
use NetAddr::IP; my @addr = ( [ 'localhost', '0.0.0.0' ], [ '10.0.0.0/24', '0.0.0.255' ], [ '192.168.0.0/16', '0.0.255.255' ], [ '10.128.0.1/17', '0.0.127.255' ] ); $| = 1; print "1..", 2 * scalar @addr, "\n"; my $count = 1; for my $a (@addr) { my $ip = new NetAddr::IP $a->[0]; if ($ip->wildcard eq $a->[1]) { print "ok $count\n"; } else { print "not ok $count\n"; } ++$count; if (($ip->wildcard)[1] eq $a->[1]) { print "ok $count\n"; } else { print "not ok $count\n"; } ++$count; }