Jump to content

dll and pointers


Recommended Posts

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 by themonk214
Link to comment
Share on other sites

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

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 0x64E69o

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

Who is he?

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...