Just a small remade of my old packet editor in [Only registered and activated users can see links. Click Here To Register...]. I've just tested it on the German client, but it searches for signatures which means it should also work with other clients. If it doesn't, please upload the game.exe so I can fix it.
Usage:
1. Run the launcher of Shaiya.
2. Execute "injector.exe" in the RAR-archive attached.
3. Start the game.
Source Code:
At first I search for the internal function of the game which encrypts and sends packets so we can detour that function later. To archieve this I'm looking for a special signature which should be the same on every client. The function then saves the address of that function in the global variable Address.
Here's the code to detour the internal send function. After the detour is set, every time a packet is sent the function Detour() is called.
And here's the code to send a packet. Basically I just call a function pointer to the internal send function.
Usage:
1. Run the launcher of Shaiya.
2. Execute "injector.exe" in the RAR-archive attached.
3. Start the game.
Source Code:
At first I search for the internal function of the game which encrypts and sends packets so we can detour that function later. To archieve this I'm looking for a special signature which should be the same on every client. The function then saves the address of that function in the global variable Address.
Here's the code to detour the internal send function. After the detour is set, every time a packet is sent the function Detour() is called.
And here's the code to send a packet. Basically I just call a function pointer to the internal send function.