• Welcome to Valhalla Legends Archive.
 

Sending Simple Ingame Packets.

Started by phvckmeh, March 31, 2004, 10:08 PM

Previous topic - Next topic

Adron

Something like that. There are two samples. One should run without modification - it just connects some winsocks to each other, then hooks into the data stream using the ocx.  The other might need some modification - it hooks a battle.net game, then parses the 0f messages and produces bot-like output in a window. You may have to change the window caption to hook.

Tuberload

Quote from: Eli_1 on April 13, 2004, 04:24 PM
Quote from: Tuberload on April 13, 2004, 03:56 PM
Quote
thx now how would i use em??
Quote from: Adron on April 13, 2004, 03:50 PM
It should be possible to unpack them all, regsvr32 the ocx, edit the sample sources to match your configuration and then hit Run.

Whoa, to much to fast...can't...absorb...information. ;D
Translation:

1.) Unzip the source in "WinsockHookExamples.zip
2.) Start -> Run -> regsvr32 somepath\WinsockHook.OCX
3.) View source that comes with "WinsockHookSamples.zip"
4.) Edit it to fit your needs.
5.) Run it.

Thank you for the translation. Here is a translation of my post: I was being sarcastic. :P
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

phvckmeh

alright what happens is i start d2, and run the example and click "hook" then d2 terminated with "we have a big problem here guys" (fron d2loader)

what i want to do is sent a certain packet, while im IN GAME like running around with a character...

Dyndrilliac

If your using d2loader shouldn't you be able to just inject your own code into the game to load upon the game initializing? Or am I thinking of another d2 alteration...
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

phvckmeh

i just need to send a certain *different* packet every couple seconds

Adron

So, does it work without d2loader? And what does the problem message mean?

Soul Taker

It seems really buggy to me =/  if I click unhook or close the demo, it crashes the game.  Sometimes the game will just vanish randomly and my monitor won't switch refresh rates when I was testing it too.

Noodlez

It worked perfectly when I used it, I can't remember it ever crashing anything... I did load it into d2 while d2hackit was loaded.

Adron

At some time, clicking unhook was unsafe and could randomly crash. I thought I'd somewhat fixed that though.

Spht

Haven't used it on a long time, but I recall Starcraft crashing if I unhook while the game was connected to Battle.net.

And for Warcraft III, it'd only detect messages being sent, and not those which are received. I could hook/unhook fine though.

Adron

Since it just hooks into a few particular API functions, not working for all games is to be expected. Sounds like it'd need to hook some more functions to get Warcraft III receiving...

Dyndrilliac

Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Noodlez


Dyndrilliac

Quote from: Noodlez on April 19, 2004, 12:09 AM
What doesn't use winsock2?

Old shitty Windows 95 Designed Programs, which winInject used to be at one point.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

baksoto

hi all, where can I download this winInject . can please give me the URL

|