Library-based so file hooking method, device and medium

By obtaining the difference path information of the .so file and establishing the corresponding data interface, the problems of cumbersome and omissions in the existing .so file hooking operation are solved, and fast and accurate hooking operation is achieved.

CN115686656BActive Publication Date: 2026-07-07WUHAN DOUYU NETWORK TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHAN DOUYU NETWORK TECHNOLOGY CO LTD
Filing Date
2021-07-29
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

Existing technologies are cumbersome and prone to omissions when hooking program .so files, resulting in inaccurate data.

Method used

By obtaining the difference path information of the .so file, a data interface for storing and excluding paths is established, and the basic class is used to encapsulate and quickly find and perform hook operations.

Benefits of technology

It enables fast searching and accurate hooking of .so files, improving operational efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115686656B_ABST
    Figure CN115686656B_ABST
Patent Text Reader

Abstract

The application provides a so file hook method, device and readable medium based on a loading program library, the method comprises the following steps: acquiring all loading path information of a so file and acquiring difference path information; establishing an interface for providing data of a storage path, storing the difference path information; establishing an interface for providing exclusion path data, and encapsulating the interface for providing data of the storage path and the interface for providing exclusion path data through a basic class; acquiring a function name to be hooked and a name of a replacement function; then finding the basic class to parse a so file related to the function to be hooked; judging that the so file related to the function to be hooked is running through a loading program database, and performing a hook operation, so that the so file to be hooked can be quickly found and excluded.
Need to check novelty before this filing date? Find Prior Art