Software protecting method and device and electronic device
A software and process technology, applied in the field of system security, can solve problems such as failure to protect system security normally, and achieve the effect of enhancing self-defense
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] figure 1 It is a flow chart of the method for protecting software in Embodiment 1 of the present invention, such as figure 1 As shown, the method of this embodiment may include:
[0051] Step 101, when capturing the operation of searching the software window, call the user's search window function to obtain the window handle of the target window;
[0052] Step 102, judging whether the target window is a window under the preset directory and the process currently performing the operation of searching the software window belongs to a malicious program process according to the window handle of the target window;
[0053] Step 103, if the target window is a window under the preset directory and the process currently performing the operation of searching for the software window belongs to a malicious program process, then reject the operation of searching for the software window.
[0054] The method for protecting software in the embodiment of the present invention can int...
Embodiment 2
[0056] figure 2 It is a flow chart of the method for protecting software in Embodiment 2 of the present invention, such as figure 2 As shown, the method of this embodiment may include:
[0057] Step 201, using the hook function to hook the user search window function to capture the operation of searching the software window.
[0058] In the present embodiment, the user finds window function is NtUserFindWindowEx kernel function;
[0059] In this embodiment, using the hook function to hook the user to find the window function can be: in SSDT (SystemServices Descriptor Table, system service descriptor table), find the function address of the NtUserFindWindowEx kernel function, use the function address of the hook function to replace SSDT The function address of the NtUserFindWindowEx kernel function, thereby realizing the use of the hook function to hook the NtUserFindWindowEx kernel function, so that the operation of any process to find the software window will enter the ho...
Embodiment 3
[0081] image 3 It is a schematic structural diagram of the device for protecting software according to Embodiment 3 of the present invention, such as image 3 As shown, the device of this embodiment includes: an acquisition module 301, a judgment module 302 and a rejection module 303;
[0082] Obtaining module 301, is used for when catching the operation of searching software window, calls user to search window function and obtains the window handle of target window;
[0083] In this example, if Figure 4 As shown, another device for protecting software in this embodiment further includes: a hook module 304, configured to use a hook function to hook the user search window function to capture the operation of searching the software window.
[0084] In the present embodiment, the user finds window function is NtUserFindWindowEx kernel function;
[0085] In this embodiment, the hook module 304 is specifically used to find the function address of the NtUserFindWindowEx kernel ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 