P
PJC
Is there a way to deserialize or marshal or somehow parse a byte array
back into a structure when you don't know what that structure was in
the first place? The structure probably came from C++.
Some background: I have a flight simulator for R/C planes and I'm
trying to figure out if I can automate it. There is no API. I know how
to automate the input. I'm trying to get at the output of the program.
(flight dynamics of the plane, etc)
The simulator has a multi-player function so I know that it has to
pass the exact info I'm looking for over the network. It's built on
DirectX 9 and uses DirectPlay (deprecated gaming network protocol) for
multi-player communication. My *guess* is the simulator itself is
written in C++.
So, I can actually connect to the program and have gotten a message
with 13 bytes. Great. Now what.
In general, how would one reverse-engineer something like this?
back into a structure when you don't know what that structure was in
the first place? The structure probably came from C++.
Some background: I have a flight simulator for R/C planes and I'm
trying to figure out if I can automate it. There is no API. I know how
to automate the input. I'm trying to get at the output of the program.
(flight dynamics of the plane, etc)
The simulator has a multi-player function so I know that it has to
pass the exact info I'm looking for over the network. It's built on
DirectX 9 and uses DirectPlay (deprecated gaming network protocol) for
multi-player communication. My *guess* is the simulator itself is
written in C++.
So, I can actually connect to the program and have gotten a message
with 13 bytes. Great. Now what.
In general, how would one reverse-engineer something like this?