initial test cases added

This commit is contained in:
Rene Zubcevic
2019-10-13 16:04:41 +02:00
committed by Nanne Baars
parent 8d7142e6d3
commit e932253f06
5 changed files with 185 additions and 31 deletions

View File

@ -28,6 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
@ -40,7 +41,7 @@ import java.util.Random;
/**
* Created by jason on 9/30/17.
*/
@RestController
public class CSRFGetFlag {
@Autowired
@ -48,7 +49,7 @@ public class CSRFGetFlag {
@Autowired
private PluginMessages pluginMessages;
@RequestMapping(produces = {"application/json"}, method = RequestMethod.POST)
@RequestMapping(path="/csrf/basic-get-flag" ,produces = {"application/json"}, method = RequestMethod.POST)
@ResponseBody
public Map<String, Object> invoke(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

View File

@ -139,7 +139,7 @@
padding: 7px;
margin-top:7px;
padding:5px;">
<div class="attack-container">
<div class="example-container">
<div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div>
<div class="container-fluid">
<div class="row">