C Code how to change return address in the code?

前端 未结 3 1275
日久生厌
日久生厌 2021-01-05 07:36

I just wrote a C Code which is below :

#include
#include


void func(char *str)
{
        char buffer[24];
        int *ret;
         


        
3条回答
  •  悲&欢浪女
    2021-01-05 08:38

    This is not possible - it would be possible, if you know the compiler and how it works, the generated assembler code, the used libraries, the architecture, the cpu, the system environment and the lotto numbers of tomorrow - and if you had this knowledge, you would be clever enough not to ask. The only scenario where it would make sense is when someone tries some kind of attack, and do not expect that someone is willing to help you with it.

提交回复
热议问题