当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 用nmap扫描端口并写到一个静态网页脚本(转贴)

Unix/Linux
使用yum把内核升级到Kernel 2.6.0test9
请问如何在vi中做到高亮显示?
Firefly 的Xft2 for Fedora下载安装
如何设置cygwin控制台字体高亮显示?
SWT(implemented with gtk)的可视化控件的X11窗口句柄
发现PUTTY的一个弱点
rh9.0的apache怎么没有htdoc这个文件夹啊
网络字节序的问题
linux filesystem 1TB limited?
防火墙iptables的一个有些难度的问题(虚心请教高手)
总结INIT :Id "2" respawing too fast :disable for 5
编译完内核让它支持ntfs之后,只需要make dep就可以吗?
在Virtual PC 5.2上配置Debian的网络
如何设置同一用户同一时间只能有一个人登陆啊??
讨论一下:mount 时会不会提示本地目录已经mount了一个了?
can't add this user?why?
有没有可能突破扩展分区上逻辑分区15个的限制?
1.网友文章:一Linux系统的入侵分析 (2002年6月11日)
Debian参考手册
提供在turbolinux7.0下安装拨号服务器的方法!

Unix/Linux 中的 用nmap扫描端口并写到一个静态网页脚本(转贴)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 202 ::
收藏到网摘: n/a


#!/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 "" >> $htmlfile ; while read line; do echo ""$line"" >> $htmlfile ; done < $tempfile echo >> $htmlfile ;