我想知道如何记录函数的堆栈返回地址?如何在C++中记录函数的堆栈返回地址
如果您登录这样的参数:
int (WINAPI *pSend)(SOCKET s, const char* buf, int len, int flags) = send;
int WINAPI MySend(SOCKET s, const char* buf, int len, int flags);
//下面的DllMain
int WINAPI MySend(SOCKET s, const char* buf, int len, int flags)
{
fopen_s(&pSendLogFile, "C:\\SendLog.txt", "a+");
fprintf(pSendLogFile, "%s\n", buf);
fclose(pSendLogFile);
return pSend(s, buf, len, flags);
}
那么我将如何日志发送的返回地址?
“返回地址”是指保存的EIP? – jweyrich
你想截获像Socks.dll或你自己的发送函数的win32 dll的Send函数吗? –