精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>电脑技术>>● FreeBSD>>有待整理的文章-新加的文章都在这里>>使用wget定时镜像kill的病毒特征代码ftp

主题:使用wget定时镜像kill的病毒特征代码ftp
发信人: hackerbay(阿土)
整理人: hackerbay(2002-09-06 16:48:51), 站内信件
为了避免各个KILL工作站都从外网FTP病毒升级代码,在内部FTP服务器上镜像了sc.kill.com.cn的部分病毒升级代码,使用WGET配合corntab实现.

#!/bin/sh
#/etc/rc.local
/bin/sh /etc/rc.apache
/bin/sh /etc/rc.proftpd
/bin/sh /etc/rc.wgetkill
#开机立即进行一次升级

#!/bin/sh
#/etc/rc.wgetkill
echo ""
echo Starting get kill update files ......
rm -f /ftp/wgetkill.log
su - ftpadmin -c wgetkill
echo Started.
echo ""

#!/bin/sh
#/home/ftpadmin/bin/wgetkill
#You would install wget first.
echo ""
echo To get Kill update files ....
echo cd to ftp root
#/ftp is the ftp root.
cd /ftp
rm *.ERG
rm *.QV
rm -rf pub/getbbs
rm -rf pub/inoculan
rm -rf pub/now
#wget -a wgetkill.log -b -x -nH -r --passive-ftp -np ftp://ftp.kill.com.cn
/usr/local/bin/wget -a wgetkill.log -b -x -nH -r --passive-ftp -np -i /ftp/killupdate.lst
cd
echo go back home dir
echo Get over!!!
echo ""

#/ftp/killupdate.lst
ftp://sc.kill.com.cn/pub/getbbs/listlist.txt
ftp://sc.kill.com.cn/pub/getbbs/nt86.chs
ftp://sc.kill.com.cn/pub/getbbs/win95.chs
ftp://sc.kill.com.cn/pub/getbbs/win95.chs
ftp://sc.kill.com.cn/pub/now
ftp://sc.kill.com.cn/pub/inoculan/scaneng

login as ftpadmin
%corntab -e
0 */8 * * * /home/ftpadmin/bin/wgetkill
#每8小时自动升级一次

#希望这不仅仅是灌水:)



----
-我灌水,我喜欢-
-[GZ163] Core Team Room-
-[GZ163] Core Team Forum-   
   

[关闭][返回]