Hooking & modifying WSARec
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I successeded hooking the WSARec for read only: I hooked the following:
INT WINAPI WSARecvHookProc(SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesRecvd, LPDWORD lpFlags, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
My question is how to write to the hooked buffer. I want to modify a packet with value 1 to 0 how can I rewrite the buffer with the value I want? I am coding with c++ (VS2005) Thanks in advance!