⚝
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
/
Lite
/
t
/
View File Name :
loops.t
use NetAddr::IP::Lite; $| = 1; my @deltas = (0, 1, 2, 3, 255); print "1..", 15 + @deltas, "\n"; my $count = 1; for (my $ip = new NetAddr::IP::Lite '10.0.0.1/28'; $ip < $ip->broadcast; $ip ++) { my $o = $ip->addr; $o =~ s/^.+\.(\d+)$/$1/; if ($o == $count) { print "ok $count\n"; } else { print "not ok $count\n"; } ++ $count; } my $ip = new NetAddr::IP::Lite '10.0.0.255/24'; $ip ++; if ($ip eq '10.0.0.0/24') { print "ok $count\n"; } else { print "not ok $count\n"; } ++$count; $ip = new NetAddr::IP::Lite '10.0.0.0/24'; for my $v (@deltas) { if ($ip + $v eq '10.0.0.' . $v . '/24') { print "ok $count\n"; } else { print "not ok $count\n"; } ++ $count; }