Virtual memory data protection method and system
A virtual memory and protection system technology, applied in the protection method of virtual memory data and its system field, can solve the problems of poor protection effect of memory data and inability to protect from the root cause
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] Please refer to Figure 1-4 , providing a virtual memory data protection method, based on the application layer to realize the call of the writing function. Specifically can include:
[0066] In the virtual memory of the windows system process, apply a virtual memory space in the virtual memory through the VirtualAlloc or VirtualAlocEx function as a virtual memory disk to save the virtual memory data. After obtaining the address of the virtual memory disk, use the VirtualProtectEx function to set the protection attribute of this piece of virtual memory space to a read-only attribute; that is, use the protection attribute of the virtual memory space itself to protect the virtual memory disk. When reading attributes, any write operation of the program will cause access violations; this feature can prevent illegal elements from writing to the virtual memory disk, resulting in unpredictable (such as array out of bounds, etc.) errors, resulting in virtual memory data being ...
Embodiment 2
[0072] Please refer to Figure 5 with Image 6 , on the basis of Embodiment 1, this embodiment provides a protection system for virtual memory data, including:
[0073] Setting module 1, which is used to set the attribute of the virtual memory disk as read-only; it can be set by the VirtualProtectEx function;
[0074] The preset module 2 is used to preset a legal function, and the legal write operation of the virtual memory disk calls the legal function;
[0075] Call module 3 for calling the write function;
[0076] Intercepting module 4, is used for intercepting described write-in function, the address of revising described writing-in function is the address of described legal function; Optionally adopt HOOKAPI technology to intercept or other intercepting technology to realize; Described intercepting module 4 specifically comprises the first The modification unit 41 is used to modify the attribute of the virtual memory disk to be readable and writable; the operation unit...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 