Anlyze Sro Packets [need help]

08/18/2011 21:53 Little Hole#1
When i try to receive the packets with wire shake program i got a hex string as you know let's say such that:
180021B00200C637150001A9603100D7FFF00001A9607B0049 D525C29C0D

How can i know which bytes are together ???

i meant 18 00 size 21b0 opcode 02 00 security

then?...

should i take c6 or c6 37 or c6 37 15 00 ??? and so on till finish the string?
08/18/2011 22:20 ÑõÑ_Ŝŧóp#2
[ S - > C]
18 00 // packet size
21 B0 // opcode
0200 // security bytes
C6371500 // object ID
01 // has destination
if (has destination == 0x01)
{
A9 // x sec
60 // y sec
3100 // x pos
D7FF // z pos
F000 // y pos
}
01 // has source
if (has source == 0x01)
{
A9 // x sec
60 // y sec
7B00 // x pos
49D525C2 // z pos (float)
9C0D // y pos
}

Edit:
sometimes there is no source, and sometimes there is no destination
here how you can parse them

No source :
[dword] object ID
[byte] has destination
[byte] x sec
[byte] y sec
[word] x pos
[word] z pos
[word] y pos
[byte] (0x00) no source


No destination:
[dword] object iD
[byte] (0x00) no destination
[byte] unknown
[word] unknown
[byte] (0x01) has source
[byte] x sec
[byte] y sec
[word] x pos
[float(single)] z pos
[word] y pos
08/18/2011 22:21 kevin_owner#3
That's the tick you don't know. You have to figure out what the structure is.
However drew benton wrote a program which parses the packets for you so you got the structure it's called edxSilkroadLoader and you can find it in the forgein section. Enable the Analyzer and launch silkroad and the packets will be dumped all parsed.
08/22/2011 06:00 Little Hole#4
so i have to save all the packets structure and understanding all them

i don't have to do this , like Drew sniff and analyze the packets i just want to know how can i know which bytes in the packet are together or i have to read together !!
Thanks for Help
08/22/2011 13:54 kevin_owner#5
You can't know the packet structure you'll need drew's analyzer and figure the values out by yourself. If it was easy too get the packet structure there would be a lots and lots bots:)

btw a lot of other games don't even have an analyzer like drew's so they have to figure the strucutre out by themselfs.
08/22/2011 14:42 Little Hole#6
So there is no way :D except i studied the silkroadSecurityApi and it's examples :D

i'll try that after my exams and if i reach anything i'll tell u here ^^

Thanks Kevin
08/23/2011 09:31 lesderid#7
Quote:
Originally Posted by kevin_owner View Post
btw a lot of other games don't even have an analyzer like drew's so they have to figure the strucutre out by themselfs.
Hehe, they have analyzers, but people just keep them private.