Hooking getchar() is very easy, but how to how to hook std::cin?
Here is the method to hook getchar(): Using a shared library which has a function named getchar(i.e int getchar(void){printf("test\n");}).Then start the target program with PRE_LOAD_PATH macro.
Could anybody shed some light on this question? It would be better if you could give a simple implementation.
https://stackoverflow.com/questions/65408710/hooking-getchar-is-very-easy-but-how-to-how-to-hook-stdcin December 22, 2020 at 08:24PM
没有评论:
发表评论