Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: gotcha_ass on January 19, 2003, 06:20 PM

Title: Help w/ WPE
Post by: gotcha_ass on January 19, 2003, 06:20 PM
Ok I got WPE and logged my SC logon to see what I would get. I got stuff I jus have no friggin clue what it means can any help me decypher it?
Title: Re: Help w/ WPE
Post by: UserLoser on January 19, 2003, 06:47 PM
Don't know if this will help you or not, but there are some documents at: http://botdev.valhallalegends.com
Title: Re: Help w/ WPE
Post by: gotcha_ass on January 19, 2003, 07:13 PM
Ya I downloaded almost all of them but still dont see how to translate what the packet sniffer logged into something I can use.
Title: Re: Help w/ WPE
Post by: Mesiah / haiseM on January 19, 2003, 07:39 PM
All packets are in hex, but are sent as normal ascii characters, they are like the following:

bytes - appear in format: 00
words - appear in format: 00 00
dwords - appear in format: 00 00 00 00
qwords - appear in format: 00 00 00 00 00 00 00 00
strings - appear as any plain text: ...himynameisbob..

Depending on how a protocol works, a server can use this format to include data in any of those areas.

When you read a packet log, your not reading it how its actually been sent, so trying to send a packet in all hex will most likely be ignored, or cause the server to take disconnective action. (Unless the protocol uses hex, then who knows?)

To find out what the decimal number for a character in hex notation, you may need to convert them yourself, vb a few things to make this easy, or if you wanna be lazy, you can just use Windows Scientific Calculator.

View the packet byte for byte, letter by letter, and refer back to the documents at the Bot Dev Site.

This should help you get started.

Title: Re: Help w/ WPE
Post by: gotcha_ass on January 19, 2003, 08:37 PM
Thank You So Much, thats exactly what I needed. You truly are the messiah.
Title: Re: Help w/ WPE
Post by: gotcha_ass on January 19, 2003, 08:42 PM
ok 1 little problem, I am having trouble discerning all the different packets, my log didnt put breaks or anything like that in there. Everyone keep talking about this packet does this or this packet does that, but how do I figure out which packet is which?

ok I guess what I am tryin to say is I cant read hex. I am not getting how you get a Dword in hex. I put the 1st 4 bytes together and then put them in the scientific calc, but got some outlandish number when I converted it to decimal. I am trying to figure out how to get the EventID then maybe I can figure it out from there.

Its the parsing thats killing me.
Title: Re: Help w/ WPE
Post by: RhiNo on January 20, 2003, 05:02 AM
Well iof you are using WPE on the far right where it shows you all the stuff you send recive S = Send R = Recive, Packets are generally the first part of the Recive and Send
Title: Re: Help w/ WPE
Post by: Noodlez on January 20, 2003, 07:26 AM
QuoteWell iof you are using WPE on the far right where it shows you all the stuff you send recive S = Send R = Recive, Packets are generally the first part of the Recive and Send
that made no sense.

to see which packet is which you are looking for the packet id, it should look like this

FF <PACKET ID> <LENGTH> <PACKET DATA>

the packetid will be 1 byte, the length will be a word
Title: Re: Help w/ WPE
Post by: gotcha_ass on January 20, 2003, 09:42 AM
thank you soo much that cleared it all up for me
Title: Re: Help w/ WPE
Post by: Mesiah / haiseM on January 20, 2003, 09:55 AM
Keep in mind thats just battle.net's tcp binary login protocol, if you log any udp packets, you will be confused.
Title: Re: Help w/ WPE
Post by: soccerist on January 21, 2003, 06:06 AM
Do you know where I can get a copy of WPE ?

thx.
Title: Re: Help w/ WPE
Post by: RhiNo on January 21, 2003, 12:59 PM
Do you know where I can get a copy of WPE ?
 
thx.

look through the old posts for something to do with packet sniffers started by me and i think there is a link in one of em
Title: Re: Help w/ WPE
Post by: gotcha_ass on January 21, 2003, 02:43 PM
search google for "winsock packet editor" sry I lost the link
Title: Re: Help w/ WPE
Post by: soccerist on January 22, 2003, 11:31 AM
Thx...but now there's another problem.  WPE supports only Windows 95/98.  I am using Windows 2000 Adv. Server.

And so... it won't even open when I start the application.  Any one else run into this problem too?  What packet logger thingy did you use?  Any recommendations of other good ones for this?

:)
Title: Re: Help w/ WPE
Post by: Nova1313 on January 22, 2003, 11:56 AM
i suggest etheral or i like spynet alot but it shows you alot of useless info plus it costs and it was expensive. The company since went out of buisness i believe but it still works fine on win 2k/xp.

Etheral is free and can be found on sourceforge.
Spynet Costs alot. The company now only sells there new logger for around 900 dollars. Quite the pretty penny.

Im sure you can find it on the net there are demo's they had floating around. There has to be a crack somewhere. I just wouldn't know where to point you to for that.
Title: Re: Help w/ WPE
Post by: soccerist on January 22, 2003, 12:01 PM
Thx.  Yeah, I just got Ethereal.  Works great.

:)
Title: Re: Help w/ WPE
Post by: soccerist on January 25, 2003, 03:53 PM
Since I'm doing a lot of my programming in Linux, what about recommendations for a good Linux packet logger?

 ;D
Title: Re: Help w/ WPE
Post by: Adron on January 26, 2003, 09:27 AM
On the command line use tcpdump, in X use Ethereal?