forked from tangxiaofeng7/SecExample
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7acf054
commit b8017f0
Showing
9 changed files
with
109 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/com/suyu/secexample/xxe/controller/xxecontroller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.suyu.secexample.xxe.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
@Controller | ||
public class xxecontroller { | ||
|
||
@GetMapping("/xxe") | ||
public String input(){ | ||
return "xxe/xxe"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Java漏洞靶场</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css"> | ||
</head> | ||
<body> | ||
|
||
<div style="padding: 40px; | ||
text-align: center; | ||
background: #1abc9c; | ||
color: white;"> | ||
<h1>Java漏洞演示平台</h1> | ||
<button class="ui inverted secondary basic button"><a style="color: white" th:href="home">回到首页</a></button> | ||
</div> | ||
|
||
<form th:action="@{/speloutput}" method="post" style="text-align: center;margin: 0px auto; | ||
margin-top: 50px;" border="10"> | ||
<input type="text" name="selector" placeholder="请输入用户名查找"> | ||
<input type="submit" value="提交"> | ||
<p></p> | ||
<p>提示:T(java.lang.Runtime).getRuntime().exec('open -a Calculator.app')</p> | ||
</form> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Java漏洞靶场</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css"> | ||
</head> | ||
<body> | ||
|
||
<div style="padding: 40px; | ||
text-align: center; | ||
background: #1abc9c; | ||
color: white;"> | ||
<h1>Java漏洞演示平台</h1> | ||
<button class="ui inverted secondary basic button"><a style="color: white" th:href="home">回到首页</a></button> | ||
</div> | ||
<div style="text-align: center;margin: 0px auto; | ||
margin-top: 50px;"> | ||
您请求的结果为:<p th:text="${selector}"></p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters