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
74c4bf0c
Commit
74c4bf0c
authored
Jul 17, 2022
by
Medicean
Committed by
Medicean
Jul 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhance(Core/JSPJS): 标记JSPJS支持RAW
parent
2f213bad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
15 deletions
+17
-15
CHANGELOG.md
CHANGELOG.md
+4
-5
index.js
source/core/jspjs/index.js
+13
-10
No files found.
CHANGELOG.md
View file @
74c4bf0c
...
@@ -47,8 +47,7 @@
...
@@ -47,8 +47,7 @@
*
JSPJS 兼容各种表达式注入
*
JSPJS 兼容各种表达式注入
> 具体请看 spelbase64、el、ognl 这三个内置编码器样例
> 具体请看 spelbase64、el、ognl 这三个内置编码器样例, 详细请参考[Java表达式注入的武器化利用](https://mp.weixin.qq.com/s/nCvAICapO8NX--VfToLcwQ)
### 数据管理
### 数据管理
...
@@ -58,6 +57,7 @@
...
@@ -58,6 +57,7 @@
*
新增配置选项「Body 设置为 RAW 模式」
*
新增配置选项「Body 设置为 RAW 模式」
> 勾选该选项后,只会发送 `pwd` 键下的内容,不会发送键值
> 勾选该选项后,只会发送 `pwd` 键下的内容,不会发送键值
> 目前生效的类型有: 「PHPRAW」、「CMDLinux」、「PSWindows」、「JSPJS」
主要场景如下:
主要场景如下:
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
*
新增 FileHash 计算目标文件 hash 功能
*
新增 FileHash 计算目标文件 hash 功能
> 该功能目前正在逐步适配所有类型中
(PHP/PHP4/PSWindows/CMDLinux/JSP)
> 该功能目前正在逐步适配所有类型中
, 目前已经适配 PHP/PHP4/PSWindows/CMDLinux/JSP
### 后端模块
### 后端模块
...
@@ -78,10 +78,9 @@
...
@@ -78,10 +78,9 @@
*
Fix #307
*
Fix #307
*
重新规整
`modules/request.js`
代码结构
*
重新规整
`modules/request.js`
代码结构
*
调整 superagent ignoreHTTPS 注入,避免 npm upgrade之后引发问题
*
调整 superagent ignoreHTTPS 注入,避免 npm upgrade之后引发问题
*
*
支持 WebSocket 连接
*
支持 WebSocket 连接
> 由于 ASP/ASPX/PHP/JSP/
JSPJS 类型每次请求时为多个参数,WebSocket连接之后Server端解析会较为困难,所以当前仅支持「RAW」类型: 「PHPRAW」、「CMDLinux」、「PSWindows
」,未来会支持基于 defineClass 的 JSPRAW 类型
> 由于 ASP/ASPX/PHP/JSP/
CUSTOM 类型每次请求时为多个参数,WebSocket连接之后Server端解析会较为困难,所以当前仅支持「RAW」类型: 「PHPRAW」、「CMDLinux」、「PSWindows」、「JSPJS
」,未来会支持基于 defineClass 的 JSPRAW 类型
以
[
wsMemShell
](
https://github.com/veo/wsMemShell
)
项目中的
`wscmd`
为例:
以
[
wsMemShell
](
https://github.com/veo/wsMemShell
)
项目中的
`wscmd`
为例:
...
...
source/core/jspjs/index.js
View file @
74c4bf0c
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
const
Base
=
require
(
'../base'
);
const
Base
=
require
(
'../base'
);
class
JSPJS
extends
Base
{
class
JSPJS
extends
Base
{
static
get
supportRawBody
()
{
return
true
;
}
constructor
(
opts
)
{
constructor
(
opts
)
{
super
(
opts
);
super
(
opts
);
// 解析模板
// 解析模板
...
@@ -41,7 +44,7 @@ class JSPJS extends Base {
...
@@ -41,7 +44,7 @@ class JSPJS extends Base {
* @return {array} 编码器列表
* @return {array} 编码器列表
*/
*/
get
encoders
()
{
get
encoders
()
{
return
[
"spelbase64"
,
"el"
,
"ognl"
];
return
[
"spelbase64"
,
"el"
,
"ognl"
];
}
}
get
decoders
()
{
get
decoders
()
{
...
...
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