用superscan 扫描端口80生成的文件是这样的
* + 218.0.25.12
|___ 80 World Wide Web HTTP
|___ HTTP/1.0
* + 218.0.25.17
|___ 80 World Wide Web HTTP
|___ HTTP/1.0
。。。。。。
把他导入到 xscan 就要修改一下!
自己试着用perl 写了一下,可以实现单单导出ip:
print "Usage: OUTIP.PL INFILEname OUTFILEname\n\n";
if ($#ARGV<1) {
print "缺少参数";
exit ;
}
open (INFILE,"$ARGV[0]") || die "$! 输入的文件不存在!";
open (OUTFILE,">>$ARGV[1]")||die "$!";
while(){
if (m/\*.+/){
s/\*//;
s/\+//;
s/\s*//;
print OUTFILE $_;
}
close (INFILE);
close (OUTFILE);
print "生成的文件在 $ARGV[1]!";
由于是刚刚学perl ,各位见笑了!
|