-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't add a detour to winsock's connect #31
Comments
I see, fixing it up myself is way over my head so I'd discard that option. And EAT hooking doesn't seem to be right for me since the flash dll is loaded early into plugin-container. I'll have to reconsider my options, but I'll close the issue since the original problem is already explained. Thanks! |
Hello. I've read this thread, but I don't understand fully how to solve this problem using asmgit. I'm trying to set a hook, but I always end up on "fasle" at this location: PolyHook_2_0/sources/ADetour.cpp Line 167 in fd7badb
Can you suggest how to do this? Is this even possible? I found TEST_CASE("Minimal ILCallback", "[AsmJit][ILCallback]") , but i not sure if this is what I need. Here is my Polyhook log: |
Recently I've been trying to hook winsock's
connect
function to mine in order to manipulate a socket's endpoint.In order to do that I'm using a DLL injected to Firefox's plugin-container process, that imports winsock's
connect
function. I've tried to run an example withprintf
instead ofconnect
, and that one works, unfortunately,connect
fails withCannot fixup IP relative data operation, relocation beyond displacement size
. Is there any way to fix this or will I have to use EAT hooking?Here's the code I'm using:
The text was updated successfully, but these errors were encountered: