A method and terminal of a function in a hook virtual machine
The invention provides a method and a terminal of a function in a hook virtual machine, Gets the storage address of the function to hook in the virtual machine, in accordance with that storage address, compiling the function into a static function, obtaining an address of the static function, hook,...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a method and a terminal of a function in a hook virtual machine, Gets the storage address of the function to hook in the virtual machine, in accordance with that storage address, compiling the function into a static function, obtaining an address of the static function, hook, so as to realize the hook of the functions in the virtual machine, obtain the dynamic compilation dynamically in the memory, realize the dynamic modification of the functions in the virtual machine, and do not change the contents of the disk file, so that the functions in the virtual machine can becorrectly hooked, and the performance of the system can be monitored.
本发明提供种hook虚拟机中的函数的方法及终端,获取要hook的函数在虚拟机中的存储地址,根据所述存储地址,将所述函数编译为静态函数,获取所述静态函数的地址,hook所述静态函数的地址,从而实现对虚拟机中函数的hook,在内存中实现动态获取动态编译,实现对虚拟机中的函数的动态修改,不会更改磁盘文件内容,从而能够正确hook虚拟机中的函数,实现对系统的性能监控。 |
---|