Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

WSASend/WSARecv hooks don't work in open-source injectable #1

Open
holly-hacker opened this issue May 19, 2018 · 0 comments
Open

WSASend/WSARecv hooks don't work in open-source injectable #1

holly-hacker opened this issue May 19, 2018 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@holly-hacker
Copy link
Owner

Definition on this line.

WSASend and WSARecv use the PASCAL calling convention, which is not supported by .NET. This may be why it doesn't work The injectable DLL that does the hooking is written in .NET, meaning there is a difference between the calling convention of the new function and the original function.

It's possible to change the calling convention of a Delegate with UnmanagedFunctionPointerAttribute, but only cdecl, fastcall, stdcall and thiscall seem to be supported.

Of course it is possible that it's due to another reason that this hook doesn't work, and maybe we'll have to switch to a different hooking method altogether.

@holly-hacker holly-hacker added bug Something isn't working help wanted Extra attention is needed labels May 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant