Commit e8313a6d by 钱炳权

aflnet日志文件和kitty日志结果文件下载功能完成

parent 65837fad
...@@ -32,7 +32,7 @@ kitty: ...@@ -32,7 +32,7 @@ kitty:
vulnerabilityTypePath: "/usr/fuzzenv/fuzzenv/fuzz50/kitty/2020test/"#kitty下漏洞类型python路径 vulnerabilityTypePath: "/usr/fuzzenv/fuzzenv/fuzz50/kitty/2020test/"#kitty下漏洞类型python路径
mutationPath: "/usr/fuzzenv/fuzzenv/fuzz50/kitty/2020test/" mutationPath: "/usr/fuzzenv/fuzzenv/fuzz50/kitty/2020test/"
templateInfoHttp: "http://127.0.0.1:26001/api/template_info.json"#模板信息请求链接 templateInfoHttp: "http://127.0.0.1:26001/api/template_info.json"#模板信息请求链接
statsHttp: "http://127.0.0.1:26001"#运行时数据 statsHttp: "http://127.0.0.1:26001/api/stats.json"#运行时数据
stagesHttp: "http://127.0.0.1:26001/api/stages.json"# stagesHttp: "http://127.0.0.1:26001/api/stages.json"#
reportHttp: "http://127.0.0.1:26001/api/report"# reportHttp: "http://127.0.0.1:26001/api/report"#
spring: spring:
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<javascript>
this.$axios(
</javascript>
</body>
</html>
\ No newline at end of file
...@@ -3,10 +3,7 @@ package com.example.fuzzbackendmaster.controller; ...@@ -3,10 +3,7 @@ package com.example.fuzzbackendmaster.controller;
import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi; import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi;
import com.example.fuzzbackendmaster.service.FuzzLogService; import com.example.fuzzbackendmaster.service.FuzzLogService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -14,6 +11,7 @@ import java.io.IOException; ...@@ -14,6 +11,7 @@ import java.io.IOException;
@RestController @RestController
@RequestMapping("/log") @RequestMapping("/log")
@CrossOrigin
public class FuzzLogController { public class FuzzLogController {
@Autowired @Autowired
FuzzLogService fuzzLogService; FuzzLogService fuzzLogService;
......
...@@ -5,6 +5,7 @@ import com.example.fuzzbackendmaster.pojo.vo.AjaxResult; ...@@ -5,6 +5,7 @@ import com.example.fuzzbackendmaster.pojo.vo.AjaxResult;
import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi; import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@RestController @RestController
@RequestMapping("/kittyServer") @RequestMapping("/kittyServer")
@CrossOrigin
@Slf4j @Slf4j
public class KittyServerMessageController { public class KittyServerMessageController {
......
...@@ -3,6 +3,7 @@ package com.example.fuzzbackendmaster.controller; ...@@ -3,6 +3,7 @@ package com.example.fuzzbackendmaster.controller;
import com.example.fuzzbackendmaster.pojo.vo.AjaxResult; import com.example.fuzzbackendmaster.pojo.vo.AjaxResult;
import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi; import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -11,6 +12,7 @@ import java.io.IOException; ...@@ -11,6 +12,7 @@ import java.io.IOException;
@RestController @RestController
@RequestMapping("/log") @RequestMapping("/log")
@CrossOrigin
public class MissionInfoController { public class MissionInfoController {
@Autowired @Autowired
FuzzIntegrationFileApi fuzzIntegrationFileApi; FuzzIntegrationFileApi fuzzIntegrationFileApi;
......
...@@ -5,10 +5,7 @@ import com.example.fuzzbackendmaster.pojo.vo.AjaxResult; ...@@ -5,10 +5,7 @@ import com.example.fuzzbackendmaster.pojo.vo.AjaxResult;
import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi; import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.util.List; import java.util.List;
...@@ -19,6 +16,7 @@ import java.util.List; ...@@ -19,6 +16,7 @@ import java.util.List;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/seedFile") @RequestMapping("/seedFile")
@CrossOrigin
public class SeedFileController { public class SeedFileController {
@Autowired @Autowired
......
...@@ -8,10 +8,7 @@ import com.example.fuzzbackendmaster.pojo.vo.TestEntity; ...@@ -8,10 +8,7 @@ import com.example.fuzzbackendmaster.pojo.vo.TestEntity;
import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi; import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -22,6 +19,7 @@ import java.util.Map; ...@@ -22,6 +19,7 @@ import java.util.Map;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/testClass") @RequestMapping("/testClass")
@CrossOrigin
public class TestClassController { public class TestClassController {
@Autowired @Autowired
......
...@@ -5,10 +5,7 @@ import com.example.fuzzbackendmaster.pojo.vo.CmdStartParams; ...@@ -5,10 +5,7 @@ import com.example.fuzzbackendmaster.pojo.vo.CmdStartParams;
import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi; import com.example.fuzzbackendmaster.service.FuzzIntegrationFileApi;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/** /**
* aflnet测试控制 * aflnet测试控制
...@@ -16,6 +13,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -16,6 +13,7 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/test") @RequestMapping("/test")
@CrossOrigin
public class TestController { public class TestController {
@Autowired @Autowired
FuzzIntegrationFileApi fuzzIntegrationFileApi; FuzzIntegrationFileApi fuzzIntegrationFileApi;
......
...@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Qualifier; ...@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.messaging.handler.annotation.SendTo; import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.socket.client.WebSocketClient; import org.springframework.web.socket.client.WebSocketClient;
...@@ -26,6 +27,7 @@ import java.util.concurrent.ConcurrentHashMap; ...@@ -26,6 +27,7 @@ import java.util.concurrent.ConcurrentHashMap;
@Component @Component
@ServerEndpoint("/websocket/testResult/{name}") @ServerEndpoint("/websocket/testResult/{name}")
@Slf4j @Slf4j
@CrossOrigin
public class WebSocket { public class WebSocket {
private Session session; //与某个客户端连接对话,通过此对客户端发送消息 private Session session; //与某个客户端连接对话,通过此对客户端发送消息
private static final ConcurrentHashMap<String, WebSocket> WEBSOCKET_CONCURRENTHASHMAP = new ConcurrentHashMap<String, WebSocket>(); //存放所有连接的客户端 private static final ConcurrentHashMap<String, WebSocket> WEBSOCKET_CONCURRENTHASHMAP = new ConcurrentHashMap<String, WebSocket>(); //存放所有连接的客户端
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment