themonk214 Posted July 19, 2009 Share Posted July 19, 2009 (edited) I am new to dll's and pointers However I am fairly okay with scripting. There is this function i want to use in this dll called ws2_32.dll (winsock 2) I need to hook recv()from that .dll he told me the address of the recv() which is asdfasdf recv() = BSD API on the ws2_32.dll i asked him to help hook this but he got annoyed at me and said All i need to do is to change a pointer, I didn't get this at all so I am asking you guys for advice. Please help me Edited July 19, 2009 by themonk214 Link to comment Share on other sites More sharing options...
BugFix Posted July 19, 2009 Share Posted July 19, 2009 Why you want to rebuild this function? AutoIt includes: TCPRecv() I think, thats what you want. But otherwise, i've made this (not tested): Local $socket = 'your_socket' Local $buffer = DllStructCreate('char[1024]') DllCall("wsock32.dll", "long", "recv", "long", $socket, "ptr", DllStructGetPtr($buffer), _ "long", DllStructGetSize($buffer), "long", 0) Local $szReceive = DllStructGetData($buffer, 1) Best Regards BugFix Link to comment Share on other sites More sharing options...
trancexx Posted July 19, 2009 Share Posted July 19, 2009 I am new to dll's and pointers However I am fairly okay with scripting.There is this function i want to use in this dll called ws2_32.dll (winsock 2)I need to hook recv()from that .dll he told me the address of the recv() which is 0x64E69orecv() = BSD API on the ws2_32.dll i asked him to help hook this but he got annoyed at me and saidAll i need to do is to change a pointer, I didn't get this at all so I am asking you guys for advice. Please help meWho is he? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now