Commit 9cfe5d97 by 钱炳权

24/3/28 生成方法、变异方法接入成功并能成功输出至窗口

parent 287f71df
......@@ -85,3 +85,342 @@ Identify and stop the process that's listening on port 8001 or configure this ap
2024-03-28 09:29:46.453 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 466 ms
2024-03-28 09:29:46.632 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 09:29:46.637 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.855 seconds (JVM running for 1.274)
2024-03-28 11:06:15.595 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 5208 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:06:15.611 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:06:16.240 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:06:16.247 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:06:16.248 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:06:16.367 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:06:16.367 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 717 ms
2024-03-28 11:06:16.573 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 11:06:16.579 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 1.344 seconds (JVM running for 2.137)
2024-03-28 11:06:48.460 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 11:06:48.460 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 11:06:48.462 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 2 ms
2024-03-28 11:06:48.471 [http-nio-8100-exec-1] WARN o.s.w.s.m.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]
2024-03-28 11:06:56.219 [http-nio-8100-exec-4] WARN o.s.w.s.m.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)<EOL> at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 3, column: 17] (through reference chain: com.example.fuzzControll.pojo.vo.protocolGeneration["paramJson"])]
2024-03-28 11:08:38.603 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 14164 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:08:38.604 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:08:39.015 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:08:39.020 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:08:39.021 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:08:39.076 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:08:39.076 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 453 ms
2024-03-28 11:08:39.267 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 11:08:39.274 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.868 seconds (JVM running for 1.324)
2024-03-28 11:08:46.382 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 11:08:46.383 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 11:08:46.383 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 11:08:46.424 [http-nio-8100-exec-1] WARN o.s.w.s.m.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)<EOL> at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 3, column: 17] (through reference chain: com.example.fuzzControll.pojo.vo.protocolGeneration["paramJson"])]
2024-03-28 11:40:27.360 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 21156 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:40:27.362 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:40:27.795 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:40:27.800 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:40:27.800 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:40:27.874 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:40:27.874 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 494 ms
2024-03-28 11:40:28.038 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 11:40:28.043 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.873 seconds (JVM running for 1.527)
2024-03-28 11:40:32.668 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 22796 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:40:32.668 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:40:33.088 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:40:33.094 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:40:33.094 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:40:33.143 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:40:33.144 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 456 ms
2024-03-28 11:40:33.343 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 11:40:33.356 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.885 seconds (JVM running for 1.886)
2024-03-28 11:40:37.882 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 11:40:37.882 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 11:40:37.883 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 11:40:37.922 [http-nio-8100-exec-1] WARN o.s.w.s.m.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)<EOL> at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 3, column: 17] (through reference chain: com.example.fuzzControll.pojo.vo.protocolGeneration["paramJson"])]
2024-03-28 11:42:53.162 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 27456 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:42:53.164 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:42:53.554 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:42:53.559 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:42:53.559 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:42:53.606 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:42:53.606 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 423 ms
2024-03-28 11:42:53.782 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 11:42:53.787 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.809 seconds (JVM running for 1.285)
2024-03-28 11:42:54.825 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 3184 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:42:54.827 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:42:55.261 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:42:55.268 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:42:55.268 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:42:55.323 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:42:55.323 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 473 ms
2024-03-28 11:42:55.513 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.server.PortInUseException: Port 8100 is already in use
2024-03-28 11:42:55.514 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2024-03-28 11:42:55.521 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-03-28 11:42:55.528 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8100 was already in use.
Action:
Identify and stop the process that's listening on port 8100 or configure this application to listen on another port.
2024-03-28 11:43:02.090 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 18440 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:43:02.091 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:43:02.516 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:43:02.521 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:43:02.521 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:43:02.573 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:43:02.573 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 460 ms
2024-03-28 11:43:02.765 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 11:43:02.771 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.891 seconds (JVM running for 1.398)
2024-03-28 11:43:05.617 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 11:43:05.617 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 11:43:05.618 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2024-03-28 11:43:30.790 [http-nio-8100-exec-1] ERROR c.e.fuzzControll.service.impl.protocolTemplateImpl - 未知协议![]
2024-03-28 11:43:58.782 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 11984 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:43:58.783 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:43:59.141 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:43:59.146 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:43:59.146 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:43:59.199 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:43:59.199 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 398 ms
2024-03-28 11:43:59.372 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 11:43:59.379 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.78 seconds (JVM running for 1.224)
2024-03-28 11:44:03.433 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 22284 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 11:44:03.434 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 11:44:03.882 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 11:44:03.885 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 11:44:03.886 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 11:44:03.938 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 11:44:03.938 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 482 ms
2024-03-28 11:44:04.123 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 11:44:04.129 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.928 seconds (JVM running for 1.471)
2024-03-28 11:44:07.766 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 11:44:07.766 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 11:44:07.767 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 12:02:35.315 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 13436 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 12:02:35.322 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 12:02:35.969 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 12:02:35.976 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 12:02:35.976 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 12:02:36.118 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 12:02:36.118 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 757 ms
2024-03-28 12:02:36.330 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 12:02:36.335 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 1.337 seconds (JVM running for 2.124)
2024-03-28 12:02:39.329 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 12:02:39.329 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 12:02:39.330 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2024-03-28 14:18:25.289 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 19384 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 14:18:25.302 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 14:18:25.905 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 14:18:25.911 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 14:18:25.912 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 14:18:26.092 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 14:18:26.092 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 760 ms
2024-03-28 14:18:26.286 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 14:18:26.291 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 1.308 seconds (JVM running for 2.557)
2024-03-28 14:18:27.594 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 5760 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 14:18:27.596 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 14:18:28.049 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 14:18:28.053 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 14:18:28.053 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 14:18:28.098 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 14:18:28.098 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 476 ms
2024-03-28 14:18:28.280 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.server.PortInUseException: Port 8100 is already in use
2024-03-28 14:18:28.281 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2024-03-28 14:18:28.297 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-03-28 14:18:28.306 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8100 was already in use.
Action:
Identify and stop the process that's listening on port 8100 or configure this application to listen on another port.
2024-03-28 14:18:34.093 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 22576 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 14:18:34.095 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 14:18:34.496 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 14:18:34.501 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 14:18:34.501 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 14:18:34.554 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 14:18:34.554 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 441 ms
2024-03-28 14:18:34.759 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 14:18:34.765 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.873 seconds (JVM running for 1.353)
2024-03-28 14:18:40.899 [http-nio-8100-exec-3] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 14:18:40.901 [http-nio-8100-exec-3] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 14:18:40.901 [http-nio-8100-exec-3] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 14:19:05.763 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 25316 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 14:19:05.765 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 14:19:06.205 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 14:19:06.210 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 14:19:06.211 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 14:19:06.264 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 14:19:06.264 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 477 ms
2024-03-28 14:19:06.460 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 14:19:06.466 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.931 seconds (JVM running for 1.434)
2024-03-28 14:19:08.900 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 14:19:08.900 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 14:19:08.900 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 14:19:35.930 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 9444 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 14:19:35.931 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 14:19:36.350 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 14:19:36.356 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 14:19:36.357 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 14:19:36.415 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 14:19:36.415 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 458 ms
2024-03-28 14:19:36.667 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 14:19:36.672 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.951 seconds (JVM running for 1.459)
2024-03-28 14:19:39.453 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 14:19:39.454 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 14:19:39.455 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2024-03-28 14:23:25.947 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 27636 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 14:23:25.948 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 14:23:26.412 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 14:23:26.417 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 14:23:26.417 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 14:23:26.476 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 14:23:26.476 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 503 ms
2024-03-28 14:23:26.678 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 14:23:26.683 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.935 seconds (JVM running for 1.432)
2024-03-28 14:23:34.530 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 14:23:34.531 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 14:23:34.531 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 16:35:54.721 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 5428 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 16:35:54.722 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 16:35:55.231 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 16:35:55.236 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 16:35:55.236 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 16:35:55.361 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 16:35:55.361 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 608 ms
2024-03-28 16:35:55.534 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 16:35:55.539 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 1.132 seconds (JVM running for 1.95)
2024-03-28 16:57:46.055 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 22796 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 16:57:46.056 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 16:57:46.457 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 16:57:46.462 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 16:57:46.462 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 16:57:46.510 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 16:57:46.510 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 435 ms
2024-03-28 16:57:46.696 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 16:57:46.702 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.834 seconds (JVM running for 1.311)
2024-03-28 17:04:11.279 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 14396 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:04:11.281 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:04:11.802 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:04:11.808 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:04:11.808 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:04:11.860 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:04:11.861 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 554 ms
2024-03-28 17:04:12.055 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:04:12.062 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 1.045 seconds (JVM running for 1.553)
2024-03-28 17:05:09.335 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:05:09.336 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:05:09.336 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 17:06:58.258 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 18920 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:06:58.261 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:06:58.697 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:06:58.704 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:06:58.704 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:06:58.755 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:06:58.755 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 471 ms
2024-03-28 17:06:58.938 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:06:58.943 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.901 seconds (JVM running for 1.426)
2024-03-28 17:07:00.537 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:07:00.538 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:07:00.538 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 17:08:31.579 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 20844 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:08:31.581 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:08:31.997 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:08:32.001 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:08:32.002 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:08:32.058 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:08:32.058 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 454 ms
2024-03-28 17:08:32.262 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:08:32.266 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.89 seconds (JVM running for 1.419)
2024-03-28 17:08:33.297 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:08:33.298 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:08:33.298 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 17:09:33.610 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 26540 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:09:33.612 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:09:34.048 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:09:34.054 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:09:34.054 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:09:34.106 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:09:34.106 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 472 ms
2024-03-28 17:09:34.303 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:09:34.310 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.913 seconds (JVM running for 1.456)
2024-03-28 17:09:36.053 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:09:36.054 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:09:36.055 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2024-03-28 17:09:52.837 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 18224 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:09:52.838 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:09:53.287 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:09:53.291 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:09:53.291 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:09:53.347 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:09:53.347 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 483 ms
2024-03-28 17:09:53.539 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:09:53.545 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.917 seconds (JVM running for 1.45)
2024-03-28 17:09:54.900 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:09:54.901 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:09:54.902 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 17:11:00.460 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 19584 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:11:00.461 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:11:00.910 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:11:00.916 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:11:00.916 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:11:00.973 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:11:00.973 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 489 ms
2024-03-28 17:11:01.155 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:11:01.163 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.91 seconds (JVM running for 1.455)
2024-03-28 17:11:02.413 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:11:02.413 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:11:02.414 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2024-03-28 17:12:58.767 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 24092 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:12:58.768 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:12:59.196 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:12:59.200 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:12:59.200 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:12:59.255 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:12:59.256 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 464 ms
2024-03-28 17:12:59.472 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:12:59.476 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.918 seconds (JVM running for 1.413)
2024-03-28 17:13:00.638 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:13:00.638 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:13:00.638 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2024-03-28 17:23:34.828 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 20204 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:23:34.830 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:23:35.277 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:23:35.282 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:23:35.283 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:23:35.343 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:23:35.344 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 492 ms
2024-03-28 17:23:35.549 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:23:35.555 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.932 seconds (JVM running for 1.426)
2024-03-28 17:23:37.273 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:23:37.274 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:23:37.275 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2024-03-28 17:24:12.660 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 22980 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 17:24:12.662 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 17:24:13.127 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 17:24:13.133 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 17:24:13.133 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 17:24:13.191 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 17:24:13.191 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 504 ms
2024-03-28 17:24:13.384 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 17:24:13.389 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.945 seconds (JVM running for 1.46)
2024-03-28 17:24:14.497 [http-nio-8100-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-28 17:24:14.498 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-03-28 17:24:14.498 [http-nio-8100-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
......@@ -58,7 +58,12 @@
<artifactId>spring-boot-starter-websocket</artifactId>
<version>2.7.2</version>
</dependency>
<!-- log4j - slf4j 日志依赖 结束-->
<dependency>
<groupId>com.fasterxml.uuid</groupId>
<artifactId>java-uuid-generator</artifactId>
<version>3.1.5</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
......
......@@ -25,31 +25,11 @@ import org.springframework.stereotype.Component;
public class SpringContextUtil implements ApplicationContextAware {
private static ApplicationContext applicationContext;
/********************************************************************
* 函数名称: SpringContextUtil//函数名称
* 功能描述: SpringContextUtil构造函数//函数功能、性能等的描述
* 输入参数: 无//输入参数说明,包括每个参数的作用、取值说明及参数间关系
* 输出参数: 无//对输出参数的说明
* 返 回 值: 无//函数返回值的说明
* 其它说明: 无//其它说明
* 修改日期 版本号 修改人 修改内容
*--------------------------------------------------------------------
* 2023/01/30 v1.00.00 xoxxox xoxxox
********************************************************************/
public SpringContextUtil() {
}
/********************************************************************
* 函数名称: setApplicationContext//函数名称
* 功能描述: 设置Application上下文//函数功能、性能等的描述
* 输入参数: 无//输入参数说明,包括每个参数的作用、取值说明及参数间关系
* 输出参数: 无//对输出参数的说明
* 返 回 值: 无//函数返回值的说明
* 其它说明: 无//其它说明
* 修改日期 版本号 修改人 修改内容
*--------------------------------------------------------------------
* 2023/01/30 v1.00.00 xoxxox xoxxox
********************************************************************/
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
if (SpringContextUtil.applicationContext == null) {
......@@ -58,32 +38,12 @@ public class SpringContextUtil implements ApplicationContextAware {
}
/********************************************************************
* 函数名称: getBean//函数名称
* 功能描述: 跟据bean名称获取bean//函数功能、性能等的描述
* 输入参数: name是bean名称//输入参数说明,包括每个参数的作用、取值说明及参数间关系
* 输出参数: 无//对输出参数的说明
* 返 回 值: Object//函数返回值的说明
* 其它说明: 无//其它说明
* 修改日期 版本号 修改人 修改内容
*--------------------------------------------------------------------
* 2023/01/30 v1.00.00 xoxxox xoxxox
********************************************************************/
public static Object getBean(String name) {
return applicationContext.getBean(name);
}
/********************************************************************
* 函数名称: getBean//函数名称
* 功能描述: 跟据bean类型获取bean//函数功能、性能等的描述
* 输入参数: 无//输入参数说明,包括每个参数的作用、取值说明及参数间关系
* 输出参数: 无//对输出参数的说明
* 返 回 值: 无//函数返回值的说明
* 其它说明: 无//其它说明
* 修改日期 版本号 修改人 修改内容
*--------------------------------------------------------------------
* 2023/01/30 v1.00.00 xoxxox xoxxox
********************************************************************/
public static Object getBean(Class<?> requiredType) {
return applicationContext.getBean(requiredType);
}
......
package com.example.fuzzControll.conf;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component("kittyProperties")
@ConfigurationProperties(prefix = "kitty")
public class kittyProperties {
String path;
String venvPath;
String methodPath;
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getVenvPath() {
return venvPath;
}
public void setVenvPath(String venvPath) {
this.venvPath = venvPath;
}
public String getMethodPath() {
return methodPath;
}
public void setMethodPath(String methodPath) {
this.methodPath = methodPath;
}
}
package com.example.fuzzControll.constents;
public class protocolConstent {
public static final String RAW = "arp_raw.py ";
public static final String BGP = "bgp_tcp.py ";
public static final String DHCP = "dhcp_scapy.py ";
public static final String DNS = "dns_scapy.py ";
public static final String FRP = "frp_udp.py ";
public static final String FTP = "ftp_raw.py ";
public static final String HDLC = "hdlc_raw.py ";
public static final String HTTP_DOS_QUMU = "http_dos_qemu.py ";
//todo 还有一堆协议需要写
}
package com.example.fuzzControll.controller;
import com.example.fuzzControll.pojo.vo.AjaxResult;
import com.example.fuzzControll.pojo.vo.generateMethodEntity;
import com.example.fuzzControll.pojo.vo.protocolGenerationEntity;
import com.example.fuzzControll.service.generateMethodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/generateMethod")
public class generateMethodController {
@Autowired
generateMethodService service;
@RequestMapping(value = "/generate", method = RequestMethod.POST)
public AjaxResult upload(@RequestBody generateMethodEntity generateMethodEntity) {
try {
service.generation(generateMethodEntity);
} catch (Exception e) {
return AjaxResult.error("变异方法使用失败!");
}
return AjaxResult.success("变异方法生成成功!");
}
}
package com.example.fuzzControll.controller;
import com.example.fuzzControll.pojo.vo.AjaxResult;
import com.example.fuzzControll.pojo.vo.protocolGenerationEntity;
import com.example.fuzzControll.service.protocolTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
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;
@RestController
@RequestMapping("/protocolTemplate")
public class protocolTemplatController {
@Autowired
protocolTemplateService protocolTemplateService;
/**
* seeFileUpload
*/
@RequestMapping(value = "/generation", method = RequestMethod.POST)
public AjaxResult upload(@RequestBody protocolGenerationEntity protocolGeneration) {
try {
protocolTemplateService.generation(protocolGeneration);
} catch (Exception e) {
return AjaxResult.error("模板文件生成失败!");
}
return AjaxResult.success("模板文件生成成功!");
}
}
......@@ -22,6 +22,7 @@ public class testControler {
public AjaxResult list(@RequestBody cmdStartParams cmdStartParams) {
try {
new Thread(new Runnable() {
@Override
public void run() {
service.testStart(cmdStartParams);
}
......
package com.example.fuzzControll.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/vulnerabilityType")
public class vulnerabilityTypeController {
}
package com.example.fuzzControll.pojo.vo;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
@Data
@Setter
@Getter
public class generateMethodEntity {
String methodName;
String[] paramJson;
}
package com.example.fuzzControll.pojo.vo;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
@Data
@Getter
@Setter
public class protocolGenerationEntity {
String protocolName;
String[] paramJson;
}
package com.example.fuzzControll.service;
import com.example.fuzzControll.pojo.vo.generateMethodEntity;
import com.example.fuzzControll.pojo.vo.protocolGenerationEntity;
public interface generateMethodService {
void generation(generateMethodEntity generateMethodEntity);
}
package com.example.fuzzControll.service.impl;
import com.example.fuzzControll.conf.kittyProperties;
import com.example.fuzzControll.pojo.vo.generateMethodEntity;
import com.example.fuzzControll.pojo.vo.protocolGenerationEntity;
import com.example.fuzzControll.service.generateMethodService;
import com.example.fuzzControll.tools.cmdTools;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class generateMethodServiceImpl implements generateMethodService {
cmdTools cmdTools = new cmdTools();
@Autowired
kittyProperties kitty;
@Override
public void generation(generateMethodEntity generateMethodEntity) {
String cmd = parseParameters(generateMethodEntity);
cmdTools.runProgramCmdAndResultTofile(cmd);
}
public String parseParameters(generateMethodEntity generateMethodEntity) {
switch (generateMethodEntity.getMethodName().toLowerCase()) {
case "foreach":
return foreachCmd(generateMethodEntity);
default:
log.error("未知变异方法![{}]", generateMethodEntity.getMethodName());
return null;
}
}
private String foreachCmd(generateMethodEntity generateMethodEntity) {
String target_host = null;
String target_port = null;
String s1 = null;
String s2 = null;
String s3 = null;
try {
target_host = generateMethodEntity.getParamJson()[0];
target_port = generateMethodEntity.getParamJson()[1];
s1 = generateMethodEntity.getParamJson()[2];
s2 = generateMethodEntity.getParamJson()[3];
s3 = generateMethodEntity.getParamJson()[4];
} catch (Exception e) {
log.error("http_dos_qemu参数解析失败!");
}
return kitty.getVenvPath() + " " + kitty.getMethodPath() + "generate_method_test.py -f " + s1 + " " + s2 + " " + s3+" --host="+target_host+" --port="+target_port;
}
//todo 还有很多生成方法
}
package com.example.fuzzControll.service.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.fuzzControll.conf.kittyProperties;
import com.example.fuzzControll.conf.seedProperties;
import com.example.fuzzControll.constents.protocolConstent;
import com.example.fuzzControll.pojo.vo.protocolGenerationEntity;
import com.example.fuzzControll.service.protocolTemplateService;
import com.example.fuzzControll.tools.cmdTools;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Slf4j
@Service
public class protocolTemplateImpl implements protocolTemplateService {
cmdTools cmdTools = new cmdTools();
@Autowired
kittyProperties kitty;
@Override
public void generation(protocolGenerationEntity protocolGeneration) {
String cmd = parseParameters(protocolGeneration);
cmdTools.runProgramCmdAndResultTofile(cmd);
}
public String parseParameters(protocolGenerationEntity protocolGeneration) {
switch (protocolGeneration.getProtocolName().toLowerCase()) {
case "arp":
return arpCmd(protocolGeneration);
case "bgp":
return bgpCmd(protocolGeneration);
case "dhcp":
return dhcpCmd(protocolGeneration);
case "dns":
return dnsCmd(protocolGeneration);
case "frp":
return frpCmd(protocolGeneration);
case "ftp":
return ftpCmd(protocolGeneration);
case "hdlc":
return hdlcCmd(protocolGeneration);
case "http_dos_qemu":
return http_dos_qemuCmd(protocolGeneration);
default:
log.error("未知协议![{}]", protocolGeneration.getProtocolName());
return null;
}
}
private String http_dos_qemuCmd(protocolGenerationEntity protocolGeneration) {
String dst_ip = null;
String port = null;
try {
dst_ip = protocolGeneration.getParamJson()[0];
port = protocolGeneration.getParamJson()[1];
} catch (Exception e) {
log.error("http_dos_qemu参数解析失败!");
}
return kitty.getVenvPath() + " " + kitty.getPath() + protocolConstent.HTTP_DOS_QUMU + " -d " + dst_ip + " -p " + port;
}
private String hdlcCmd(protocolGenerationEntity protocolGeneration) {
return kitty.getVenvPath() + " " + kitty.getPath() + protocolConstent.HDLC;
}
private String ftpCmd(protocolGenerationEntity protocolGeneration) {
String target_host = null;
String target_port = null;
try {
target_host = protocolGeneration.getParamJson()[0];
target_port = protocolGeneration.getParamJson()[1];
} catch (Exception e) {
log.error("frp参数解析失败!");
}
return kitty.getVenvPath() + " " + kitty.getPath() + protocolConstent.FTP + target_host + " " + target_port;
}
private String frpCmd(protocolGenerationEntity protocolGeneration) {
String target_host = null;
String target_port = null;
try {
target_host = protocolGeneration.getParamJson()[0];
target_port = protocolGeneration.getParamJson()[1];
} catch (Exception e) {
log.error("frp参数解析失败!");
}
return kitty.getVenvPath() + " " + kitty.getPath() + protocolConstent.FRP + target_host + " " + target_port;
}
private String dnsCmd(protocolGenerationEntity protocolGeneration) {
String dst_ip = null;
String dst_port = null;
try {
dst_ip = protocolGeneration.getParamJson()[0];
dst_port = protocolGeneration.getParamJson()[1];
} catch (Exception e) {
log.error("dns参数解析失败!");
}
return kitty.getVenvPath() + " " + kitty.getPath() + protocolConstent.DNS + dst_ip + " " + dst_port;
}
private String dhcpCmd(protocolGenerationEntity protocolGeneration) {
String dst_ip = null;
String dst_port = null;
try {
dst_ip = protocolGeneration.getParamJson()[0];
dst_port = protocolGeneration.getParamJson()[1];
} catch (Exception e) {
log.error("dhcp参数解析失败!");
}
return kitty.getVenvPath() + " " + kitty.getPath() + protocolConstent.DHCP + dst_ip + " " + dst_port;
}
private String bgpCmd(protocolGenerationEntity protocolGeneration) {
String src_ip = null;
String src_port = null;
String dst_ip = null;
String dst_port = null;
try {
src_ip = protocolGeneration.getParamJson()[0];
src_port = protocolGeneration.getParamJson()[1];
dst_ip = protocolGeneration.getParamJson()[2];
dst_port = protocolGeneration.getParamJson()[3];
} catch (Exception e) {
log.error("bgp参数解析失败!");
}
return kitty.getVenvPath() + " " + kitty.getPath() + protocolConstent.BGP + src_ip + " " + src_port + " " + dst_ip + " " + dst_port;
}
public String arpCmd(protocolGenerationEntity protocolGeneration) {
String dst_mac = null;
String src_mac = null;
try {
dst_mac = protocolGeneration.getParamJson()[0];
src_mac = protocolGeneration.getParamJson()[1];
} catch (Exception e) {
log.error("arp参数解析失败!");
}
return kitty.getVenvPath() + " " + kitty.getPath() + protocolConstent.RAW + dst_mac + " " + src_mac;
}
}
package com.example.fuzzControll.service;
import com.alibaba.fastjson.JSONObject;
import com.example.fuzzControll.pojo.vo.protocolGenerationEntity;
import org.springframework.web.multipart.MultipartFile;
public interface protocolTemplateService {
void generation(protocolGenerationEntity protocolGeneration);
}
......@@ -16,6 +16,9 @@ public class cmdTools {
Boolean send = false;
WebSocket socket = (WebSocket) SpringContextUtil.getBean("WebSocket");
/**
* 运行不需要后台运行cmd
*/
public List<String> runCmd(String cmd) {
List<String> result = new ArrayList<>();
try {
......@@ -31,10 +34,15 @@ public class cmdTools {
}
//todo 不同协议种子路径也不同
/**
* 运行需要后台运行cmd
* 通过websocket返回数据
*/
public void runProgramCmd(String cmd) {
try {
Process process = Runtime.getRuntime().exec(cmd);
printMessageInfile(process.getInputStream(), process);
printMessageToWeb(process.getInputStream(), process);
printMessage(process.getErrorStream(), new ArrayList<>());
process.waitFor();
} catch (Exception e) {
......@@ -42,8 +50,43 @@ public class cmdTools {
}
}
/**
* 运行需要后台运行cmd
* 将数据存入文件中
*/
public void runProgramCmdAndResultTofile(String cmd) {
try {
Process process = Runtime.getRuntime().exec(cmd);
printMessageToFile(process.getInputStream());
printMessageToFile(process.getErrorStream());
process.waitFor();
} catch (Exception e) {
e.printStackTrace();
}
}
private void printMessageToFile(InputStream input) {
new Thread(new Runnable() {
@Override
public void run() {
Reader reader = new InputStreamReader(input);
BufferedReader bf = new BufferedReader(reader);
String line = null;
try {
while ((line = bf.readLine()) != null) {
System.out.println(line);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}).start();
}
private List<String> printMessage(final InputStream input, List<String> result) {
new Thread(new Runnable() {
@Override
public void run() {
Reader reader = new InputStreamReader(input);
BufferedReader bf = new BufferedReader(reader);
......@@ -61,7 +104,7 @@ public class cmdTools {
return result;
}
private void printMessageInfile(final InputStream input, Process process) throws IOException {
private void printMessageToWeb(final InputStream input, Process process) throws IOException {
// try (FileOutputStream outputStream = new FileOutputStream("/home/qbq/1.text");
// BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(outputStream);) {
......@@ -97,87 +140,87 @@ public class cmdTools {
send = false;
int run_time = line.indexOf(":");
int cycles_done = line.indexOf("cycles done :");
returnEntity.setRun_time(line.substring(run_time+1, run_time + 30));
returnEntity.setCycles_done(line.substring(cycles_done+13, cycles_done + 18));
returnEntity.setRun_time(line.substring(run_time + 1, run_time + 30));
returnEntity.setCycles_done(line.substring(cycles_done + 13, cycles_done + 18));
} else if (line.contains("last new path")) {
int last_new_path = line.indexOf(":");
int total_paths = line.indexOf("total paths :");
returnEntity.setLast_new_path(line.substring(last_new_path+1, last_new_path + 30));
returnEntity.setTotal_paths(line.substring( total_paths+13, line.indexOf("total paths :") + 16));
returnEntity.setLast_new_path(line.substring(last_new_path + 1, last_new_path + 30));
returnEntity.setTotal_paths(line.substring(total_paths + 13, line.indexOf("total paths :") + 16));
} else if (line.contains("last uniq crash")) {
int last_uniq_crash = line.indexOf(":");
int uniq_crashes = line.indexOf("uniq crashes :");
returnEntity.setLast_uniq_crash(line.substring(last_uniq_crash+1, last_uniq_crash + 30));
returnEntity.setUniq_crashes(line.substring(uniq_crashes+14, uniq_crashes + 19));
returnEntity.setLast_uniq_crash(line.substring(last_uniq_crash + 1, last_uniq_crash + 30));
returnEntity.setUniq_crashes(line.substring(uniq_crashes + 14, uniq_crashes + 19));
} else if (line.contains("last uniq hang")) {
int last_uniq_hang = line.indexOf(":");
int uniq_hangs = line.indexOf("uniq hangs :");
returnEntity.setLast_uniq_hang(line.substring(last_uniq_hang+1, last_uniq_hang + 30));
returnEntity.setUniq_hangs(line.substring(uniq_hangs+12, uniq_hangs + 16));
returnEntity.setLast_uniq_hang(line.substring(last_uniq_hang + 1, last_uniq_hang + 30));
returnEntity.setUniq_hangs(line.substring(uniq_hangs + 12, uniq_hangs + 16));
} else if (line.contains("now processing")) {
int now_processing = line.indexOf(":");
int map_density = line.indexOf("map density :");
returnEntity.setNow_processing(line.substring(now_processing+1, now_processing + 12));
returnEntity.setMap_density(line.substring(map_density+13, map_density + 25));
returnEntity.setNow_processing(line.substring(now_processing + 1, now_processing + 12));
returnEntity.setMap_density(line.substring(map_density + 13, map_density + 25));
} else if (line.contains("paths timed out")) {
int paths_timed_out = line.indexOf(":");
int count_coverage = line.indexOf("count coverage :");
returnEntity.setPaths_timed_out(line.substring(paths_timed_out+1, paths_timed_out + 12));
returnEntity.setCount_coverage(line.substring(count_coverage+16, count_coverage + 35));
returnEntity.setPaths_timed_out(line.substring(paths_timed_out + 1, paths_timed_out + 12));
returnEntity.setCount_coverage(line.substring(count_coverage + 16, count_coverage + 35));
} else if (line.contains("now trying")) {
int now_trying = line.indexOf(":");
int favored_paths = line.indexOf("favored paths :");
returnEntity.setNow_trying(line.substring(now_trying+1, now_trying + 18));
returnEntity.setFavored_paths(line.substring(favored_paths+15, favored_paths + 28));
returnEntity.setNow_trying(line.substring(now_trying + 1, now_trying + 18));
returnEntity.setFavored_paths(line.substring(favored_paths + 15, favored_paths + 28));
} else if (line.contains("stage execs")) {
int stage_execs = line.indexOf(":");
int new_edges_on = line.indexOf("new edges on :");
returnEntity.setStage_execs(line.substring(stage_execs+1, stage_execs + 18));
returnEntity.setNew_edges_on(line.substring(new_edges_on+14, new_edges_on + 31));
returnEntity.setStage_execs(line.substring(stage_execs + 1, stage_execs + 18));
returnEntity.setNew_edges_on(line.substring(new_edges_on + 14, new_edges_on + 31));
} else if (line.contains("total execs")) {
int total_execs = line.indexOf(":");
int total_crashes = line.indexOf("total crashes :");
returnEntity.setTotal_execs(line.substring(total_execs+1, total_execs + 5));
returnEntity.setTotal_crashes(line.substring(total_crashes+15, total_crashes + 31));
returnEntity.setTotal_execs(line.substring(total_execs + 1, total_execs + 5));
returnEntity.setTotal_crashes(line.substring(total_crashes + 15, total_crashes + 31));
} else if (line.contains("exec speed") && line.contains("total tmouts")) {
int exec_speed = line.indexOf(":");
int total_tmouts = line.indexOf("total tmouts :");
returnEntity.setExec_speed(line.substring(exec_speed+1, exec_speed + 25));
returnEntity.setTotal_tmouts(line.substring(total_tmouts+14, total_tmouts + 27));
returnEntity.setExec_speed(line.substring(exec_speed + 1, exec_speed + 25));
returnEntity.setTotal_tmouts(line.substring(total_tmouts + 14, total_tmouts + 27));
} else if (line.contains("bit flips")) {
int bit_flips = line.indexOf(":");
int levels = line.indexOf("levels :");
returnEntity.setBit_flips(line.substring(bit_flips+1, bit_flips + 18));
returnEntity.setLevels(line.substring(levels+8, levels + 12));
returnEntity.setBit_flips(line.substring(bit_flips + 1, bit_flips + 18));
returnEntity.setLevels(line.substring(levels + 8, levels + 12));
} else if (line.contains("byte flips")) {
int byte_flips = line.indexOf(":");
int pending = line.indexOf("pending :");
returnEntity.setByte_flips(line.substring(byte_flips+1, byte_flips+16));
returnEntity.setPending(line.substring(pending+9, pending+12));
returnEntity.setByte_flips(line.substring(byte_flips + 1, byte_flips + 16));
returnEntity.setPending(line.substring(pending + 9, pending + 12));
} else if (line.contains("arithmetics")) {
int arithmetics = line.indexOf(":");
int pend_fav = line.indexOf("pend fav :");
returnEntity.setArithmetics(line.substring(arithmetics+1, arithmetics+16));
returnEntity.setPend_fav(line.substring(pend_fav+10, pend_fav+16));
returnEntity.setArithmetics(line.substring(arithmetics + 1, arithmetics + 16));
returnEntity.setPend_fav(line.substring(pend_fav + 10, pend_fav + 16));
} else if (line.contains("known ints")) {
int known_ints = line.indexOf(":");
int own_finds = line.indexOf("own finds :");
returnEntity.setKnown_ints(line.substring(known_ints+1, known_ints+16));
returnEntity.setOwn_finds(line.substring(own_finds+11, own_finds+14));
returnEntity.setKnown_ints(line.substring(known_ints + 1, known_ints + 16));
returnEntity.setOwn_finds(line.substring(own_finds + 11, own_finds + 14));
} else if (line.contains("dictionary") && line.contains("imported")) {
int dictionary = line.indexOf(":");
int imported = line.indexOf("imported :");
returnEntity.setDictionary(line.substring(dictionary+1, dictionary+16));
returnEntity.setImported(line.substring(imported+10, imported+16));
returnEntity.setDictionary(line.substring(dictionary + 1, dictionary + 16));
returnEntity.setImported(line.substring(imported + 10, imported + 16));
} else if (line.contains("havoc")) {
int havoc = line.indexOf(":");
int stability = line.indexOf("stability :");
returnEntity.setHavoc(line.substring(havoc+1, havoc+18));
returnEntity.setStability(line.substring(stability+11,stability+20));
returnEntity.setHavoc(line.substring(havoc + 1, havoc + 18));
returnEntity.setStability(line.substring(stability + 11, stability + 20));
} else if (line.contains("trim")) {
send = true;
int trim = line.indexOf(":");
returnEntity.setTrim(line.substring(trim+1, trim + 10));
returnEntity.setTrim(line.substring(trim + 1, trim + 10));
}
return returnEntity;
}
......
......@@ -16,3 +16,7 @@ logging:
filepath:
seedPath: "/home/qbq/aflnet/tutorials/live555/in-rtsp"
kitty:
path: "/home/qbq/fuzz50/kitty/renix/" #kitty项目下的各协议生成模板python文件路径
venvPath: "/home/qbq/fuzz50/kitty/venv/bin/python"
methodPath: "/home/qbq/fuzz50/kitty/2020test/"#kitty下变异方法路径
\ No newline at end of file
# Global logging configuration
# 设置日志输出级别以及输出目的地,可以设置多个输出目的地,开发环境下,日志级别要设置成DEBUG或者ERROR
# 前面写日志级别,逗号后面写输出目的地:我自己下面设置的目的地相对应,以逗号分开
# log4j.rootLogger = [level],appenderName1,appenderName2,…
log4j.rootLogger=INFO,CONSOLE,LOGFILE
# log4j.rootLogger=DEBUG,CONSOLE,LOGFILE
#### 控制台输出 ####
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
# 输出到控制台
log4j.appender.CONSOLE.Target = System.out
# 指定控制台输出日志级别
# log4j.appender.CONSOLE.Threshold = DEBUG
# 默认值是 true, 表示是否立即输出
# log4j.appender.CONSOLE.ImmediateFlush = true
# 设置编码方式
log4j.appender.CONSOLE.Encoding = UTF-8
# 日志输出布局
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
# 如果日志输出布局为PatternLayout 自定义级别,需要使用ConversionPattern指定输出格式
log4j.appender.CONSOLE.layout.ConversionPattern=[%d{yyyy-MM-dd HH:mm:ss}] %5p (%c:%L) >>> %m%n
#### 输出错误信息到文件 ####
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
# 指定输出文件路径
#log4j.appender.LOGFILE.File =F://Intellij idea/logs/error.log
log4j.appender.LOGFILE.File =./logs/error.log
#日志输出到文件,默认为true
log4j.appender.LOGFILE.Append = true
# 指定输出日志级别
# log4j.appender.LOGFILE.Threshold = ERROR
# 是否立即输出,默认值是 true,
# log4j.appender.LOGFILE.ImmediateFlush = true
# 设置编码方式
log4j.appender.LOGFILE.Encoding = UTF-8
# 日志输出布局
log4j.appender.LOGFILE.layout = org.apache.log4j.PatternLayout
# 如果日志输出布局为PatternLayout 自定义级别,需要使用ConversionPattern指定输出格式
log4j.appender.LOGFILE.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n
......@@ -9,14 +9,13 @@
var ws2 = null;
function myFunction() {
ws1 = new WebSocket("ws://127.0.0.1:8080/websocket/testResult/" + "web"+100);
ws2 = new WebSocket("ws://127.0.0.1:8080/websocket/testResult/" + "backend"+100);
ws1.onmessage = function (evt) {
console.log(evt);
var received_msg =JSON.parse(evt.data) ;
const nameValue = Object.values(received_msg)
var context = '<div class="sendMsg">' +
'系统数据:<br/>'+
'时钟<h3>'+nameValue+'</h3><br/>'+
'aflnet:<br/>'+
'aflnet<h3>'+nameValue+'</h3><br/>'+
' </div>';
document.getElementById("sendDiv").innerHTML = context;
};
......@@ -25,15 +24,6 @@
// 关闭 websocket
alert("连接已关闭...");
};
ws2.onmessage = function (evt) {
var received_msg = evt.data;
console.log("received")
alert("接收到数据:" + received_msg);
};
ws2.onclose = function () {
// 关闭 websocket
alert("连接已关闭...");
};
}
</script>
<body onload="javascript:myFunction()">
......
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