• 0

[VB6] Winsock Hooking


Question

Hi,

I'm trying to perform some Winsock Hooking in VB6 (view/modify TCP/IP packets sent from a Winsock in another application)... From what I understand this is categorized as Subclassing & Hooking.

If anyone can help me with this could they please reply to this topic, perhaps with some tips, a URL, a DLL or even some sample code - in other words, whatever you think will help me with this!

Many thanks,

jon

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
Ideally, you would want to write a TCPIP filter driver. In which case you certainly wouldn't be using VB.

Any idea where I could get a TCP/IP filter driver, precompiled as DLL available for use in VB6?

Link to comment
Share on other sites

  • 0

you could just made a "Proxy Server" in VB usin 2 winsock controls and modifying the data sent between them!

i did this for Medal Of Honor Allied Assault... works lovely!

Link to comment
Share on other sites

  • 0
you could just made a "Proxy Server" in VB usin 2 winsock controls and modifying the data sent between them!

i did this for Medal Of Honor Allied Assault... works lovely!

The application in question is MSN Messenger 7.0

For ages I've proxied MSN Messenger 6.2 and below data with the use of two Winsock controls as previously mentioned.

My problem is this:

TRADITIONAL PROXY SUPPORT HAS BEEN REMOVED FROM MSN MESSENGER

MSN Messenger 7 BETA has now been leaked.

Support for traditional proxying of data has seemingly been REMOVED. Any application that relied on modifying the "Server" key of HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger in order to proxy the data will no longer function whatsoever as this registry key has been [probably permanently] removed

I am developing a workaround for this issue. It may or may not be released open-source once it is complete. For additional information, please email me or add me to MSN Messenger with my email address jonathan[at]xeomax.net

To clarify, applications such as Messenger:Discovery will probably NOT work with MSN Messenger (although not tested). i would just like to clarify this is not connected with Messenger Plus! issues with MSN Messenger 7.

I look forward to hearing from any developers interested in a workaround to this issue.

Regards,

jon

Developer of Dimension (an MSN Messenger application made defunct by these changes)

therefore... unless anyone knows a way of REDIRECTING the packets coming from msn7.2, I have no choice but to deploy a winsock hook to get the data from 7.2

many thanks,

jon

Link to comment
Share on other sites

  • 0

You could hook the exe's import address table. I know how to to do it in c, but it involves some asm.

If you are only interested in analyzing the data manually you could get something like ethereal or packetizer.

Link to comment
Share on other sites

  • 0
You could hook the exe's import address table. I know how to to do it in c, but it involves some asm.

If you are only interested in analyzing the data manually you could get something like ethereal or packetizer.

no, im not looking for a sniffer... in a way, im trying to make my own sniffer with packet editing etc...

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.