Hook "Net Send" popup message

c++ / delphi package - dll injection and api hooking
Post Reply
nduylinh
Posts: 4
Joined: Mon Nov 01, 2004 7:58 am

Hook "Net Send" popup message

Post by nduylinh »

Dear all,
I'm writing GUI for "Net Send". I want my program capture text message. I used madCodeHook to capture MessageBoxA & MessageBoxEx APIs. But my program not work.

Does Messenger Service use MessageBoxA or MessageBoxEx to display received message?

Please help me.
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Maybe it uses MessageBoxW or MessageBoxExW? No idea...
xHeaps
Posts: 17
Joined: Mon Oct 18, 2004 12:21 am

Post by xHeaps »

I have googled 'net send api', and the 1st link that showed was a Delphi example of using the NET SEND API.
Question:

Is there an API-function for the console command NET SEND (from Windows NT)
NET SEND {name | * | /DOMAIN[:name] | /USERS} message


Answer:

NET SEND uses named pipes. The sample program below links to function NetMessageBufferSend in the 'NETAPI32.DLL' library
The aforementioned link is: http://www.delphifaq.com/fq/q2181.shtml

I think that hooking NETAPI32.DLL will do the trick!

Good luck.
denisb
Posts: 33
Joined: Tue Dec 07, 2004 3:48 pm

Post by denisb »

NET SEND and other NET commands are all exported by NETAPI32.DLL
If you hook this DLL then u'll get a lot more than NET SEND
Post Reply