#!/usr/bin/perl
use LWP::Simple;
open (FILE,”
while(
s/^IP1.*//g;
my @file=split(/\,|\s+/,$_);
my @file1=”$file[0] $file[1]“;
my $IP=”$file[1]” ;
my $domain=”$file[0]“;
my $url=”http://ip138.com/ips138.asp?ip=$IP&action=2″;
my $connet=get(“$url”);
my @connet=split(/\n/,$connet);
foreach my $sc (@connet){
if($sc=~ m/td align=”center”>
- (.*?)<.*/){
printf “%-40s %-20s %s\n”,$domain,$IP,$1 ;
}
}
}
close(FILE);
© 版权声明
文章版权归作者所有,未经允许请勿转载。