PDA

View Full Version : Structs


provocating
01-25-2016, 10:39 AM
So as I dig deeper into the code, I have started to try to figure out the structs system. Take for instance the LoginInfo struct.

struct LoginInfo_Struct {
/*000*/ char login_info[64];
/*064*/ uint8 unknown064[124];
/*188*/ uint8 zoning; // 01 if zoning, 00 if not
/*189*/ uint8 unknown189[275];
/*488*/
};

How was this originally found? If we have some that we do not know, that have yet to be implememented, how would I go about finding the data to make the struct. The actual structure completely makes sense to me but the method of determining it does not.

Uleat
01-25-2016, 12:38 PM
That particular one, I couldn't say...

But, a lot of information can be gathered from doing a packet capture and knowing what is going on..

..stuff like, ip, account name, finding recognizable text, etc...


Some people may have even been able to determine some fields through re..but, that's probably not a publicly discussable topic.

Kingly_Krab
01-25-2016, 12:41 PM
I went ahead and messaged Provocating privately about it, because more than likely what he's wanting to do is something that would require some testing, especially with so much of that struct being unidentified.

provocating
01-25-2016, 12:44 PM
Well I figured it out. My issue was using uint16 instead of uint32 for them. Once I went with uint32 the routine quit whining about the size of the packet_struct being wrong. I was not actually working on anything login bases, I was just using that as an example. I am getting disarm working.

Kingly_Krab
01-25-2016, 12:52 PM
Oh okay, cool cool.