FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

增加部分测试代码 · Muscial/JavaSecurityLearning@00851a7 · GitHub

Repository navigation

Commit 00851a7

Browse files
committed
增加部分测试代码
1 parent f964e32 commit 00851a7

4 files changed

Lines changed: 30 additions & 1 deletion

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.drunkbaby.ssti.VulTest;
2+
3+
import org.apache.velocity.Template;
4+
import org.apache.velocity.VelocityContext;
5+
import org.apache.velocity.app.VelocityEngine;
6+
7+
import java.io.StringWriter;
8+
import java.util.Properties;
9+
10+
public class test {
11+
public static void main(String[] args) throws Exception {
12+
Properties p = new Properties();
13+
VelocityEngine velocity = new VelocityEngine();
14+
velocity.init(p);
15+
16+
Template template = velocity.getTemplate("test.vm");
17+
VelocityContext context = new VelocityContext();
18+
StringWriter writer = new StringWriter();
19+
template.merge(context, writer);
20+
writer.flush();
21+
System.out.println(writer.toString());
22+
}
23+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>test</p>

‎README.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ LDAP 是包含在 JNDI 里面的
8383

8484
学完上面的之后就可以开始学习其他的了。
8585

86-
## Fastjson&&Jackson
86+
## Fastjson
8787

8888
- [FastJson基础](https://drun1baby.github.io/2022/08/04/Java反序列化Fastjson篇01-Fastjson基础/)
8989
- [Fastjson-1.2.24版本漏洞分析](https://drun1baby.github.io/2022/08/06/Java反序列化Fastjson篇02-Fastjson-1-2-24版本漏洞分析/)
@@ -128,6 +128,7 @@ LDAP 是包含在 JNDI 里面的
128128
- [Java内存马系列-04-Tomcat 之 Listener 型内存马](https://drun1baby.github.io/2022/08/27/Java内存马系列-04-Tomcat-之-Listener-型内存马/)
129129
- [Java内存马系列-05-Tomcat 之 Servlet 型内存马](https://drun1baby.github.io/2022/09/04/Java内存马系列-05-Tomcat-之-Servlet-型内存马/)
130130
- [Java内存马系列-06-Tomcat 之 Valve 型内存马](https://drun1baby.github.io/2022/09/07/Java内存马系列-06-Tomcat-之-Valve-型内存马/)
131+
- [Java Agent 内存马学习](https://drun1baby.top/2023/12/07/Java-Agent-内存马学习/)
131132

132133
## 关于 Java 代码审计
133134

@@ -159,7 +160,11 @@ WebGoat 代码打底 [WebGoat代码审计](https://drun1baby.top/2022/03/17/WebG
159160

160161
## Jackson 系列漏洞
161162

163+
[Jackson 反序列化(一)漏洞原理](https://drun1baby.top/2023/12/07/Jackson-反序列化(一)漏洞原理/)
162164

165+
[Jackson 反序列化(二)CVE-2017-7525](https://drun1baby.top/2023/12/07/Jackson-反序列化(二)CVE-2017-7525/)
166+
167+
[Jackson 反序列化(三)CVE-2017-17485](https://drun1baby.top/2023/12/07/Jackson-反序列化(三)CVE-2017-17485/)
163168

164169
## CodeQL
165170

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL