Dody
April 28th, 2007, 02:07 PM
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!
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!