Android JNI static and dynamic injection methods

Author: MiniCode One of the more popular ways for Android to call C/C++ code is through JNI. There are two ways to implement local methods: static and dynamic Create a C project or C Module: After successful creation, the following files (CMakeLists.txt, nativelib.cpp) will be generated: Among them: CMakeLists file is used to package cpp […]

CVE-2023-25194 Kafka JNDI injection analysis

Apache Kafka Clients Jndi Injection Vulnerability description Apache Kafka is a distributed data stream processing platform that can publish, subscribe, store and process data streams in real time. Kafka Connect is a tool for scalable, reliable streaming of data between Kafka and other systems. An attacker can use any Kafka client based on SASL JAAS […]

Develop a modern .NetCore console program, including dependency injection/configuration/logging and other elements

1Foreword There are a lot of scenarios where gadgets need to be developed recently. Last time I developed a hive export tool using the go language. The experience was pretty good, but I really don’t like the syntax of the go language. This time I will try to use C# to develop gadgets. The function […]

“Dependency Injection” of golang library

Article directory 1. Write at the front 2. Dependency injection 2.1 Usage scenarios 2.2 Framework comparison 3. Examples of fx framework usage scenarios 3.1 Example 3.2 golang native library 3.3 fx library 3.4 Comparison 3.4.1 Comparison of the above two implementation methods 3.4.2 About over-design 3.4.3 Enlightenment 4. Thoughts 5. References 1. Write at the […]

Go project essentials: A simple introduction to the Wire dependency injection tool

When the number of instance dependencies (components) in a project increases, it will be a very cumbersome task to manually write initialization code and maintain dependencies between components, especially in large warehouses. Therefore, there are already many dependency injection frameworks in the community. In addition to Wire from Google, there are also Dig (Uber) and […]

Spring-Spring dependency injection source code analysis (Part 2)

The working principle and source code analysis of the Automatic Injection (byName, byType) and @Autowired annotations in Spring before. In today’s lesson, let’s analyze what we haven’t finished yet. , the remaining core methods: @Nullable Object resolveDependency(DependencyDescriptor descriptor, @Nullable String requestingBeanName, @Nullable Set<String> autowiredBeanNames, @Nullable TypeConverter typeConverter) throws BeansException; This method means that when a […]

Spring injects Beans into List/Map

Table of Contents Spring injects Beans into List/Map Inject into List Inject into Map Summarize Spring injects Bean into List/Map In the Spring framework, we often need to use collection types (such as List, Map, etc.) to store a set of Bean objects in applications. Through Spring’s dependency injection feature, we can easily inject multiple […]

Spring dependency injection methods: set injection and constructor injection

Spring Spring6 enables Log4j2 logging framework dependency injection set injection set injects simple types Classic case: injecting values into attributes of the data source: Inject into array Inject into List collection Inject Set collection Inject into Map collection constructor injection Spring6 enables Log4j2 logging framework Starting from Spring 5, the integrated logging framework supported by […]

Kafka JNDI injection analysis (CVE-2023-25194)

Apache Kafka Clients Jndi Injection Vulnerability description Apache Kafka is a distributed data stream processing platform that can publish, subscribe, store and process data streams in real time. Kafka Connect is a tool for scalable, reliable streaming of data between Kafka and other systems. An attacker can use any Kafka client based on SASL JAAS […]