Valhalla Legends Archive

Programming => General Programming => Topic started by: k0ld phuzi0n on January 22, 2003, 06:09 PM

Title: Hooking winsock in VB?
Post by: k0ld phuzi0n on January 22, 2003, 06:09 PM
Anyone know if there exists an VB project that hooks winsock?  So that you can read datapackets from a game?/

I just want to be able to see the games incoming data so i can create an assistant progrma based on the protocol.  Also.. proxying wont work.  Ive done it for quite a few games, but some wont let you edi them enough to proxy the connection.
Title: Re: Hooking winsock in VB?
Post by: Adron on January 23, 2003, 01:22 AM
QuoteAnyone know if there exists an VB project that hooks winsock?  So that you can read datapackets from a game?/

I just want to be able to see the games incoming data so i can create an assistant progrma based on the protocol.  Also.. proxying wont work.  Ive done it for quite a few games, but some wont let you edi them enough to proxy the connection.

Yes. Such project exists. There's probably more than one, but I know there is at least one because I started on one. It needs porting to a few more operating systems though.



Title: Re: Hooking winsock in VB?
Post by: n0nphyxi0n on January 25, 2003, 01:53 PM
Can I see this source anywhere bychance?  Can I chat with your somehow to try to learn how to do this?
Title: Re: Hooking winsock in VB?
Post by: Adron on January 26, 2003, 09:24 AM
QuoteCan I see this source anywhere bychance?  Can I chat with your somehow to try to learn how to do this?

It's not on a web page as far as I can remember. What operating system do you want it to run on? It uses a dll written in msvc++, so to port it to more operating systems than it already runs on you'd have to know some c++.

You can try looking for me in the channel some time. Remember to state your business, don't just pop in and get banned.

Title: Re: Hooking winsock in VB?
Post by: Banana fanna fo fanna on January 27, 2003, 05:56 AM
I'm working on that project, but it's in C. I might be able to write a DLL, callable from windows, but that's unlikely, because I'm using TONS of pointers, hehe.
Title: Re: Hooking winsock in VB?
Post by: Skywing on January 27, 2003, 07:56 AM
QuoteI'm working on that project, but it's in C. I might be able to write a DLL, callable from windows, but that's unlikely, because I'm using TONS of pointers, hehe.
Huh?  How's using pointers make a DLL unusable in Windows?
Title: Re: Hooking winsock in VB?
Post by: Banana fanna fo fanna on January 27, 2003, 12:01 PM
Bah, typo

windows = vb
Title: Re: Hooking winsock in VB?
Post by: Noodlez on January 27, 2003, 05:12 PM
pointers in DLLs and vb get along fine if you know how to use them.
Title: Re: Hooking winsock in VB?
Post by: Banana fanna fo fanna on January 28, 2003, 11:28 AM
Noodlez, you've never experienced the true pointer then ;)
Title: Re: Hooking winsock in VB?
Post by: n00blar on January 29, 2003, 08:44 AM
Storm, noodlez is correct and you are wrong, sadly said.  However, visual basic does use the windows api.. last time I checked there were a few functions that help in that area =p
Title: Re: Hooking winsock in VB?
Post by: Banana fanna fo fanna on January 29, 2003, 10:36 AM
It has _references_, which are kind-of-sort-of pointers, unless you use those odd ObjPtr and AddressOf keywords that, if you're using them, you might as well switch languages, as you're going outside of VB's realm.

Of course VB uses the windows api.
Title: Re: Hooking winsock in VB?
Post by: Adron on February 03, 2003, 11:45 AM
I just decided to give you a chance to try and see if the hook project i made would work for you.

Files:

WSHook.dll (http://home.adron.org/WSHook.dll)
Winsockhook.ocx (http://home.adron.org/Winsockhook.ocx)
WinsockhookSamples.zip (http://home.adron.org/WinsockhookSamples.zip)

It's 3.5 years old, so don't expect me to remember anything about how they work...

Title: Re: Hooking winsock in VB?
Post by: Noodlez on February 03, 2003, 04:03 PM
adron that works perfect, i use it all the time :)

thanks for it btw
Title: Re: Hooking winsock in VB?
Post by: Banana fanna fo fanna on February 03, 2003, 05:06 PM
Argh adron, I wanted to do it myself!

Psst...what DLL should I hook? heh.
Title: Re: Hooking winsock in VB?
Post by: Adron on February 04, 2003, 12:44 PM
Quoteadron that works perfect, i use it all the time :)

thanks for it btw

What OS are you using it with? Tried any that didn't work?

Feels good to know it's appreciated too :)
Title: Re: Hooking winsock in VB?
Post by: Adron on February 04, 2003, 12:55 PM
QuoteArgh adron, I wanted to do it myself!

Psst...what DLL should I hook? heh.

I hook winsock... And sure, do it yourself, I'm not stopping you. You may want to do it yourself just to get support for something that doesn't work in my version.
Title: Re: Hooking winsock in VB?
Post by: Banana fanna fo fanna on February 04, 2003, 01:48 PM
Wsock32, winsock, or ws2_32!? I can't figure this damn thing out! sonofabitch!

lol
Title: Re: Hooking winsock in VB?
Post by: l)ragon on February 04, 2003, 02:35 PM
wsock32 ^^
Title: Re: Hooking winsock in VB?
Post by: Skywing on February 04, 2003, 02:59 PM
QuoteWsock32, winsock, or ws2_32!? I can't figure this damn thing out! sonofabitch!

lol
I'd suggest hooking whichever the program in question uses.
Title: Re: Hooking winsock in VB?
Post by: Noodlez on February 04, 2003, 03:21 PM
Adron, its worked on 2k,XP,98 so far