#!/bin/bash
#author coffee_45

htmlfile="/var/www/html/www.html" ;
tempfile="/home/shen/temp.temp" ;
everyrow=3 ;

echo -n > $tempfile
nmap -P0 192.168.0.160| grep open > $tempfile ;

echo -n > $htmlfile ;
echo "<table>" >> $htmlfile ;

while read line;
do
echo "<tr><td><a href=http://"$line"/ target=_blank>"$line"</a></td></tr>" >> $htmlfile ;
done < $tempfile

echo "</table>" >> $htmlfile ;


文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!