• Welcome to Valhalla Legends Archive.
 

Packet for joining a game

Started by MichaeL, March 09, 2004, 05:28 PM

Previous topic - Next topic

MichaeL

Where can i get the packet information for "joining a starcraft game"?
 :)

Stealth

- Stealth
Author of StealthBot

hismajesty

#2
(DWORD) Product
(DWORD) VerByte
(STRING) Game Name
(Send) 0x22 (SID_NOTIFYJOIN)
(Send) 0x10 (SID_LEAVECHAT)

Edit: [see next post]

Eric

#3

hismajesty

#4
Quote from: LoRd[nK] on March 15, 2004, 12:35 PM
Quote from: hismajesty on March 15, 2004, 04:49 AM
(NonNTString) Product
*DWORD

Sending it as a DWORD will raise an error, correct?

Eric

#5
There's no such thing as a NonNTString, it's correct form is a DWORD.
Product ID's are always sent as DWORD's.

ChR0NiC

#6
Quote from: hismajesty on March 15, 2004, 04:49 AM
(DWORD) Product
(DWORD) VerByte
(STRING) Game Name
(Send) 0x22 (SID_NOTIFYJOIN)
(Send) 0x10 (SID_LEAVECHAT)

If you follow this, you will join a game. Remember STRING means null terminated. So don't be a fool about this.

Edit: To understand more about how this was figured out and such I suggest using BNCSMon and set it to capture the log.

EG: X:\BNCSMon -l capture.txt [Enter]
and it will start logging and will capture as soon as the data starts to flow.
Very great tool I recommend to all bot programmers, newbie or expert. This of course is a packet logger...very good detail and very well made.

MichaeL


iago

I say NTString and NonNTString as well, except for 4 byte backwards ones (which are DWords).
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*