Experiment 5 Temperature collection and keyboard scanning

1. Experimental purpose *Master the method of controlling interrupts and timers in C51 *Master the principles and methods of using CH451 for keyboard input *Master the interface and programming of DS18B20 temperature sensor 2. Experimental equipment *MCU experiment box *CH451 display module *Temperature acquisition module (at the lower left of the SWITCH module area of […]

Passive scanning jsonp recognition based on Yak

Author: @shangzeng master What is JSONP hijacking vulnerability Websites with different domain names cannot transmit data due to the same origin policy (same protocol, same domain name, same port), but at some point we need to transmit data across domains. At this time, jsonp was born as one of the cross-domain methods. Because the three […]

Project practice: component scanning (5) – parse methods with GetMapping or PostMapping and finally encapsulate them into ControllerDefinition

1. ControllerDefinition package com.csdn.mymvc.core; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; //Suppose there is a uri:/fruit/index @Data @NoArgsConstructor @AllArgsConstructor public class ControllerDefinition { private String requestMapping; private Object controllerBean; private Map<String, Method> methodMappingMap = new HashMap<>(); } 2. ComponentScan package com.csdn.mymvc.core; import com.csdn.mymvc.annotation.*; import java.io.File; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import […]

Project practice: component scanning (3) – dependencies between assembled beans

1. ComponentScan package com.csdn.mymvc.core; import com.csdn.mymvc.annotation.Autowire; import com.csdn.mymvc.annotation.Controller; import com.csdn.mymvc.annotation.Repository; import com.csdn.mymvc.annotation.Service; import java.io.File; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Modifier; import java.util.*; public class ComponentScan { public static Map<String, Object> beanFactory = new HashMap<>(); static String path = null; static { //Analyze folder path = ComponentScan.class.getClassLoader().getResource(“”).getPath(); // /F:/IdeaProjects/workspace/review/pro13-fruit-DispatcherServlet/target/ // pro13-fruit-DispatcherServlet-1.0-SNAPSHOT/WEB-INF/classes/ //The root directory […]

Project practice: component scanning (4) – filtering bean instances with RequestMapping annotations

1. ControllerDefinition package com.csdn.mymvc.core; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; //Suppose there is a uri:/fruit/index @Data @NoArgsConstructor @AllArgsConstructor public class ControllerDefinition { private String requestMapping; private Object controllerBean; private Map<String, Method> methodMappingMap = new HashMap<>(); } 2. ComponentScan package com.csdn.mymvc.core; import com.csdn.mymvc.annotation.*; import java.io.File; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import […]

Project practice: component scanning implementation (1) – scanning all files on the class path

1. ComponentScan component scanning class I have summarized the following knowledge under the Maven project, so the directory structure will be different The function of this class is to scan all bytecode files in all classes directories, find the corresponding class, and then find the annotations on the corresponding class. package com.csdn.mymvc.core; import java.io.File; import […]

Abstract black box vulnerability scanning and risk technology assessment methodology

As a technical boy who has long struggled with automated detection/mining solutions for various vulnerabilities, we will encounter many problems when writing a “scanner”, such as How to ensure that your payload is harmless? How to balance the contradictory relationship between outsourcing and “detection rate”? How to trigger WAF as little as possible? How to […]

UnityRenderFeature application (simple scene scanning effect)

[Unity] RenderFeature application (simple scene scanning effect) RenderFeature is a concept used for rendering graphics, usually used in graphics engines or game engines. It is a modular component that handles specific rendering functions such as shadows, lighting, particle effects, etc. Click on the ground to generate an ever-expanding circular light effect, which is used to […]

Emergency Response – Website Intrusion and Tampering Guide_Webshell Memory Horse Scanning_Vulnerability Troubleshooting_Time Analysis

1. Preface Generally, when security services are working on projects, they often encounter work that requires emergency response. The so-called emergency response means that when an abnormality occurs on a website, it performs traceability analysis based on relevant issues, discovers problems, and solves them. 2. Network security abnormal characteristics Here is a summary of some […]

swagger3.0 sets up grouping and configures multiple scanning paths and filtering URLs

package com.jeeplus.config; import com.fasterxml.classmate.TypeResolver; import com.jeeplus.sys.service.dto.LightUserDTO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.schema.AlternateTypeRule; import springfox.documentation.service.*; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spi.service.contexts.SecurityContext; import springfox.documentation.spring.web.plugins.Docket; import java.util.*; /** * swagger configuration */ @Configuration public class SwaggerConfig implements WebMvcConfigurer { @Bean public Docket api() {//Default grouping TypeResolver […]